i am developing one application for displaying images and labels and its sound.i want to get this info from xml .where i need to keep xml file in android project how to get values from that xml file
Thanks in advance
Aswan
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.
You can package the xml file in
assets/directory inside your apk. With that, you can useIf your file just contains labels, or strings, you can save it in put it in
res/values/strings.xmlinside your apk. In this case you can access the string values using the android generatedRclassIf you have a custom file (with custom structure) you can use DOM, SAX, or Xml Pull to read those files. e.g.