I would like to have an activity which would consist of a close button i.e \'x\' at the right top corner closing the activity. Any examples on this will be very much helpful
In your xml add one button view
syntax:
and inside your activity or java class
public void closeActivity(View v){ Intent intent=new Intent(currentclass.this,statingclass.class); startActivity(intent); finish();