A
Android Question
Guest
How many intent can I use in an activity example I got a button that goes to the next activity and I have another button that goes to the previous activity but it doesn,t work
this is my code
btn.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
// TODO Auto-generated method stub
Intent i = new Intent(this,Activity.class);
startActivity(i);
}
});
in each button but only one works and I also try with MyContext.this
this is my code
btn.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
// TODO Auto-generated method stub
Intent i = new Intent(this,Activity.class);
startActivity(i);
}
});
in each button but only one works and I also try with MyContext.this