Learned to create/navigate across multiple Activities, the Activity lifecycle, how to modify the XML using the GUI, and how to interact with the user.
Multiple Activities - The different 'pages' of the program. Each time a new page appears, its a new activity.
Modifying the XML using the GUI - Simple drag and drop interface.
Activity lifecycle - Need to read the state of the program. For example, if the program is still running while onPause(), the phone's battery will needlessly drain very quickly.
Interesting tidbit, the whole program re-renders itself every time the landscape is changed. We figured this out by setting up a count on our emulator, rotating the screen, and the count returned back to 0.
I like the humor of some of the Android creators. There's a public static int wtf(string, string) function, which stands for "What a Terrible Failure" and is used to report for an exception that should never occur.
No comments:
Post a Comment