android错误提示
森艺儿
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
ImageLoader must be init with configuration before using 错误解决方法
最近开发过程中用到了开源项目Android-Universal-Image-Loader。 在程序开发之前在优快云的文章里看到的有Android-Universal-Image-Loader这么个好东西 ,用起来非常的方便,大家可以看Demo,里面有详细的介绍。 Android-Universal-Image-Loader 在使用的过程中碰到了一些问题。当时完全是按照官方的Demo来原创 2015-05-11 14:40:29 · 517 阅读 · 0 评论 -
请求webservice连接,判断用户是否打开网络
/** * 查询数据 * * @param context * @param methodName * @param Parameters * @param ParValues * @return List */ public static List> getInfo(Context con原创 2015-05-19 12:40:15 · 626 阅读 · 0 评论 -
解决Can't create handler inside thread that has not called Looper.prepare()
1、Handler不带参数的默认构造函数:newHandler(),实际上是通过Looper.myLooper()来获取当前线程中的消息循环, 而默认情况下,线程是没有消息循环的,所以要调用Looper.prepare()来给线程创建消息循环,然后再通 过,Looper.loop()来使消息循环起作用(run方法体内的开始和结束添加) 另外,Activity的M原创 2015-05-19 11:23:46 · 603 阅读 · 0 评论 -
检测得到应用bug的错误提示信息,以文件的形式保存
1、在主应用程序oncreate方法中调用:CrashHandler.getInstance().init(getActivity()); 2、下面是CrashHandler类,拷贝到程序中即可(可以修改保存文件的路径和文件名,以及后缀名等信息) package com.deahu.util; import java.io.File; import java.io.FileOutp原创 2015-05-19 12:28:07 · 469 阅读 · 0 评论 -
Attribute is missing the Android namespace prefix(属性是失踪的Android名称空间前缀)
1、出行此错误的是在xml文件中少一个android:,完整的为android:name=“com.aframe.baseapplication” 比如说 android:name="hello",写成了 name="hello"。原创 2016-01-12 11:07:44 · 712 阅读 · 0 评论 -
android开发遇到问题
1、isConnected failed:EHOSTUNREACH(No route to host) 这种情况出现的原因是,服务器ip地址没有解析成功,换为域名然后正常啦。这种情况大多是地址不正确原创 2016-03-01 19:07:31 · 887 阅读 · 0 评论 -
studio开发问题
1、软件打开闪退 是因为UseCodeCacheFlushing这个无法识别,得去掉studio.exe.vmoptions这个文件里面的第五行就行了。 2、更改studio使用的jdk studio API 21 最低jdk1.7原创 2016-09-29 15:49:18 · 484 阅读 · 0 评论 -
Android 6.0.1选取本地图片操作时报No Activity found to handle intent错误
在写头像打开手机相册时报No Activity found to handle intent错误,我的代码如下 intent = new Intent(Intent.ACTION_PICK, null); intent.setDataAndType( MediaStore.Images.Media.EXTERNAL_CONTENT_URI, "image*/*原创 2017-03-04 14:15:04 · 3067 阅读 · 0 评论
分享