[Solved] Android bugs on device. What should I do to fix them? [closed]


First of all whenever you want to disable back press just override onBackPressed() method and remove super. like this:

@Override
public void onBackPressed() {
    //super.onBackPressed();
}

Second you’r using application context to show toast. use activity context.

Toast.makeText(this or YourActivity.this, "Setup Complete!", Toast.LENGTH_LONG).show();

Third just add this attribute into your manifest class. This will avoid recrating your activity when orientation change

android:configChanges="orientation"

11

solved Android bugs on device. What should I do to fix them? [closed]