开发者

What is the best way to save and restore the controlling commands

开发者 https://www.devze.com 2023-03-29 20:27 出处:网络
I\'m new in android and I have an android app which controls a robot wirelessly. Can anyone please offer an advice to meabout the best way to save and restore the controlling commands for example shou

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消