vus520 发表于 2012-12-10 14:29:16

实例教程三:文件的保存与读取

实例教程三:文件的保存与读取

<div class="postbody"><div id="cnblogs_post_body">使用代码嵌入android.os.SystemProperties的方法(转)
http://www.eoeandroid.com/thread-206961-1-1.html
Android网络连接处理方法
http://www.eoeandroid.com/thread-206925-1-1.html
IReader书架效果的实现想法,唯一的问题是对美工的技能要...
http://www.eoeandroid.com/thread-206909-1-1.html
布局文件:  
<div class="cnblogs_code"><?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"   android:layout_width="fill_parent"   android:layout_height="fill_parent"   android:orientation="vertical" >   <TextView         android:layout_width="fill_parent"         android:layout_height="wrap_content"         android:text="@string/fileName" />         <EditText         android:layout_width="fill_parent"         android:layout_height="wrap_content"         android:id="@+id/edtFileName"/>         <TextView         android:layout_width="fill_parent"         android:layout_height="wrap_content"         android:text="@string/fileContent" />         <EditText         android:layout_width="fill_parent"         android:layout_height="wrap_content"         android:id="@+id/edtFileContent"         android:minLines="3"/>         <Button         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:id="@+id/btnSave"         android:text="@string/fileSave"/> </LinearLayout> <?xml version="1.0" encoding="utf-8"?> <resources>   <string name="hello">Hello World, MainActivity!</string>   <string name="app_name">文件操作</string>   <string name="fileName">文件名称</string>   <string name="fileContent">文件内容</string>   <string name="fileSave">保存</string>   <string name="success">保存完成</string>   <string name="fail">保存失败</string> </resources>
页: [1]
查看完整版本: 实例教程三:文件的保存与读取