六狼论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

搜索
查看: 137|回复: 0

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

[复制链接]

升级  4.45%

359

主题

359

主题

359

主题

探花

Rank: 6Rank: 6

积分
1089
 楼主| 发表于 2012-12-19 23:09:09 | 显示全部楼层 |阅读模式
实例教程三:文件的保存与读取

<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>
您需要登录后才可以回帖 登录 | 立即注册 新浪微博账号登陆

本版积分规则

快速回复 返回顶部 返回列表