Note that there are some explanatory texts on larger screens.

plurals
  1. POFacebook Unity3d Extends UnityPlayerActivity breaking other plugins that do the same
    primarykey
    data
    text
    <p>So I've already go one 3rd party plugin that extends UnityPlayerActivity, plus we extend that to sprinkle our own stuff in, and now along comes the facebook sdk for unity with it's own extended UnityPlayerActivity.</p> <p>Why do these 3rd party SDK's all think they're so darn special that they can just inject themselves into this precious position? Ok, rant done...</p> <p>Is there any hope facebook could fix their SDK to not do this? Asking here since they don't have their own support forum...</p> <p>In the mean time, is there any way of reconciling existence of two extensions of the same class? Is the only way to hack these third party jars and rewrite a single UnityPlayerActivity subclass?</p> <p>Facebook SDK is nice and clean (compared to prime31's), but pretty much unusable on android for us in current state :(</p> <p><strong>Update</strong>:</p> <p>Well, I've gone ahead and edited my own subclass adding the one call that facebooks subclass had in it, and it sort of works. At least it's getting further.</p> <p>Now I'm getting a NullPointerException from inside Facebooks LoginAction class:</p> <pre><code>W/System.err( 1166): java.lang.RuntimeException: Unable to pause activity {com.fluik.WordMeisterFree/com.facebook.LoginActivity}: java.lang.NullPointerException W/System.err( 1166): at android.app.ActivityThread.performPauseActivity(ActivityThread.java:3016) W/System.err( 1166): at android.app.ActivityThread.performPauseActivity(ActivityThread.java:2971) W/System.err( 1166): at android.app.ActivityThread.handlePauseActivity(ActivityThread.java:2949) W/System.err( 1166): at android.app.ActivityThread.access$800(ActivityThread.java:141) W/System.err( 1166): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1251) W/System.err( 1166): at android.os.Handler.dispatchMessage(Handler.java:99) W/System.err( 1166): at android.os.Looper.loop(Looper.java:137) W/System.err( 1166): at android.app.ActivityThread.main(ActivityThread.java:5039) W/System.err( 1166): at java.lang.reflect.Method.invokeNative(Native Method) W/System.err( 1166): at java.lang.reflect.Method.invoke(Method.java:511) W/System.err( 1166): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793) W/System.err( 1166): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560) W/System.err( 1166): at dalvik.system.NativeStart.main(Native Method) W/System.err( 1166): Caused by: java.lang.NullPointerException W/System.err( 1166): at com.facebook.LoginActivity.onPause(LoginActivity.java:121) W/System.err( 1166): at android.app.Activity.performPause(Activity.java:5206) </code></pre> <p>Where it looks like it's trying to set visibility on a progress bar that can't be found:</p> <pre><code>findViewById(R.id.com_facebook_login_activity_progress_bar).setVisibility(8); </code></pre> <p>It seems to find it find on view create, so maybe something's destroying it before this code gets called. Is the source for the FB SDK available so i can try fixing this stuff myself?</p> <p><strong>Update</strong>:</p> <p>Just confirmed that even putting the original facebook launch activity in, com.facebook.unity.FBUnityPlayerActivity, I get the exact same crash. Am I the only one seeing this? Testing on a Nexus7....</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload