Intent i= new Intent(ActivityA.this,ActivityA.class);

Read more of this post