android - onDestroy gets called whenever screen turns off -
i aware of fact problem has been reported earlier , have used recommended solutions none has helped far.
as mentioned in title, ondestroy()
called every time screen turns off. doesn't happen if service on.
application has fixed orientation , hence
android:screenorientation="portrait"
as per earlier suggestions, added
android:configchanges="orientation|keyboardhidden"
etc. implemented onconfigurationchanged()
never gets called.
two important points:
- we facing problem on 1 device in our test setup, samsung duo running 4.0.4. on other devices, not issue.
- this issue not happening other apps running on same device.
will appreciate help.
thanks
update: seems setting these flag causing issue. removing them solves used reason other insight appreciated.
intent.flag_activity_single_top | intent.flag_activity_no_history
Comments
Post a Comment