Back to project page HappyBirthday.
The source code is released under:
Apache License
If you think the Android project HappyBirthday listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package tk.eatheat.happybirthday; /* w ww . j a va 2 s . com*/ import android.app.Activity; import android.os.Bundle; import android.widget.ImageButton; import android.view.View; import android.view.View.OnClickListener; import android.content.Intent; public class Bday extends Activity { ImageButton arrow; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.bday); addListenerOnButton(); } public void addListenerOnButton() { arrow = (ImageButton) findViewById(R.id.arrow); arrow.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { Intent intent=new Intent(getApplicationContext(), Rules.class); startActivity(intent); } }); } }