- 博客(11)
- 收藏
- 关注
原创 error opening trace file:no such file or directory
当报错为error opening trace file:no such file or directory1.首先检查在工程创建
2014-10-18 11:35:57
892
原创 The method create(Context, Uri) in the type MediaPlayer is not applicable for the arguments (new Vie
错误提示信息;The method create(Context, Uri) in the type MediaPlayer is not applicable for the arguments (new View.OnClickListener(){}, Uri)PlayerActivity.java /Mp3Player/src/judy/mp3playerline 50 J
2014-05-04 15:44:34
3153
原创 android.os.NetworkOnMainThreadException 和 java.lang.nullpointerexception
异常提示:android.os.NetworkOnMainThreadException java.lang.nullpointerexception
2014-05-01 17:20:20
738
原创 Unable to add window token null is not for an application
Java原AlertDialog.Builder builder;//self其实是Activity对象的引用,根据你所处的上下文来传入相应的引用就可以了//Context self = getApplicationContext();new AlertDialog.Builder(FoxWAR.this).setTitle(R.string.about_title).setM
2014-04-22 22:03:19
915
原创 No resource found that matches the given name
错误信息:Description Resource Path Location Type error:Error retrieving parent for item: No resource found that matches the given name‘android:Theme.Holo.Light.DarkActionBar’. styles.xmlDescription
2014-03-24 21:44:57
4437
转载 关于Android file.createNewFile() 方法出现的问题总结
今天在编写向SDcard中,创建文件夹并向其中保存文件的过程中出现个一系列的问题 在此做下总结:1.首先要注意权限问题2.file.createNewFile() 方法出现的问题会出现No such file ..的问题需要注意的是:要先对设计的文件路径创建文件夹 , 然后在对文件进行创建String local_file = Environme
2014-03-24 14:35:19
915
原创 bin\resources.ap_ does not exist
报错详情:Error generating final archive: java.io.FileNotFoundException: F:\EclipseWorkspace\download\bin\resources.ap_ does not exist 解决办法:打开project中的bin目录,将resources.ap_ 文件拷贝到bin目录下自我解析:新建And
2014-03-09 15:21:37
1669
原创 Java中this语句简介
this指的是当前对象。句型如:this.property必选的 property 参数指的是对象的属性。或this(arguments);参数指的是所调用的构造函数的参数说明this 关键字通常在对象的构造函数中使用,用来引用对象。示例在下面示例中,this 指的是新创建的 Car 对象,并给三个属性赋值。function Car(color, m
2014-03-03 15:26:14
962
原创 try...catch...finally介绍
JScript 语言参考try { tryStatements}catch(exception){ catchStatements}finally {finally { finallyStatements}参数tryStatement必选项。可能发生错误的语句。exception可选项。任何变量名。exception 的初始
2014-03-01 21:23:03
607
转载 Android开发---xml布局文件中的常见属性总结
android:id="@+id/aa"意思就是设置这个控件的id为aa,“+”表示把这个id注册到gen/.../R.java中,方便到代码中用R.id.aa进行调用。android:text="@string/aa"意思是将控件的文本信息设置为res/values/string.xml文件中的name值为aa所对应的“点击按钮”点击按钮。这样的好处是方便修改文字,实现国际化。and
2014-03-01 17:36:04
853
转载 Android 的HashMap介绍
在Android开发中我们经常需要对数据进行分类和操作,对于轻量级的数据存储我们可能不需要动用SQLite或效率以及类库不完善的XML,由于SharedPreferences不具备数据枚举方法,如果仅仅是一个String或Int数组可以通过一个标记分割设计外,我们还是主要来看看Android或者说Java提供的基础数据类型辅助类ArrayList LinkedList Set HashMap的
2014-03-01 17:23:36
953
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人