Today we learn how you can create an option menu for your application.
Lets start with an empty android project. The package name will be com.droidnova.android.howto.optionmenu and the activity will have the name SimpleOptionMenu.
Our activity should now look very familiar to us:
1 2 3 4 5 6 7 8 9 10 11 12 13 | package com.droidnova.android.howto.optionmenu; import android.app.Activity; import android.os.Bundle; public class SimpleOptionMenu extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); } } |