Sqlite on real device

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
isysoftware
Posts: 44
Joined: Wed 14 Nov 2012 17:33

Sqlite on real device

Post by isysoftware » Fri 25 Jan 2013 16:24

Hi all,
I'm using Unidac to connect a firemonkey application whit a sqlite database.

On Iphone/IPad simulator it works fine because I copy by hand sqllite db in Documents path of app.

If I deploy my application in a real device, it don't work: I think that sqllite db isn't deployed in Documents dir of the app.

How can I copy by code my database in Document?

Thanks
Flavio

CristianP
Posts: 79
Joined: Fri 07 Dec 2012 07:44
Location: Timișoara, Romania

Re: Sqlite on real device

Post by CristianP » Mon 28 Jan 2013 07:28

Hallo,

here is a possible response:
https://forums.embarcadero.com/thread.j ... 3&tstart=0

Best Regards,
Cristian Peta

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: Sqlite on real device

Post by AlexP » Mon 28 Jan 2013 09:50

Hello,

For the time being, when developing iOS applications, there is no engine for automatic moving of files to an iOS device in XE2, you can move files manually. Such engine may become available in Embarcadero RAD Studio Mobile.

isysoftware
Posts: 44
Joined: Wed 14 Nov 2012 17:33

Re: Sqlite on real device

Post by isysoftware » Mon 28 Jan 2013 10:23

Hi CristianP, thanks for your reply.
This post, in Embarcadero's forum has been writed by me :wink:

I think that isn't impossible that there isn't anyone that have used a sqllite database in a real firemonkey application.

I have bought Unidac for this pourpose and now I'm not able to use it whit a real app.

CristianP wrote:Hallo,

here is a possible response:
https://forums.embarcadero.com/thread.j ... 3&tstart=0

Best Regards,
Cristian Peta

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: Sqlite on real device

Post by AlexP » Mon 28 Jan 2013 12:52

Hello,

UniDAC is designed for data access. And application deployment, transfer of necessary files to a target PC are prerogative of the IDE, if it has such functionality, or the application that creates the installation package, or a developer having written the needed code for this. Since when developing an iOS application in XE2, xCode is used for application compilation and deployment, the file transfer procedure must be implemented with this tool, therefore you should contact Embarcadero or xCode developers with this question.

isysoftware
Posts: 44
Joined: Wed 14 Nov 2012 17:33

Re: Sqlite on real device

Post by isysoftware » Mon 28 Jan 2013 17:01

AlexP,
I haven't said that Unidac don't work!

I have used this forum to find a Unidac user/developer that has had my same problem.
rather, I think UniDAC could be a great opportunity for Delphi deveoper to produce great firemonkey application for iOS.

Thanks.

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: Sqlite on real device

Post by AlexP » Tue 29 Jan 2013 10:22

Hello,

Unfortunately we have not found a possibility to automatically deploy additional files (in particular the database files) in applications for iOS to a real device when developing applications in RAD Studio XE2. As I wrote above, this functionality may become available in Embarcadero RAD Studio Mobile.

Post Reply