Up Navigation (Back button) in Android

Link:

https://developer.android.com/training/implementing-navigation/ancestral.html#up https://classroom.udacity.com/courses/ud839/lessons/7876183922/concepts/81388905930923# Insert Code in AndroidManifest.xml:

 <activity
 android:name=".NumbersActivity"
 android:label="@string/category_numbers"
 android:parentActivityName=".MainActivity">

 <!-- Parent activity meta-data to support 4.0 and lower -->
 <meta-data
 android:name="android.support.PARENT_ACTIVITY"
 android:value=".MainActivity"/>
 </activity>

Insert code for MainActivity in AndroidManifest.xml:

<activity 
    android:name=".MainActivity"
    android:launchMode="singleTop">
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s