ASNE icon indicating copy to clipboard operation
ASNE copied to clipboard

"Must be called from main thread of process" Error in OkAuthActivity.java

Open 7va opened this issue 9 years ago • 0 comments

Ok crashed, when login in with error: FATAL EXCEPTION: Thread-167 Process: su.iqq, PID: 3472 java.lang.IllegalStateException: Must be called from main thread of process at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1428) at android.app.FragmentManagerImpl.executePendingTransactions(FragmentManager.java:483) at android.app.FragmentManagerImpl.popBackStackImmediate(FragmentManager.java:498) at android.app.Activity.onBackPressed(Activity.java:2482) at ru.ok.android.sdk.OkAuthActivity.onFail(Unknown Source) at ru.ok.android.sdk.OkAuthActivity$1.run(Unknown Source)

AndroidManifest have the code:



<activity
            android:name="ru.ok.android.sdk.OkAuthActivity"
            android:launchMode="singleTask"
            android:configChanges="orientation">
            <intent-filter>
                <action android:name="android.intent.action.VIEW" />

                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.BROWSABLE" />

                <data
                    android:scheme="okauth"
                    android:host="okxxxxxxxx" /> <!-- With my OK_APP_ID -->
            </intent-filter>
        </activity>


Also i created OK_PUBLIC_KEY and OK_SECRET_KEY

7va avatar May 03 '16 12:05 7va