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:

  1. we facing problem on 1 device in our test setup, samsung duo running 4.0.4. on other devices, not issue.
  2. 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

Popular posts from this blog

javascript - Karma not able to start PhantomJS on Windows - Error: spawn UNKNOWN -

c# - Display ASPX Popup control in RowDeleteing Event (ASPX Gridview) -

Nuget pack csproj using nuspec -