Delphi XE5 Firemonkey - Problem compiling Application in Application Store

2

0 down vote favorite

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

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

Example of some functions that stopped working:

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

The following is a function I mentioned.

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 device in Application Store mode? What would be the correct submission of APk on Google Play and then download it?

It's just a hypothesis I'm raising.

    
asked by anonymous 23.02.2016 / 18:13

1 answer

3

I discovered what the problem was. Solution: Add in androidManifest.xml

the following permission:

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

PS. Although in the uses permissions delphi is marked it is not being added in AndroidManifest.xml when compiled for distribution.

    
23.02.2016 / 20:14