-
Notifications
You must be signed in to change notification settings - Fork 333
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2207 from CAIYB/master
- Loading branch information
Showing
6 changed files
with
112 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# 第四次实验 :Android存储编程 | ||
|
||
## 1. 实验目标 | ||
掌握在Android App中存储数据 | ||
|
||
## 2. 实验内容 | ||
(1)将应用产生的数据保存到文件存储中; | ||
(2)说明使用的文件存储方式:内部; | ||
(3)将运行结果截图。 | ||
|
||
|
||
## 3. 实验步骤 | ||
(1).在第一个Activity的xml文件中新添加上一个EditView和Button,改变原来的TextView和Button | ||
(2).在第一个Activity的java文件中使用内部存储的方法,将两个Buttion分别用来Save和Load | ||
|
||
## 4. 实验结果 | ||
在搜索栏中输入课程 | ||
![image](https://github.com/CAIYB/android-labs-2018/blob/master/com1614080901103/%E5%AE%9E%E9%AA%8C5%E7%9A%84%E6%88%AA%E5%9B%BE1.png) | ||
点击Save保存后,EditView中的内容会消失 | ||
![image](https://github.com/CAIYB/android-labs-2018/blob/master/com1614080901103/%E5%AE%9E%E9%AA%8C5%E7%9A%84%E6%88%AA%E5%9B%BE2.png) | ||
点击Load后,保存的东西会重新出现 | ||
![image](https://github.com/CAIYB/android-labs-2018/blob/master/com1614080901103/%E5%AE%9E%E9%AA%8C5%E7%9A%84%E6%88%AA%E5%9B%BE3.png) | ||
## 5. 实验体会 | ||
**这次实验拖的时间挺久的,一开始是不知道如何去做,看了老师的提示也是懵懂的,在上网查看了Android的 | ||
存储后,才知道它们有什么区别,知道了自己要做成什么,后面在查看了书后,知道了如何去实现,发现其实也 | ||
不算难。只是使用到了输入输出流,这些之前没有怎么学过只是知道有这个东西,这次的实验收获了这个东西的使用, | ||
感觉也是挺有趣的。** |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.