Skip to content

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

Open
@7va

Description

@7va

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions