Skip to content

not always restart activity on Android 12  #47

@samlu

Description

@samlu

I am using v2.1.2 and found that the activity won't be restarted on Android 12 sometimes.

When the problem happens, I notice the following errors:

I/ActivityTaskManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10008000 pkg=<my_pkg_name> cmp=<my_activity_class_name>} from uid 10293

W/ActivityTaskManager: Tried to set launchTime (0) < mLastActivityLaunchTime (202472441)

W/ActivityTaskManager: Exception when starting activity <my_activity_class_name>
    android.os.DeadObjectException
        at android.os.BinderProxy.transactNative(Native Method)
        at android.os.BinderProxy.transact(BinderProxy.java:571)
        at android.app.IApplicationThread$Stub$Proxy.scheduleTransaction(IApplicationThread.java:2732)

W/ActivityTaskManager: Failed to send top-resumed=true to ActivityRecord{9199e95 u0 <my_activity_class_name> t1186}
    android.os.DeadObjectException
        at android.os.BinderProxy.transactNative(Native Method)
        at android.os.BinderProxy.transact(BinderProxy.java:571)
        at android.app.IApplicationThread$Stub$Proxy.scheduleTransaction(IApplicationThread.java:2732)

W/ActivityTaskManager: Failed to send top-resumed=false to ActivityRecord{9199e95 u0 <my_activity_class_name> t1186}
    android.os.DeadObjectException
        at android.os.BinderProxy.transactNative(Native Method)
        at android.os.BinderProxy.transact(BinderProxy.java:571)
        at android.app.IApplicationThread$Stub$Proxy.scheduleTransaction(IApplicationThread.java:2732)

I/ActivityTaskManager: Restarting because process died: ActivityRecord{9199e95 u0 <my_activity_class_name> t1186}

E/ActivityTaskManager: Second failure launching <my_activity_class_name>, giving up
    android.os.DeadObjectException
        at android.os.BinderProxy.transactNative(Native Method)
        at android.os.BinderProxy.transact(BinderProxy.java:571)
        at android.app.IApplicationThread$Stub$Proxy.scheduleTransaction(IApplicationThread.java:2732)

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