Add Back Button to ActionBar in Android easily


We may want to add a back button in the top left side of ActionBar. Today i will show you how to easily do it.It can be done easily by adding a parameter in Manifest file.In Manifest file under the Activity tag use the following.Now a back arrow will be visible in actionbar

<activity android:name=".PaidSuccessActivity"    android:parentActivityName=".MyParentActivity" ></activity>
Share on Google Plus

About Admin

I am a Java and Android developer and a science enthusiast.I Like to explain complex things in simple language so anybody even without a graduation in computer science or Electronics can understand the concepts easily.

0 comments:

Post a Comment