1. Camera
Camera是Android framework里面支持的,允许你拍照和拍摄视频的设备,那么,在使用camera开发中总是会遇到一些问题,例如以下这样子的:
E/AndroidRuntime(1542): java.lang.RuntimeException: setParameters failed
E/AndroidRuntime(1542): at android...
分类:
移动开发 时间:
2014-10-29 21:36:27
阅读次数:
268
妈蛋这异常那异常都是异常,不能忍了!下面总结一些经常遇到的异常(RuntimeExecption):算术异常类:ArithmeticExecption数组下标越界异常:ArrayIndexOutOfBoundsException向数组中存放与声明类型不兼容对象异常:ArrayStoreExcepti...
分类:
其他好文 时间:
2014-10-24 18:17:16
阅读次数:
134
Exception 这种异常分两大类运行时异常和非运行时异常(编译异常)。程序中应当尽可能去处理这些异常。 运行时异常:都是RuntimeException类及其子类异常,如NullPointerException(空指针异常)、IndexOutOfBoundsException(下标越界异常).....
分类:
编程语言 时间:
2014-10-22 23:21:13
阅读次数:
301
============问题描述============ 本人严格按照android官网的步骤导入android-support-v7-appcompat库项目,再新建了一个工程,引入这个库项目,编译没问题。但是一运行却报如下问题,java.lang.RuntimeException:Unablet...
分类:
其他好文 时间:
2014-10-19 22:59:35
阅读次数:
272
============问题描述============ 10-0112:37:51.070:E/AndroidRuntime(4385):java.lang.RuntimeException:FailuredeliveringresultResultInfo{who=null,request=10...
分类:
其他好文 时间:
2014-10-18 23:56:08
阅读次数:
245
转:http://blog.csdn.net/gaohongijj/article/details/8010869/不能实例化activity有如下三种情况:1.没有在Manifest.xml 清单中注册该activity,或者在创建完activity后,修改了包名或者activity的类名,而配置...
分类:
编程语言 时间:
2014-10-17 10:09:30
阅读次数:
131
/** * Return whether the given throwable is a checked exception: * that is, neither a RuntimeException nor an Error. * @param ex the t...
分类:
编程语言 时间:
2014-10-16 06:49:52
阅读次数:
259
/** * Return whether the given throwable is a checked exception: * that is, neither a RuntimeException nor an Error. * @param ex the t...
分类:
编程语言 时间:
2014-10-16 06:16:22
阅读次数:
207
10-12 17:02:55.500: E/AndroidRuntime(28343): FATAL EXCEPTION: Timer-210-12 17:02:55.500: E/AndroidRuntime(28343): java.lang.RuntimeException: Can't cr...
分类:
移动开发 时间:
2014-10-14 19:03:09
阅读次数:
268
1、RuntimeException
Exception中有一个特殊的子类异常RuntimeException运行时异常,
如果在函数内容抛出该异常,函数上可以不用声明,编译一样通过;
如果在函数上声明了该异常,调用者可以不用进行处理,编译一样通过。
之所以不用在函数上声明,是因为不需要让调用者处理。
当该异常发生,希望程序停止。因为在运行时,出现了无法继续运算的情况,
...
分类:
编程语言 时间:
2014-10-12 17:43:08
阅读次数:
199