Page 1 of 1

MyDAC, UniDAC not working on android XE5

Posted: Wed 18 Dec 2013 17:24
by Electronicpower
I have just installed the new XE5 , UniDAC and MyDAC.

When i try to create a android connection to a MySql database all UniDAC and MyDAC components are disabled for FireMonkey applications.
How is a DB connection from a android device possible ?

Re: MyDAC, UniDAC not working on android XE5

Posted: Thu 19 Dec 2013 09:15
by AndreyZ
To use MyDAC and UniDAC components for an Android application, you should create a new Delphi FireMonkey Mobile Application. After this, you will be able to place MyDAC and UniDAC components onto the form. For more information, please read the following article: http://blog.devart.com/android-database ... o-xe5.html
Also, there are Mobile demo projects supplied with MyDAC and UniDAC. You can find them in the "MyDACDemos\Miscellaneous\Mobile" and "UniDACDemos\Miscellaneous\Mobile" directories.

Re: MyDAC, UniDAC not working on android XE5

Posted: Thu 19 Dec 2013 10:24
by Electronicpower
Sorry this is not working, all components shows up as for the "32-Bit Windows,64-Bit Windows, OS X" plattform, you can't place them to the FireMonkey page.
This is not the same in SecureBridge. Those components i can place on the page and they show up for the "Android , .... , IOS-Simulator" plattform.

But i have a really funny situation when i open the mobile demo [MyDAC for RAD Studio XE5 > ... Mobile > Delphi19> MyDAC]. I see the MyConnection and the MyQuery component on that page, but i am still not able to add a second MyQery component to that page.

Re: MyDAC, UniDAC not working on android XE5

Posted: Thu 19 Dec 2013 10:55
by AndreyZ
Please try the following:
- remove MyDAC and UniDAC;
- remove all *dac*.bpl and *crcontrols*.bpl files from your computer;
- install MyDAC 8.1.4 and UniDAC 5.1.4.
Does the problem persist after this?

Re: MyDAC, UniDAC not working on android XE5

Posted: Thu 19 Dec 2013 13:01
by Electronicpower
no, i have a lot of missing bpl errors when XE5 starts up:
dclBindCompFireDAC190.bpl
dclFMXFireDAC190.bpl

Re: MyDAC, UniDAC not working on android XE5

Posted: Thu 19 Dec 2013 13:33
by AndreyZ
The above suggestion was about MyDAC and UniDAC packages, not about all packages of RAD Studio XE5. You can avoid this problem in two ways:
1. reinstall RAD Studio XE5.
2. disable FireDAC packages using the "Component->Install Packages" menu. This way is appropriate if you do not need FireDAC.

Re: MyDAC, UniDAC not working on android XE5

Posted: Thu 19 Dec 2013 13:43
by Electronicpower
AndreyZ wrote:Please try the following:
- remove all *dac*.bpl and *crcontrols*.bpl files from your computer;
Does the problem persist after this?
I just do what you recomended : - remove all *dac*.bpl

Re: MyDAC, UniDAC not working on android XE5

Posted: Thu 19 Dec 2013 15:56
by AndreyZ
I wrote two possible ways to avoid the problem with missing packages in my previous post.

Re: MyDAC, UniDAC not working on android XE5

Posted: Thu 19 Dec 2013 16:24
by Electronicpower
after a complete new install of Delphi XE5 , MyDAC and UniDAC
all is the same as at the beginning!
All MYDAC, UniDAC, UniDAC Providers are enabled only for win32,win64 and OS X plattforms.
It is not possible to put those components on a FireMonkey page.

Re: MyDAC, UniDAC not working on android XE5

Posted: Fri 20 Dec 2013 08:24
by AndreyZ
Most likely, you are using standard editions of MyDAC and UniDAC. The point is that Mobile Development is available only in professional editions, you can find the information about that here:
http://www.devart.com/mydac/editions.html
http://www.devart.com/unidac/editions.html
To develop an Android application, you should use professional editions.