java - Android how to kill process when home button pressed -


alright, basically, want able force users go through first activity everytime bring app up, checks updates. since later versions of android prevent me overriding home button, had relied on calling onstop method force process kill itself, forcing reload when app opened again.

problem is, cannot transition new activities without onstop method being called. there other way accomplish this, or keep onstop method being called on activity transition?

i'd avoid messing activity lifecycle @ cost. if want app start it's first activity every time, that's counter-intuitive android users used ... might cause surprisingly more negative comments expected.

if "checks updates" need do, why don't in onresume() in activities (hopefully you're using sort of baseactivity in app others extend, it's gonna 2 lines of code add it)? if need update, redirect them update interface there (or whatever action decide).


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -