MyDAC, UniDAC not working on android XE5

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Electronicpower
Posts: 12
Joined: Wed 24 Feb 2010 08:28

MyDAC, UniDAC not working on android XE5

Post by Electronicpower » Wed 18 Dec 2013 17:24

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 ?

AndreyZ

Re: MyDAC, UniDAC not working on android XE5

Post by AndreyZ » Thu 19 Dec 2013 09:15

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.

Electronicpower
Posts: 12
Joined: Wed 24 Feb 2010 08:28

Re: MyDAC, UniDAC not working on android XE5

Post by Electronicpower » Thu 19 Dec 2013 10:24

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.

AndreyZ

Re: MyDAC, UniDAC not working on android XE5

Post by AndreyZ » Thu 19 Dec 2013 10:55

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?

Electronicpower
Posts: 12
Joined: Wed 24 Feb 2010 08:28

Re: MyDAC, UniDAC not working on android XE5

Post by Electronicpower » Thu 19 Dec 2013 13:01

no, i have a lot of missing bpl errors when XE5 starts up:
dclBindCompFireDAC190.bpl
dclFMXFireDAC190.bpl

AndreyZ

Re: MyDAC, UniDAC not working on android XE5

Post by AndreyZ » Thu 19 Dec 2013 13:33

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.

Electronicpower
Posts: 12
Joined: Wed 24 Feb 2010 08:28

Re: MyDAC, UniDAC not working on android XE5

Post by Electronicpower » Thu 19 Dec 2013 13:43

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

AndreyZ

Re: MyDAC, UniDAC not working on android XE5

Post by AndreyZ » Thu 19 Dec 2013 15:56

I wrote two possible ways to avoid the problem with missing packages in my previous post.

Electronicpower
Posts: 12
Joined: Wed 24 Feb 2010 08:28

Re: MyDAC, UniDAC not working on android XE5

Post by Electronicpower » Thu 19 Dec 2013 16:24

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.

AndreyZ

Re: MyDAC, UniDAC not working on android XE5

Post by AndreyZ » Fri 20 Dec 2013 08:24

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.

Post Reply