Snippets

cutiko Custom Back Button functionality

Created by cutiko
@Override
public void onBackPressed() {
/*Dependeing on what you are doing you maybe need this*/
/*super.onBackPressed();*/

	if (/*something*/)  {
		//this will happen
	} else {
		//normal backbutton functionality
		finish();
	}
}

Comments (0)