找回密码
 立即注册
DataStoreclasseslearnbin | android开发 2022-10-29 53 0star收藏 版权: . 保留作者信息 . 禁止商业使用 . 禁止修改作品
今日学习数据存储,做了个小程序,练习了下sharedPreferences存储数据,比较简单。之后又想实现退出程序。网上查了一下2次按下回来键以后退出程序的代码,部分BUG,我改正以后能实现正常的功能了。android其实不广SQL数据库,还有SharedPreferences储存方法。下面就是用一个小实例来给大家展现一下SharedPreferences怎样用。本资料共包括以下附件:
DataStore\bin\classes\com\learn\DataStoreActivity$1.class
DataStore\bin\classes\com\learn\DataStoreActivity$2.class
DataStore\bin\classes\com\learn\DataStoreActivity$task.class
DataStore\bin\classes\com\learn\DataStoreActivity.class
DataStore\bin\classes\com\learn\R$attr.class
DataStore\bin\classes\com\learn\R$drawable.class
DataStore\bin\classes\com\learn\R$id.class
DataStore\bin\classes\com\learn\R$layout.class
DataStore\bin\classes\com\learn\R$string.class
DataStore\bin\classes\com\learn\R.class
DataStore\bin\res\drawable-hdpi\ic_launcher.png
DataStore\bin\res\drawable-ldpi\ic_launcher.png
DataStore\bin\res\drawable-mdpi\ic_launcher.png
DataStore\bin\classes.dex
DataStore\bin\DataStore.apk
DataStore\bin\resources.ap_
DataStore\gen\com\learn\R.java
DataStore\res\drawable-hdpi\ic_launcher.png
DataStore\res\drawable-ldpi\ic_launcher.png
DataStore\res\drawable-mdpi\bg.jpg
DataStore\res\drawable-mdpi\ic_launcher.png
DataStore\res\layout\main.xml
DataStore\res\values\strings.xml
DataStore\src\com\learn\DataStoreActivity.java
DataStore\.classpath
DataStore\.project
DataStore\AndroidManifest.xml
DataStore\proguard.cfg
DataStore\project.properties
.....太多文件了省略.....

(Today, I learned about data storage, made a small program, and practiced sharedPreferences to store data, which is relatively simple. Then I want to exit the program. I checked the code of exiting the program after pressing the Back button twice on the Internet. Some bugs can be corrected and normal functions can be realized. In fact, Android does not cover SQL databases. It also has SharedPreferences storage methods. Here is a small example to show you how to use SharedPreferences. This document includes the following annexes:
DataStore\bin\classes\com\learn\DataStoreActivity$1.class
DataStore\bin\classes\com\learn\DataStoreActivity$2.class
DataStore\bin\classes\com\learn\DataStoreActivity$task.class
DataStore\bin\classes\com\learn\DataStoreActivity.class
DataStore\bin\classes\com\learn\R$attr.class
DataStore\bin\classes\com\learn\R$drawable.class
DataStore\bin\classes\com\learn\R$id.class
DataStore\bin\classes\com\learn\R$layout.class
DataStore\bin\classes\com\learn\R$string.class
DataStore\bin\classes\com\learn\R.class
DataStore\bin\res\drawable-hdpi\ic_ launcher.png
DataStore\bin\res\drawable-ldpi\ic_ launcher.png
DataStore\bin\res\drawable-mdpi\ic_ launcher.png
DataStore\bin\classes.dex
DataStore\bin\DataStore.apk
DataStore\bin\resources.ap_
DataStore\gen\com\learn\R.java
DataStore\res\drawable-hdpi\ic_ launcher.png
DataStore\res\drawable-ldpi\ic_ launcher.png
DataStore\res\drawable-mdpi\bg.jpg
DataStore\res\drawable-mdpi\ic_ launcher.png
DataStore\res\layout\main.xml
DataStore\res\values\strings.xml
DataStore\src\com\learn\DataStoreActivity.java
DataStore\.classpath
DataStore\.project
DataStore\AndroidManifest.xml
DataStore\proguard.cfg
DataStore\project.properties
..... Too many files omitted)

[下载]20502890044.rar




上一篇:动态壁纸实例
下一篇:悬浮歌词(迷你歌词)