Reputation: 10297
I'm working on an app for Android, I need to get a flux from a website via GET, but I'm stuck on Android Permissions :
I get this message on my Logcat :
02-14 21:22:03.607: W/ActivityManager(51): Permission Denial: starting Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=***/.*** } from null (pid=-1, uid=-1) requires android.permission.ACCESS_NETWORK_STATE
Whereas in my manifest there are those lines before the <application>
:
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.INTERNET"/>
I don't understand what the problem is.
Upvotes: 0
Views: 1356
Reputation: 1937
I've got similar issue - tried to do something directly from my FreeFoodApp class (extends Application), in the "onCreate()" method, the compiler always returned with "cant start intent ... from a null" I moved the action to the LAUNCHER activity and it was resolved :)
Upvotes: 0
Reputation: 2044
Where exactly did you put your permission? Did you use the Android Manifest xml editor?
try do perform a clean/build
Upvotes: 1