I’m new to Java and Android development and I want to ask what are the available method to store a data to a persistent storage? Like for example I want to store a collection of strings like in database or files.
Please advise. 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.
As you said in your question itself you can use file or database.If more data is there then you can go for file and database(SQLITE) or else if small data then you can also go for SharedPreferences.Below is one link where its all about datastorage in android all from documentaion.Hope it will help you. 🙂
Here is link