Android Tutorial #48 Detect Back Button , onBackPressed() verify by making a log entry using log.d()

Published: 25 October 2015
on channel: clientuser.net
7,781
21

Source Code:   / clientuser_net  

While still on the topic of sanity checking, I also peppered my code with log.d() statements to trace through the activity life cycle of my activity classes.
e.g.
Log.d("AnimationActivity002", "A ClientUser.net Tutorial - Back Button Pressed");

I also take this opportunity to introduce overriding / detecting the back button key press onBackPressed() on android. I place a log in the overridden method to verify that we do press the back button.

I thinks thats it for sanity checking, we are free to move on and explore the game loop tutorial.


On this page of the site you can watch the video online Android Tutorial #48 Detect Back Button , onBackPressed() verify by making a log entry using log.d() with a duration of hours minute second in good quality, which was uploaded by the user clientuser.net 25 October 2015, share the link with friends and acquaintances, this video has already been watched 7,781 times on youtube and it was liked by 21 viewers. Enjoy your viewing!