Equivalent of NavUtils when not using the Android support library?
android, android-4.0-ice-cream-sandwich, android-support-library, android-version, navigation
Solution
Look at the source code of `NavUtils`, if necessary just copy it to your project. It just gets the parent activity set in the manifest and starts it.
Problem
This question has also been asked by someone on the Android Developers Google Group (link), but it does not have an answer... I recently removed the v4 support library from my Android project in Eclipse, because my application only targets Android 4.0 (Ice Cream Sandwich) and up. I'm now going through all the support library references that are giving me errors. One in particular is `NavUtils`, which seems to be a support library class used in Activity navigation. Example: ``` @Override public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()) { case android.R.id.home: NavUtils.navigateUpFromSameTask(this); return true; } return super.onOptionsItemSelected(item); } ``` What is the equivalent of `NavUtils` when not using the support library?