Android ActivityRecord in proc activity list using null instead of expected ProcessRecord

3.1k views Asked by At

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
2

There are 2 answers

0
CoolMind On

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}

0
Austin Theriault On

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!