Created by cutiko 2015-09-23 View revision File onBackPressed.java Added Side-by-side diff More Ignore whitespace Hide word diff +@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(); + } +}