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; /* ww w. j a v a 2s . c o m*/ 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 Main extends Activity { ImageButton giftmain; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); addListenerOnButton(); } public void addListenerOnButton() { giftmain = (ImageButton) findViewById(R.id.giftmain); giftmain.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { Intent intent=new Intent(getApplicationContext(), Bday.class); startActivity(intent); } }); } }