Created
May 28, 2013 19:56
-
-
Save YvesBill/5665610 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.YvesB.Nexus; | |
import android.os.Bundle; | |
import android.view.MenuInflater; | |
import android.view.View; | |
import android.view.View.OnClickListener; | |
import android.widget.Button; | |
import android.widget.PopupMenu; | |
import android.app.Activity; | |
import android.content.Intent; | |
public class MainActivity extends Activity { | |
@Override | |
public void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.activity_main); | |
Button btnuno=(Button)findViewById(R.id.button1); | |
btnuno.setOnClickListener(new OnClickListener(){ | |
public void onClick(View arg0) { | |
Intent openPage0 = new Intent(MainActivity.this,Page0.class); | |
startActivity(openPage0); | |
} | |
}); | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment