I'm new in android and I have an android app which controls a robot wirelessly. Can anyone please offer an advice to me about the best way to save and restore the controlling commands for example should I use external file or android's register ...开发者_C百科
Depends on the number of commands. If it is a large number, you can use SQLite
Database, if there are only a few, you can use SharedPreferences
. Both options are embedded and integrated in the Android environment.
First, you gotta check this post to understand the options of storing data in Android. Then you can decide what option to use. Hope this helps.
精彩评论