android - Can not initialize Facebook SDK in air + ane -
protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); log.v("ane", "oncreate"); facebooksdk.sdkinitialize(getapplicationcontext()); log.v("ane", "init fb"); //setcontentview(resources.getresourseidbyname("com.yoonsik.facebookane", "layout", "activity_main")); setcontentview(r.layout.activity_main); log.v("ane", "setcontentview"); callbackmanager = callbackmanager.factory.create();
i'm trying initialize facebook sdk this, not working.
fine in eclipse java project never works in app. sure set key hashes in facebook developer page , .ane file fine.
<android> <manifestadditions><![cdata[ <manifest android:installlocation="auto"> <!--see adobe air documentation more information setting google android permissions--> <!--removing permission android.permission.internet have side effect of preventing debugging application on device--> <uses-permission android:name="android.permission.internet"/> <!--<uses-permission android:name="android.permission.write_external_storage"/>--> <!--<uses-permission android:name="android.permission.read_phone_state"/>--> <!--<uses-permission android:name="android.permission.access_fine_location"/>--> <!--the disable_keyguard , wake_lock permissions should toggled in order access air's systemidlemode apis--> <!--<uses-permission android:name="android.permission.disable_keyguard"/>--> <!--<uses-permission android:name="android.permission.wake_lock"/>--> <!--<uses-permission android:name="android.permission.camera"/>--> <!--<uses-permission android:name="android.permission.record_audio"/>--> <!--the access_network_state , access_wifi_state permissions should toggled in order use air's networkinfo apis--> <!--<uses-permission android:name="android.permission.access_network_state"/>--> <!--<uses-permission android:name="android.permission.access_wifi_state"/>--> <application> <activity android:name="com.yoonsik.facebookane.mainactivity" android:theme="@android:style/theme.translucent"> android:label="@string/app_name"> </activity> <meta-data android:name="com.facebook.sdk.applicationid" android:value="@string/facebook_app_id"/> <activity android:name="com.facebook.facebookactivity" android:configchanges= "keyboard|keyboardhidden|screenlayout|screensize|orientation" android:theme="@android:style/theme.translucent.notitlebar" android:label="@string/app_name"/> </application> </manifest> ]]></manifestadditions> </android>
this android manifest in app's xml file.
i'm checking logcat everytime doesn't show "init fb".
06-02 10:59:27.574: v/ane(16438): function put 06-02 10:59:27.574: v/ane(16438): 액티비티 생성 06-02 10:59:27.574: v/ane(16438): 새 인텐트 생성 06-02 10:59:28.044: v/ane(16438): oncreate
my air app stops no more logs. how can fix this?