Problem : Usnig UNIDAC in firemonkey android

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Hooyar
Posts: 2
Joined: Fri 06 Jun 2014 16:53

Problem : Usnig UNIDAC in firemonkey android

Post by Hooyar » Fri 06 Jun 2014 17:07

I used UniDAC in a sample firemonkey with UniConnection ,It was successfully connected to
sql server database ,Then I upload my app on my mobile , But when I set
uniconnection.connected:=true;

Message "YOU SHOUD ADD THE SQLSERVERUNIPROVIDER UNIT TO THE USES CLAUSE OF ANY UNIT IN YOUR PROJECT OR PLACE THE TSQLSERVERUNIPROVIDER COMPONENT ON THE FORM " shows on my mobile screen , My problem is that the SqlServerUniProvider is not an android component and it is disable in the UniDAC Provider Tab and I cant use it , It seems for windows app , So what I should do?

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

Re: Problem : Usnig UNIDAC in firemonkey android

Post by CristianP » Tue 10 Jun 2014 09:00

Hello,

my understanding is that devart team is working on a native connection to SQL Server.
Other solution is to ask Microsoft to release an Android SQL client :). They have done an ODBC for Linux.

Best Regards,
Cristian Peta

azyk
Devart Team
Posts: 1119
Joined: Fri 11 Apr 2014 11:47
Location: Alpha Centauri A

Re: Problem : Usnig UNIDAC in firemonkey android

Post by azyk » Tue 10 Jun 2014 12:39

Hello,

UniDAC doesn't support MS SQL Server for Android application development. You can find more details about compatibility at http://www.devart.com/unidac/compatibility.html

Hooyar
Posts: 2
Joined: Fri 06 Jun 2014 16:53

Re: Problem : Usnig UNIDAC in firemonkey android

Post by Hooyar » Tue 10 Jun 2014 20:11

Thanks for your replays ,
I have another quiestion , I used UniDAC(MySql) in an app in my mobile (Android) usnig home wifi it works correctly , But when I run that app in my mobile using internet via sim cart it hangs ,In both of mentioned cases I tried to connect to one remote server via internet with MySql (Not in my home or local network), So what is wrong ?

azyk
Devart Team
Posts: 1119
Joined: Fri 11 Apr 2014 11:47
Location: Alpha Centauri A

Re: Problem : Usnig UNIDAC in firemonkey android

Post by azyk » Wed 11 Jun 2014 15:43

The problem may be due to using DNS in the server name. Try specifying the IP address of your MySQL server in the TMyConnection.Server property.

Post Reply