Missing android permissions when installing apk via adb
I developed an application that uses internet permissions. If i start the app from eclipse with "run as Android Application" everything works fine and the app gets started on the device (Nexus S). If i stop the app and try to run it from the device i get the following logcat which points me to tha assumption that my app does not contain the correct permissions.
I/ActivityManager( 978): Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.dct.android.xbounds/.XboundsConfigurator bnds=[125,586][235,704] } from pid 1423
W/ActivityManager( 978): Permission Denial: starting Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.dct.android.xbounds/.XboundsConfigurator bnds=[125,586][235,704] } from ProcessRecord{40866718 1423:com.android.launcher/开发者_Python百科10057} (pid=1423, uid=10057) requires android.permission.INTERNET
in the manifest file i use:
<uses-permission android:name="android.permission.INTERNET" />
outside the application tag.
What i already tried is to export the app as signed apk and install it via adb, which behaves the same. The Nexus runs Cyanogenmod7.
Thanks for any help or ideas
You have to set your Permission in your application-tag =)
精彩评论