freshplanet / ANE-Facebook

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

<Android> App is crashing when press Connect button </Android> #228

Closed algotechnologies closed 7 years ago

algotechnologies commented 9 years ago

Please help !

skliarovartem commented 8 years ago

same here

hybridmindset commented 8 years ago

Yea this just crashes on Android after calling openSessionWithReadPermissions method

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

st15 commented 8 years ago

I used https://github.com/amhofny/ANE-Facebook but to make it work I added the following activities in the application descriptor, as suggested in issue #190:

<activity android:name="com.facebook.LoginActivity" android:theme="@android:style/Theme.Translucent.NoTitleBar" android:label="@string/app_name" />
<activity android:name="com.freshplanet.ane.AirFacebook.LoginActivity" android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen"></activity>
<activity android:name="com.freshplanet.ane.AirFacebook.WebDialogActivity" android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen"></activity>

That is WebDialogActivity instead of DialogActivity.

hybridmindset commented 8 years ago

I still can't get this thing to work. The app just stops. I also get the following warning when packaging the APK.

[java] Warning: Resource values-he/strings.xml has been skipped because of mismatch with supported languages information in application descriptor.

[java] Warning: Resource values-iw/strings.xml has been skipped because of mismatch with supported languages information in application descriptor.

Are we not suppose to use Java version 1.6 to compile?

flashmandv commented 8 years ago

I'm so sick of these crashes..There isn't a good ANE that works..they all have problems or crash..I started forking @wastedabuser 's ane because it was the closest of working..but it crashes the same way (sometimes). My Adobe AIR currently uses one actioonscript sdk (modified by me) which uses StageWebView and on the first user login opens the login with StageWebView browser..but I want to replace it because the native one will allow my users to enter without typing their password and email.. But I don't know anymore..these ANE's are so buggy and maybe I will upload my current web view solution so you can use it (at least it works every time)

ventr1x commented 8 years ago

Yeah, simply does not work on Android atm. Also the docs are not up to date at all.

The linked alternative also does not work as it throws masses of errors while packaging.

Thanks for wasting my development time. That's the last thing I will ever try out from this dev.