This is probably a really n00b question but none the less.
I cant get a button to change view (or activity)
this is my code for the button:
[code]
package com.markel.NSF;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
public class Merker extends Activity
{
public void onCreate(Bundle icicle)
{
super.onCreate(icicle);
setContentView(R.layout.alder);
Button bever = (Button) findViewById(R.id.bever);
bever.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
Intent i = new Intent(Merker.this, Bmerk1Activity.class);
startActivity(i);
}
});
}
}
[/code]
The view alder is just five image buttons and they are all in a Tab.
If I just show the layout the app works but not when i try one of the
many button codes that are out there.
Pleas help me
Regards Karl Kristian
Norway
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en