I'm developing an application that should support:
- Devices without the action bar (< Android 3.0)
- Devices with an action bar
Now, my hierarchy allows the user to go down one level, for example:
- Home Screen
- Submenu 1
- Submenu 2
- Submenu 3 (launches WebView)
In the Web View, the Back button is overloaded for web navigation, so I need a separate Home button)
With Android 3.0 and above, I can easily use the application's icon as a Home button, provided I've declared the android:parentActivityName
in the Manifest. This will make the Home button appear as "Back", and will provide a way go to the home screen even when you're deep in some web view hierarchy.
However, with devices below 3.0, there is no action bar, and therefore no Home button. The question now is: By the default design guidelines, how should I allow the user to go back to my home screen immediately?
The Android navigation guidelines don't mention anything related to this for versions below 3.0. I was thinking about adding a classical menu item (which would appear when the menu button is pressed), but then I'd have to make this unavailable for any device that has an action bar. Is this the way to go?