This is a sample activity which shows How to persist the state of the data i.e. if you save something on first launch it checks those setting when you relaunch the app.
Underlying Algorithm:
Basic description of algorithm in step by step form:
1.) Create a project StatePersistence.
2.) Put the following code snippet in res/layout/main.xml.
1.) Create a project StatePersistence.
2.) Put the following code snippet in res/layout/main.xml.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"