Answers for "android navigation back buttom android"

1

android back navigation

@Override
public boolean onOptionsItemSelected(@NonNull MenuItem item) {
  int itemId = item.getItemId();
  if (itemId == android.R.id.home) {
    // force up navigation to have the same behavior as temporal navigation
    onBackPressed();
    return true;
  } else {
    return super.onOptionsItemSelected(item);
  }
}
Posted by: Guest on March-08-2021
0

back button android studio

<meta-data
      android:name="android.support.PARENT_ACTIVITY"
      android:value=".MainActivity" />
Posted by: Guest on May-24-2021

Code answers related to "android navigation back buttom android"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language