Delphi XE5 Firemonkey - Problem building application in Application Store

Asked

Viewed 426 times

2

0 down vote avorite

Good morning, I developed a Multi-device application for Android and IOS, but I have a problem when I compile my application in the Application Store mode to distribute in google play.

Some features that work perfectly in Debuger mode, stop working when I compile my application using "Application Store".

Example of some functions that have ceased to function:

My Checkinternet function, as well as my Datasnap server, my mobile application (Android) cannot connect to the server, thus returning the following message: socket access denied.

The following is the function I referred to.

function CheckInternet : boolean;

begin

result:=false;

try dm.IdTCPClient1.ReadTimeout := 2000;

dm.IdTCPClient1.ConnectTimeout := 2000;

dm.IdTCPClient1.Port := 80;

dm.IdTCPClient1.Host := 'google.com';

dm.IdTCPClient1.Connect;

dm.IdTCPClient1.Disconnect;

result:=true;

except

result:=false;

end;

end;

Is the problem due to me installing an APK on my phone in Application Store mode? Since the correct would be the submission of Apk in Google Play and then the download of it?

It’s just hypotheses I’m raising.

inserir a descrição da imagem aqui

1 answer

3

I figured out what the problem was. Solution: Add to androidManifest.xml

the following permission:

<uses-permission android:name="android.permission.INTERNET" />

PS. As much as Delphi in uses Permissions is marked it is not being added to Androidmanifest.xml, when compiled for distribution.

  • +1, don’t forget to mark your own answer as correct! So it makes it easier for other users to find the way!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.