Actually, i have to redirect on the same page when i click the button. i am trying following code but it is not working
if(noCounter==0)
{
p1.setProgress(i);
Toast.makeText(getApplicationContext(), "Deck is completed ",Toast.LENGTH_LONG).show();
Intent myintent = new Intent(Deck.this,Beginner.class);
startActivity(myintent);
}
else
{
Intent myintent = new Intent(Deck.this,Deck.class);
startActivity(myintent);
}
0 comments:
Post a Comment