ERNICommunity / erni-moods-android

Android ERNI moods app (Hack Sessions)
0 stars 0 forks source link

Testing-Defects: Random crashes #21

Closed elgrangrifon45 closed 9 years ago

elgrangrifon45 commented 10 years ago

Occasional crashing in S2 (intermittent-so sometimes app will work but sometimes it will stop; sometimes it will only show black screen then app will automatically close—will still need to double check it with other phones but I cannot sign up on them yet, only Samsung S2)

This might have improved with the newest Submission (connectivity check). However, we have to find reasons for the crashes, which might be:

image004 image005

guslong commented 9 years ago

I also noticed that the app crashes on some orientation changes... could be something like the issue described here:

http://stackoverflow.com/questions/1111980/how-to-handle-screen-orientation-change-when-progress-dialog-and-background-thre?rq=1

elgrangrifon45 commented 9 years ago

I researched a little bit. Crashes on orientation changes are due to the fact, that the activity is recreated on orientation changes and fragments arent reattached correctly. Ill be fixing this next week.

elgrangrifon45 commented 9 years ago

Handling orientation changes with fragments is quite complex. I rearranged the whole Fragment handling as follows: Fragments are created on Main-Activity set-up. When changing fragments, fragments are only shown and hidden but not recreated. When the orientation changes, the app is recreated. The fragments are restored from the previous session if possible (NearMe and History Needs to be recreated due to the drawing).