Hi, below I have a template of the main life cycle of an android
program. I am now at the stage that I need to start thinking about
where the best place to do things are. Can someone with a good
knowledge of best practices in Android development please copy an
paste the following comments in their respective place in the
template. Also if you can think of other things that should be done
put them in also. This would be a great help, cheers.
//open a database db.open()
//close a database db.close()
//getDefaultSharedPreferences
//Bind to a service
//Unbind from a service
//open Text to Speech library tts.
//closeText to Speech library tts mTts.shutdown().
//Create event listeners for Views
//Register a broadcast receiver
//unregister a receiver
//save activity state
//restore activity state
public class Template extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
//set the layout
//get the views
}
@Override
protected void onStart() {
super.onStart();
}
@Override
protected void onResume() {
super.onResume();
}
@Override
protected void onRestart() {
super.onRestart();
}
@Override
protected void onPause() {
super.onPause();
}
@Override
protected void onStop() {
super.onStop();
}
@Override
protected void onDestroy() {
super.onDestroy();
}
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---