-
Notifications
You must be signed in to change notification settings - Fork 334
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 #1970 from zaitao/master
- Loading branch information
Showing
4 changed files
with
138 additions
and
2 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,17 @@ | ||
# 第五次实验 | ||
## 1.实验目标 | ||
+ 掌握在Android App中存储数据 | ||
## 2.实验步骤 | ||
+ 打开上次实验的项目 | ||
+ 点开activity_main.xml文件,给EditText控件添加一个id,添加一个Button控件用于保存数据,添加一个TextView控件用于显示数据保存的路径 | ||
+ 参考实验要求五文件操作的代码,选择内部存储的方式,修改MainActivity中的代码,添加监听器以及文件输入输出流 | ||
+ 运行程序并截图 | ||
+ 使用git将代码提交到自己的库里 | ||
+ 在自己的GitHub库上创建和发送Pull Request | ||
+ 在GitHub中使用Markdown文件编写实验报告 | ||
## 3.实验结果 | ||
![image](https://github.com/zaitao/android-labs-2018/blob/master/soft1614080902138/123.png) | ||
## 4.实验体会 | ||
尝试着在手机中搜索存储数据的files_demo文件,想查看一下存储的数据,发现找不到,百度了一下,是因为手机没有root,所以是不能查看内部文件的。 | ||
做这几次实验最大的收获是学会了遇到问题尝试着去解决问题,就比如说,运行项目会出现奇怪的错误,有些可以通过百度去解决,有时候百度了也解决不了, | ||
但是删掉原来的项目,重新做一个就没问题了。 |
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