Reputation: 6591
Hi What are the android life cycle method executed when an activity is started from another activity and also the method that should be executed in corresponds to home button click. Is there any way to detect that user has pressed a home button ? is there exist any unique method thatexecute as part of home button,am not meaning home button listener?
Upvotes: 0
Views: 1400
Reputation: 46844
Android Activity lifecycle. OnCreate is called on the new activity, onPause on the old one.
You can't capture the home button press, or do anything with it, but onUserLeaveHint is called as an fyi.
Upvotes: 3