tanvi
tanvi

Reputation: 997

making android application in ubuntu 12.10

I have installed eclipse juno on ubuntu 12.10. When I am trying to make a simple android project, it makes such a project:

package com.tanvi.alarm;

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;


public class MainActivity extends Activity {

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

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.main, menu);
        return true;
    }


}

And there is a new folder called menu in the res folder also. I did not chose any menu option while giving the options for the project. What shall be done?

Upvotes: 0

Views: 452

Answers (1)

sandrstar
sandrstar

Reputation: 12643

it's just default example with sample one item option menu (opened on a phone/emulator with menu button). If you don't need any options menu, just delete menu res folder and onCreateOptionsMenu method. For more about menu, checkout Menus tutorial

Upvotes: 1

Related Questions