Specify An Activity Back From Native WiFi Settings Screen
In my particular case, the application is intended to be running in an embedded system where the application flow is handled by the app itself and the android navigation bar is dis
Solution 1:
Try to call Wi-Fi setting from your app using this code:
startActivity(new Intent(Settings.ACTION_WIFI_SETTINGS)
.putExtra("extra_prefs_show_button_bar", true)
.putExtra("extra_prefs_set_back_text", "Back to the app!")
.putExtra("extra_prefs_set_next_text", ""));
Solution 2:
In my use case I was able to get the top-left arrow to finish the settings activity and thus return to my app by adding the following override to the SettingsActivity.java file in packages/apps/Settings/src/com/android/settings/SettingsActivity.java
@Override
public boolean onNavigateUp() {
finish();
return true;
}
and then rebuilding the AOSP source
Post a Comment for "Specify An Activity Back From Native WiFi Settings Screen"