Im trying to set my application menus up and i cant seem to do it  can
someone help me out i would really appreciate it im real confused!! I
just want to be able to press my exit button and it close the app or
something of that nature.

package com.example.menu;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;

public class LimeDroid extends Activity {
    /** Called when the activity is first created.

     * @return */

        public boolean onCreateOptionsMenu(Menu menu){

                MenuInflater inflater = getMenuInflater();

                inflater.inflate(R.menu.menu, menu);

                return true;

                }

         @Override
         public boolean onOptionsItemSelected(MenuItem item) {
          super.onOptionsItemSelected(item);


        @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        Intent intent = new Intent("Reverse");
        String variableToPass = null;
                intent.putExtra("INFO_TO_PASS", variableToPass);

        }

        }

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" 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-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to