I am reading data from an XML file, and I want to store that data in variables so I can easily reuse that data throughout my application.
Is there a proper way to do this in Android/Java?
Thanks
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.
It all depends on the scenario. The simple answer is populate an object.
Then if you want to pass this between Activity’s you can serialise it.