4

My app frequently crashes when using launchmode 'SingleTop'. Removing the SingleTop fixes this but I'm curious as to why exactly this is happening and if there is something I am missing when using this launchmode?

ActivityRecord in proc activity list using null instead of expected ProcessRecord
Jordy
  • 1,764
  • 1
  • 22
  • 32

2 Answers2

1

I also had this problem, mine might be a bit different then yours. My problem was that I had an EditText which I was using for the user to input a numerical value, and I was using Integer.parseInt(s.toString()) and I found the app would crash if the user would input a number 11 digits long, exceeding the integer cap. Hope I could help!

1

I also had this problem, but in my case I received an exception:

java.lang.IllegalStateException: Fragment already added: SomeFragment{d5fc212 #23 id=0x7f090063 SomeFragment}

CoolMind
  • 26,736
  • 15
  • 188
  • 224