- Add a logging to your Droid1 project. Within the onCreate() callback method, add an informational logging message, using the Log.i() method. Run the application and view the log results.
[For example, where would I type "onCreate()"? In the manifest? and under what
- Implement some of the Activity callback methods in addition to onCreate(), such as onStart(), onRestart(), onResume(), onPause(), onStop(), and onDestroy(). Add a log message to each callback method and then run the application normally. View the log result to trace the application life cycle. Next, try some other scenarios, such as pausing or suspending the application and then resuming. Simulate an incoming call. Watch the application log to see how the activity responds to such events.
[ I understand how to simulate calls through the DDMS and etc., but other than that, I am clueless on where to type and of that code, and what variables if any to include.
I am running the latest Android SDK and using Eclipse.
EDIT: No this is not homework, this is from the Sam's Teach Yourself Book
EDIT(Revised): Once I get this.. public void onCreate(Bundle savedInstance) { ... code ... }
where do I post this, in the Manifest.xml? under activity such as < activity >?