Unable to start activity - time to kill activity for history

Any ideas that might trigger a message from the ActivityManager, "Activity kill time for HistoryRecord," when trying to complete an action. This prevents a restart of activity.

I am stuck. You don’t even have an idea where to look.

+6
android
source share
3 answers

For me it was a permission issue. I recommend checking the full output of logcat.

+1
source share

in older APIs, this could also be caused by a leak of context or view. Worth exploring. In my case, I put the onCreate and onDestroy log instructions for my fragments, then in a test test, added, and then removed the fragment from the view. This helped isolate the problem area.

0
source share

I had the same problem. I did this when I sent the application with a debugger, and saw that it stopped somewhere in the system classes. But in local variables, I could see a NullPointerException.

Then I realized that in the constructor of one of my classes, I did not initialize the variable.

Just double check the constructors.

-one
source share

All Articles