Best way to save data in android

Peter Sun

I am creating an chat program that communicates with my server at home, so I can send commands. I was wondering what is the best way to save the login information? database? shared preference? sqlite database? file(xml,txt)?

what do you guys think and why?

amatellanes

You can take a look at this article: http://developer.android.com/guide/topics/data/data-storage.html

In my opinion, the best way will depend on the amount of data, if you want to save your login information I'd use SharedPreferences, but if you want to save the login information of many people, I think of using a sqlite database.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Android best way to save settings and data

From Dev

Best way to save UIImages in Core Data

From Dev

SpriteKit Swift best way to save level data

From Dev

Best way to save large amount of data locally in unity3D android?

From Dev

Best way to store location data - Android

From Dev

Best way to send data from DB to Android

From Dev

What is the best way to create a data table in android?

From Dev

Android, Best way to store lists of data

From Dev

Best way to store location data - Android

From Java

What is the best way to stop a program in Python and save the data?

From Dev

The best way to save Configuration data in Xamarin.Forms based app?

From Dev

Best way to save html5 canvas data as object

From Dev

Laravel best way to save data one to one relationships?

From Dev

What is the best way to save data with HTML tags in DynamoDB?

From Dev

How to save game on Android SDL2 in a file best way?

From Dev

Which way is the best to save file on external storage on Android?

From Dev

Simplest way to save persistent data on android (BroadcastReceiver)

From Dev

What is the most suitable way to save that data in android

From Dev

Best way to save credentials in device

From Dev

What is the best way to save JNIEnv*

From Dev

Android: what is the best way to store JSON data offline for the app in android?

From Dev

Best way to save attribute inside save block?

From Dev

Best way to sort data

From Dev

Best way to encode data

From Dev

Best way to transform data

From Dev

Best way to persist data?

From Dev

Best way to share data between android app components

From Dev

Best way to store and search large text data in android

From Dev

Best way to display web service data in Tabs fragments in Android

Related Related

  1. 1

    Android best way to save settings and data

  2. 2

    Best way to save UIImages in Core Data

  3. 3

    SpriteKit Swift best way to save level data

  4. 4

    Best way to save large amount of data locally in unity3D android?

  5. 5

    Best way to store location data - Android

  6. 6

    Best way to send data from DB to Android

  7. 7

    What is the best way to create a data table in android?

  8. 8

    Android, Best way to store lists of data

  9. 9

    Best way to store location data - Android

  10. 10

    What is the best way to stop a program in Python and save the data?

  11. 11

    The best way to save Configuration data in Xamarin.Forms based app?

  12. 12

    Best way to save html5 canvas data as object

  13. 13

    Laravel best way to save data one to one relationships?

  14. 14

    What is the best way to save data with HTML tags in DynamoDB?

  15. 15

    How to save game on Android SDL2 in a file best way?

  16. 16

    Which way is the best to save file on external storage on Android?

  17. 17

    Simplest way to save persistent data on android (BroadcastReceiver)

  18. 18

    What is the most suitable way to save that data in android

  19. 19

    Best way to save credentials in device

  20. 20

    What is the best way to save JNIEnv*

  21. 21

    Android: what is the best way to store JSON data offline for the app in android?

  22. 22

    Best way to save attribute inside save block?

  23. 23

    Best way to sort data

  24. 24

    Best way to encode data

  25. 25

    Best way to transform data

  26. 26

    Best way to persist data?

  27. 27

    Best way to share data between android app components

  28. 28

    Best way to store and search large text data in android

  29. 29

    Best way to display web service data in Tabs fragments in Android

HotTag

Archive