Posted on .
When we use to navigate from one Activity to another than the previous values resides in our device stack so Here is  some Tips to clear  or kill it .. METHOD 1 - For API level 11 or greater, use FLAG_ACTIVITY_CLEAR_TASK and FLAG_ACTIVITY_NEW_TASK flag on Intent to clear or kill all the activity stack. [crayon-59c1ff33352e0188840002/]   METHOD 2 - Simply use  android:noHistory="true" in AndroidManifest.xml file .     Read More
Posted on .
This is very simple and asked everywhere like interviews and during our LIVE projects . Lets explore . METHOD - 1 You need to @ override [crayon-59c1ff33361e5556736814/] and note down your application values which you want to save eg: [crayon-59c1ff33361ee928773528/] Bundle stores values in the form of (Name-Value-Pair) map . It is passed in onCreate() . The values can be extracted through onRestoreInstanceState() . [crayon-59c1ff33361f3762216760/]    METHOD - 2 Instead of saving data in [crayon-59c1ff33361f8711666699/] you can use methods like [crayon-59c1ff33361fc148903211/]  ... Read More