permissions - Android app failure of execution in some devices -
in application uploaded @ google play there reports of users application can not executed. in particular reported happens at
- samsung s4
- lg nexus 4
- sony xperia z2
- samsung note 1 (n7000) (android 4.1.2)
the permissions of app are
<uses-permission android:name="android.permission.write_internal_storage" /> <uses-permission android:name="android.permission.write_external_storage" /> <uses-permission android:name="android.permission.storage" /> <uses-permission android:name="android.permission.read_external_storage" /> <uses-permission android:name="android.permission.internet" /> <uses-permission android:name="android.permission.access_network_state" /> <uses-permission android:name="android.permission.camera" /> <uses-permission android:name="android.permission.bluetooth" /> <uses-permission android:name="android.permission.access_wifi_state" /> <uses-permission android:name="android.permission.access_network_state" /> <uses-permission android:name="android.permission.change_wifi_state" /> <uses-permission android:name="android.permission.wake_lock" />
and
<uses-sdk android:minsdkversion="14" android:targetsdkversion="22" />
a possible code incompatibility maybe on file functions since application checks particular folder exist every time executes , try create if not exist. however, since not have access @ devices, can not sure of anything.
so question is:
is there particular restrictions on devices concerning permissions of application? problems in code creates problematic behaviour?
thank in advance hints or advices.
the problem @ third line of mainactivity declared application appear in landscape mode...
setrequestedorientation(activityinfo.screen_orientation_landscape);
for reason not understand line created memory overflow in devices , application instantly crashed. manage find faulty code try , error when created nexus 5 api 22 x86 virtual device , reproduce situation.
the solution remove above faulty line , type
android:screenorientation="landscape"
in androidmanifest.xml file.
Comments
Post a Comment