package com.example.navigationsimple; import android.os.Bundle; import android.app.Activity; import android.content.Intent; import android.view.Menu; import android.view.View; public class NavSimple extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.nav_simple); } @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.nav_simple, menu); return true; } public void clickHandlerNav(View target){ Intent intent=new Intent(this,PageLogin.class); startActivity(intent); } }