Re: [HELP] Linking buttons
I believe you can use the setContentView() function. I haven't made a lot of stuff on android.
Have a look at this:
Starting an Activity | Android Developers
You will also need to set an OnClickListener for your button.
View.OnClickListener | Android Developers
I think that this was meant to be posted on Android .
Based on the grammar, I would just like to point out that Java and Eclipse are two different things.
Re: [HELP] Linking buttons
Quote:
Originally Posted by
RickM
I have to make a (simple) android application.
Moved from New to Java
db
Re: [HELP] Linking buttons
Hi,
I hope this will be help to u...
Button Tbutun;
public void onCreate(Bundle savedInstanceState) {
setContentView(R.layout.main);
Tbutun=(Button)findViewById(R.id.button1) //change the id as per yours
Tbutun.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
// TODO Auto-generated method stub
Intent myIntent = new Intent(CurrentActivity.this, NextActivity.class);
startActivity(myIntent);
}
});
Thanks,
Re: [HELP] Linking buttons
tamilarasi, please go through the http://www.java-forums.org/forum-gui...w-members.html and BB Code List - Java Programming Forum - Learn Java Programming and edit your post accordingly.
Quote:
Originally Posted by
tamilarasi
I hope this will be help to u...
This is a programming forum, not SMS chat. Please spell words in full -- you not u
db