I am developing an android app where I am going to display information about colleges like college name, address, courses available. Can anyone guide me how and where to store those information(assume that I want to store information of around 100 colleges).
Asked
Active
Viewed 54 times
-2
-
1Shared pref can hold that much without problem. But I would prefer SQLite db instead of XMLS. This might give you good insight : http://stackoverflow.com/questions/513084/how-to-ship-an-android-application-with-a-database – Jimmy May 13 '14 at 16:31
3 Answers
2
You should store your data in a Sqlite database, please check: http://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.html

fpanizza
- 1,589
- 1
- 8
- 15
1
If it's only a few rows, you can use a simple XML file. If it has relationships and need some transaction functionality, SQLite.

Oscar
- 13,594
- 8
- 47
- 75
0
There are several ways to store data in an Android
- SharedPreference
- InternalStorage
- ExternalStorage
- SQLite Databases
- Network Connection
Looking at your requirements I would suggest using SQLite, or store it on web somewhere and fetch through Network Connection or Store it internally in a file using InternalStorage.
More here: http://developer.android.com/guide/topics/data/data-storage.html