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;
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;
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?