Delphi XE5, Firebird on Android Experiments

Discussion of open issues, suggestions and bugs regarding IBDAC (InterBase Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
axl84
Posts: 2
Joined: Tue 17 Dec 2013 15:02

Delphi XE5, Firebird on Android Experiments

Post by axl84 » Tue 17 Dec 2013 15:54

Hi to all,
first of all sorry for my english, it is not my first language.

And now to us...
Maybe this will be useless, but I have manage to compile a firebird library for android.

I follow the istruction of Mariz's Blog:
http://mapopa.blogspot.it/2013/09/build ... droid.html

And this is the result:
http://www.filedropper.com/libfbclient

So I was wander... Now, how can I use this lib?

Usually I use delphi resources to move here and there my useful files.
Csv, XML, lib, etc...
http://www.image-share.com/upload/2369/187m.jpg
http://www.image-share.com/upload/2369/188m.jpg

Then, for example, on form create i take the stream of the resources to make a lib file on target platform.

Code: Select all

procedure TPhoneMasterDetail.FormCreate(Sender: TObject);
var
rs : TResourceStream;
sFileName : string;
begin
sFileName := System.IOUtils.TPath.GetDocumentsPath + System.SysUtils.PathDelim +'LIB.SO';
if not FileExists(sFileName) then
  begin
    rs := TResourceStream.Create(HInstance,'LIBFIREBIRDARM',RT_RCDATA);
    try
      rs.SaveToFile(sFileName);
    finally
    rs.Free;
    end;
  end;
end;
Question n.1:
As you can see I create a file from the stream.
I have the licence whitout source code and this is the only solution I have found.
Is there a way to load the library to the component directly from a stream?

Then before open the connection I change the client library to fulfill the component.

Code: Select all

if FileExists(sFileName) then
  TBX_Conn.ClientLibrary := sFileName ; 
//Of course TBX_Conn: TIBCConnection;
This code works fine on VCL and Firemonkey if I compile to windows platform.

I don't know why, but I can't use this method on android with firemonkey.
It seems to work, but on run my connection to firebird server was rejected.

Question n.2:
Has anyone more lucky than me?

Question n.3:
Any other idea?

AndreyZ

Re: Delphi XE5, Firebird on Android Experiments

Post by AndreyZ » Wed 18 Dec 2013 08:52

Hello,

Firebird does not officially support Android. We will support Firebird under Android as soon as Firebird officially supports Android.

axl84
Posts: 2
Joined: Tue 17 Dec 2013 15:02

Re: Delphi XE5, Firebird on Android Experiments

Post by axl84 » Wed 18 Dec 2013 10:47

Yes...
I know that :)

This is why I was talking about "experiments".
I can't wait official support, I read about it and firebird developers are totally on firebird 3.

So I must try to find "a way" myself.

AndreyZ

Re: Delphi XE5, Firebird on Android Experiments

Post by AndreyZ » Wed 18 Dec 2013 11:37

We will support only official Firebird client library.

Post Reply