title: Activity is destroyed when pressed back button or up button in actionbar
body: <p>As i am Building bus time table app which inserts and displays result of query in a activity, each time i press back button and re launch this activity, the data is again entered and result of the query is duplicated. how to avoid this ? Also When inserting bulk insert data into table in sqlite my app freezes for a second or so, how to avoid this ? Can i use a progressbar ?</p>