The Event in Fragment should be triggered when the fragment go to sleep
If you wish to do some actions, such as auto save, when the user go to other app, therefore the user put your app in a sleep mode at the background
You must override the onPause() method like below:
Code
@Override | |
public void onPause() { | |
super.onPause(); | |
if (!txtTitle.getText().equals("")) { | |
saveTag();; | |
} | |
} |
Trackback address for this post
Trackback URL (right click and copy shortcut/link location)
Feedback awaiting moderation
This post has 18 feedbacks awaiting moderation...
Form is loading...