performance - Android app navigates to launch activity when coming from background -
i have 3 activities ( a, b, c a-is launch activity). when press home button when @ activity c, app goes background. after that, took app through apps list menu. @ time, launch activity showing (activity a). when press button, goes previous activity (c). want retain in same activity (c) while coming background. when run application through eclipse, works fine. when send apk file through mail , run in device, fails (previous problem occurs ). tried
android:launchmode="standard"
and
android:alwaysretaintaskstate="true"
in launch activity (login activity or a). body please me, in advance.
follow following steps insure following right practice: 1. make sure using finish(); on activity or b if want finish , dont if want button functionality. 2. try implementing onpause() , onresume() if not going perform functionality in them. use super() them there. 3. also, in android when start activity clicking on icon instead of resuming running activities, exhibits different behaviour.
Comments
Post a Comment