Android spinner value gets lost when i open new activity and come back from that activity to my previous one.how do i retain my spinner index?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
use activity life cycle methods to save the state of the Activity and restore the Activity state to the previous state. those methods are
onPause(), onResume()http://developer.android.com/reference/android/app/Activity.html follow this link