freshplanet / ANE-Facebook

Air Native Extension (iOS and Android) for the Facebook mobile SDK
Apache License 2.0
221 stars 123 forks source link

Crash app Android #203

Closed anhtran1989 closed 7 years ago

anhtran1989 commented 9 years ago

Hi all friends, i create project test Facebook. On IOS, project is good, but on Android, app crash. Pls help me

promatik commented 9 years ago

I'm having the same problem, here is the Android log:

W/System.err(6727):
java.lang.RuntimeException: Unable to resume activity {air.my.package.name/com.facebook.LoginActivity}:
java.lang.NullPointerException
caicingsian commented 9 years ago

I have same problem!! I try to fix this, and i found I get exception in class com.facebook.LoginActivity function onBackgroundProcessingStarted. seen like findViewById have some issue but i don't know why so, i use try catch in onBackgroundProcessingStarted,onBackgroundProcessingStopped,onPause three position, and recompiler ,it is work for me. anyone know why i will got this problem?

This is my ane file, but i dont have mac, so this only include android version. https://dl.dropboxusercontent.com/u/39823405/Works/Flash/AIR%20Native%20Extensions/AirFacebook.ane

caicingsian commented 9 years ago

i forgot, my first issus is can not found LocalBroadcastManager, so i put android-support-v4.jar in build.xml and platform-android.xml

[build.xml]

==>

[platform-android.xml]

==> android-support-v4.jar .....
amhofny commented 8 years ago

check this version, it uses AIR 18.0 and compiled for both IOS and Android, it is based on @wastedabuser changes https://github.com/amhofny/ANE-Facebook