Permission denial
Opened this issue · 0 comments
I am using Eclipse IDE, cloning your repository. I've set up the facebook app as a web app (NOT as a android client app). Since the structure of your package doesn't set up properly, i refactored the folder from java.facebook4j.examples.android
into facebook4j.example.android
. I do really change the facebook4j.properties-template
into facebook4j.properties
and fill the corresponding App ID and App Secret. I add a uses-sdk
line on androidmanifest.xml
so it uses minimum sdk 9 and target sdk 18. Then i tried to run it on my device (sdk Level 4.0.4) . It successful installed but it not started.
the console displaying a message like this one :
[20015-01-12 20:33:34 - Fb4j] Starting activity facebook4j.examples.android.NewsFeedActivity on device S9050
[2015-01-12 20:33:39 - Fb4j] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=facebook4j.examples.android/.NewsFeedActivity }
[2015-01-12 20:33:39 - Fb4j] ActivityManager: java.lang.SecurityException: Permission Denial: starting Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=facebook4j.examples.android/.NewsFeedActivity } from null (pid=28620, uid=2000) requires android.permission.INTERNET
[2015-01-12 20:33:39 - Fb4j] ActivityManager: at android.os.Parcel.readException(Parcel.java:1327)
[2015-01-12 20:33:39 - Fb4j] ActivityManager: at android.os.Parcel.readException(Parcel.java:1281)
[2015-01-12 20:33:39 - Fb4j] ActivityManager: at android.app.ActivityManagerProxy.startActivity(ActivityManagerNative.java:1631)
[2015-01-12 20:33:39 - Fb4j] ActivityManager: at com.android.commands.am.Am.runStart(Am.java:433)
[2015-01-12 20:33:39 - Fb4j] ActivityManager: at com.android.commands.am.Am.run(Am.java:107)
[2015-01-12 20:33:39 - Fb4j] ActivityManager: at com.android.commands.am.Am.main(Am.java:80)
[2015-01-12 20:33:39 - Fb4j] ActivityManager: at com.android.internal.os.RuntimeInit.finishInit(Native Method)
[2015-01-12 20:33:39 - Fb4j] ActivityManager: at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:238)
[2015-01-12 20:33:39 - Fb4j] ActivityManager: at dalvik.system.NativeStart.main(Native Method)
Where's my fault ? Will you update the repository to give me a working example ?