Is it possible to pass an Android Account object from one activity to another via an Intent? If so, how? Is it good programming practice?
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.
If you mean
android.accounts.Accountthen ‘Yes’, as it implementsParcelable, you can pass it as an extra of anIntentusing theputExtra(String name, Parcelable value)method ofIntent.Whether it’s good programming practice or not…that depends entirely on why you want to do it and what the
Activitythat receives it will do with it.