- 博客(7)
- 收藏
- 关注
原创 android 文件读写 (openFileOutput)
openFileOutput()首先给大家介绍使用文件如何对数据进行存储,Activity提供了openFileOutput()方法可以用于把数据输出到文件中,具体的实现过程与在J2SE环境中保存数据到文件中是一样的。public void save() { try { FileOutputStream outStream=this
2013-02-27 19:23:49 2029 1
原创 Java IO读写大文件的几种方式及测试
读取文件大小:1.45G第一种,OldIO:Java代码public static void oldIOReadFile() throws IOException{ BufferedReader br = new BufferedReader(new FileReader("G://lily_947.txt")); PrintWr
2013-02-27 17:47:16 593
原创 使用ImageView引起Missing contentDescription attribute on image的问题
增加ImageView控件时会显示黄色的下划线,出现Missing contentDescription attribute on image的问题主要是因为在没有使用TextView之类的文本控件,这里添加 android:contentDescription="@string/app_name"即可。如: android:contentDescription="@
2013-02-20 15:55:10 648
原创 Android开发中The type SmsManager is deprecated提示
在开发短信功能时,有可能提示SmsManager为deprecated在某些版本里,Eclipse自动导包时会导入import android.telephony.gsm.SmsManager;事实上应该导入import android.telephony.SmsManager;即去掉中的gsm即可
2013-02-20 14:26:00 2033
原创 Not targeting the latest versions of Android; compatibility modes apply. Consider testing and updat
android:minSdkVersion="8" android:targetSdkVersion="8" />出现黄下划线警告:解决办法:uses-sdk中android:targetSdkVersion="17"要写最新的sdk版本;如下示: android:minSdkVersion="8" android
2013-02-20 09:41:07 1931
原创 警告信息:<uses-permission> tag appears after <application> tag
警告信息是: tag appears after tag解决方法:把 放到 前面
2013-02-20 09:37:56 692
原创 (EditText)This text field does not specify an inputType or a hint
在安卓项目开发中,在设计项目样式使用到EditText这个标签时,有的时候会有警告:This text field does not specify an inputType or a hint原因是:EditText需要指定默认输入类型在标签中加入android:inputType=XXX即可,下面列出XXX的可选值与作用。文本类型,多为大写、小写和数字符号。
2013-02-19 16:24:19 457
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人