- 博客(6)
- 资源 (5)
- 收藏
- 关注
原创 android写入任意路径中
package yu.bin; import java.io.FileOutputStream; import android.app.Activity; import android.os.Bundle; import android.util.Log; import android.view.View; import android.view.View.OnClickListener; im
2012-04-28 13:25:21 2317 1
原创 android 写入data/data/包名/file/中
package yu.bin; import java.io.FileOutputStream; import android.app.Activity; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.widget.Butt
2012-04-28 13:23:56 7152 3
原创 android读取SDCard任意路径下的文件
文件不能太大否则会报内存溢出package yu.bin; import java.io.FileInputStream; import org.apache.http.util.EncodingUtils; import android.app.Activity; import android.os.Bundle; import android.widget.TextView; public
2012-04-28 13:22:39 6558 2
原创 android读取data/data/包名/file路径下的txt文件
文件不能太大否则会报内存溢出package yu.bin; import java.io.FileInputStream; import org.apache.http.util.EncodingUtils; import android.app.Activity; import android.os.Bundle; import android.widget.TextView; public
2012-04-28 13:21:53 17263 1
原创 java中读取txt文件获得编码格式方法
java中读取txt文件获得编码格式方法 private String codetype(byte[] head) { byte[] codehead = new byte[4]; // 截取数组 System.arraycopy(head, 0, codehead, 0, 4); String code = "";
2012-04-28 13:20:09 4801
原创 读取android项目中的文件(可以读取assets文件夹或在res文件夹中raw中的文件)
读取android项目中的文件 文件不能太大否则会报内存溢出 package yu.bin; import java.io.InputStream; import org.apache.http.util.EncodingUtils; import android.app.Activity; import android.os.Bundle; import android.widget.T
2012-04-28 13:17:47 4554
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人