question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[todo-mvp-clean] Crashed when activity is destroyed.

See original GitHub issue

I turn on “Don’t keep activities” flag to simulate activity destroyed by system when we leave it. In SaveTask i put Thread.sleep(2000); before getUseCaseCallback().onSuccess(new ResponseValue(task)); My step is: add new task -> save -> press home button to put app to background -> after usecase done callback in presenter mAddTaskView.showTasksList(); and in fragment getActivity().setResult(Activity.RESULT_OK); will crash because getActivity() = null How do I handle this case?

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
meicuihuicommented, Jul 11, 2017

google gooogle google

0reactions
meicuihuicommented, Jul 11, 2017

google all product i like

Read more comments on GitHub >

github_iconTop Results From Across the Web

Android crash "Activity has been destroyed" - Stack Overflow
I'm facing some crashes in my application with the following stacktrace: Fatal Exception: java.lang.IllegalStateException: Activity has been ...
Read more >
Why Do My Apps Keep Crashing on Android? - Avast
Find out why apps freeze and how to stop apps from crashing. Then get a specialized cleanup app to keep your Android phone...
Read more >
Don't Keep Activities | by Matt Robertson - ProAndroidDev
With “Don't Keep Activities” enabled, this becomes 100% reproducible, since the Activity is always destroyed as soon as the user leaves the app....
Read more >
How to Fix Crashing Apps on an iPhone or Android?
I am a developer of iPhone/Android and my app keeps crashing on users ... Within this window, some brands add a button called...
Read more >
Crashing, freezing, or unexpectedly restarting troubleshooting
Crashing, freezing, and restarting are usually signs of a software or app problem. This means your device isn't broken, but probably needs some...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found