- 博客(37)
- 收藏
- 关注
![](https://csdnimg.cn/release/blogv2/dist/pc/img/listFixedTop.png)
原创 Activity加入构造方法,必须同时带无参的默认构造方法
Android 2.3.3 Eclipse Version: 3.7.0 LogCat 主要错误: 04-05 14:10:38.163: ERROR/AndroidRuntime(3991): Caused by: java.lang.InstantiationException: com.taobao.htc.manage.Nba04-05 14:10:38.
2012-04-12 16:54:39
5821
慎重升级Android SDK Tools 至 r20
Android SDK Tools r20发布, 同时发布的还有 ADT Pulgin 20。但升级到Android SDK Tools r20可能出现众多疑难杂症。 问题一:升级到Android SDK Tools r20,虚拟机出错运行4.0.3或4.1的虚拟机报错Starting emulator for AVD 'iphone4s'Failed to create ...
2012-07-04 16:37:17
318
原创 Activity缺少无参默认构造方法,产生实例化错误InstantiationException
Android 2.3.3 Eclipse Version: 3.7.0 LogCat 主要错误: 04-06 11:24:33.126: ERROR/AndroidRuntime(17173): Caused by: java.lang.InstantiationException: com.tmall.nokia.Iphone04-06 11...
2012-04-12 17:17:41
221
SQLite一次性读取过多记录会造成内存溢出OutOfMemoryError
Android 2.3.3Eclipse Version: 3.7.0LogCat LogCat 报错信息:03-15 11:34:43.163: ERROR/AndroidRuntime(17173): java.lang.OutOfMemoryError 03-15 11:34:43.163: ERROR/AndroidRuntime(17173):...
2012-04-02 21:36:05
1346
原创 SQLite一次性读取过多记录,造成内存溢出OutOfMemoryError
Android 2.3.3 Eclipse Version: 3.7.0LogCatLogCat 报错信息:03-14 13:16:52.033: ERROR/AndroidRuntime(4399): java.lang.OutOfMemoryError 03-14 13:16:52.033: ERROR/AndroidRuntime(4399): at andr
2012-04-02 21:07:07
8053
SQLite的query方法,注意检查参数args中是否含null值
Android 2.3.3 Eclipse Version: 3.7.0 LogCat LogCat 报错信息:03-13 10:25:37.163: ERROR/AndroidRuntime(4166): java.lang.IllegalArgumentException: the bind value at index 2 is null 03-13 10:...
2012-03-13 17:46:25
506
原创 SqLite的query方法,参数args中不能含null值
Android 2.3.3 Eclipse Version: 3.7.0 LogCat LogCat 报错信息:03-13 11:37:27.419: ERROR/AndroidRuntime(844): java.lang.IllegalArgumentException: the bind value at index 2 is null03-13 11:37:27
2012-03-13 13:21:35
4324
ScrollView不能包含多个子项,ScrollView can host only one direct child
Android 2.3.3Eclipse Version: 3.7.0LogCat LogCat 报错信息:03-06 11:32:11.126: ERROR/AndroidRuntime(17173): Caused by: java.lang.IllegalStateException: ScrollView can host only one direct child ...
2012-03-06 17:48:03
122
原创 ScrollView仅支持一个子项,报错ScrollView can host only one direct child
Android 2.3.3Eclipse Version: 3.7.0LogCatLogCat 报错信息:03-06 16:20:10.788: ERROR/AndroidRuntime(163): Caused by: java.lang.IllegalStateException: ScrollView can host only one direct child03
2012-03-06 17:30:06
13773
SQL语句包含表中没有的字段,报错no such column:
Android 2.3.3 Eclipse Version: 3.7.0 Console LogCat 报错信息:02-23 11:20:41.360: ERROR/AndroidRuntime(4366): android.database.sqlite.SQLiteException: no such column: iphone: , while compiling: ...
2012-02-25 17:25:00
2792
原创 no such column:SQL语句包含数据库表中不存在的列名
Android 2.3.3 Eclipse Version: 3.7.0 Console LogCat 报错信息:02-24 09:10:51.176: ERROR/AndroidRuntime(431): android.database.sqlite.SQLiteException: no such column: phone: , while compilin
2012-02-25 17:04:55
30134
Android虚拟机,控制台Console报错几例及解决办法
Android 2.3.3 Eclipse Version: 3.7.0 Console Eclipse下的Android虚拟机,运行应用,正常的控制台信息Console一般如下:[2012-02-17 15:01:28 - tmall] ------------------------------[2012-02-17 15:01:28 - tmall] Android...
2012-02-20 16:20:33
1075
原创 Android虚拟机无法正常工作几例及解决办法
Android 2.3.3Eclipse Version: 3.7.0ConsoleEclipse下运行Android虚拟机,Run应用,正常的Console一般如下:[2012-02-20 15:01:28 - taobaohtc] ------------------------------[2012-02-20 15:01:28 - taobaohtc] Androi
2012-02-20 15:42:08
39615
3
原创 Android错误引用自定义资源数据类型,造成安装解析产生未知错误
Android 2.3.3 Eclipse Version: 3.7.0 LogCat Console 报错信息:[2012-02-15 10:24:31 - taobao] ------------------------------[2012-02-15 10:24:31 - taobao] Android Launch![20
2012-02-17 12:59:54
9794
1
引用自定义资源需注意数据类型
Android 2.3.3 Eclipse Version: 3.7.0 LogCat Console 报错信息:[2012-02-15 13:16:21 - tmall] ------------------------------[2012-02-15 13:16:21 - tmall] Android Launch![2012-...
2012-02-16 17:31:20
121
存储容量检测 注意构建StatFs对象的参数合法性
Android 2.3.3Eclipse Version: 3.7.0LogCatLogCat 报错信息:02-14 10:24:27.134: ERROR/(4355): statfs nokia failed, errno: 202-14 10:24:27.144: WARN/System.err(4355): java.lang.IllegalArgumentExcept...
2012-02-14 13:47:29
151
原创 Android中使用正确参数构建StatFs对象
Android 2.3.3 Eclipse Version: 3.7.0 LogCat LogCat 报错信息:02-14 11:54:12.834: ERROR/(2525): statfs htc failed, errno: 202-14 11:54:12.844: WARN/System.err(2525): java.l
2012-02-14 13:30:03
4561
SQLite抛出错误“未关闭游标及数据库对象”特殊原因一例
Android 2.3.3Eclipse Version: 3.7.0LogCat LogCat 报错信息:02-13 13:29:32.830: WARN/ActivityManager(62): Launch timeout has expired, giving up wake lock! 02-13 13:29:33.381: DEBUG/dalvikvm(17173...
2012-02-13 13:48:31
166
原创 SQLite数据库,应用程序没有关闭游标或数据库对象
Android 2.3.3 Eclipse Version: 3.7.0 LogCat LogCat 报错信息:02-13 11:58:13.759: ERROR/Database(432): close() was never explicitly called on database '/data/data/com.taobao.h
2012-02-13 13:28:18
10570
操作SQLite数据库报错:“绑定或列的索引超出范围”
Android 2.3.3 Eclipse Version: 3.7.0 LogCat LogCat 报错信息:02-13 09:21:35.030: WARN/dalvikvm(17173): threadid=19: thread exiting with uncaught exception (group=0x40015560)...
2012-02-13 13:10:39
509
原创 Android SQLite数据库操作“绑定或列的索引超出范围”
Android 2.3.3 Eclipse Version: 3.7.0 LogCat LogCat 报错信息:02-13 11:58:12.030: WARN/dalvikvm(432): threadid=19: thread exiting with uncaught exception (group=0x40015560)0
2012-02-13 12:55:01
2708
解决Content的startActivity方法报错
Android 2.3.3 Eclipse Version: 3.7.0 LogCat BootBroadcastReceiver继承自android.content.BroadcastReceiver,处理广播事件,部分代码如下: public void onReceive(Context context, Intent intent) { …… In...
2012-02-10 18:01:11
528
原创 Content的startActivity方法需添加FLAG_ACTIVITY_NEW_TASK flag
Android 2.3.3 Eclipse Version: 3.7.0 LogCat BootBroadcastReceiver继承自android.content.BroadcastReceiver,处理广播事件,部分代码如下: public void onReceive(Context context, Intent intent) { ……
2012-02-10 17:43:19
48829
11
原创 “无法播放视频。很抱歉,无法播放此视频” 错误提示的两个原因
Android 2.3.3 Eclipse Version: 3.7.0 LogCat emulator-5554emulator-5554虚拟机,采用VideoView 播放AVI文件类型的视频。弹出错误提示:无法播放视频。很抱歉,无法播放此视频。LogCat 报错信息:02-10 10:25:06.470: INFO/StagefrightPlayer
2012-02-10 11:52:40
36864
2
解决弹出错误“无法播放视频。很抱歉,无法播放此视频”
Android 2.3.3 Eclipse Version: 3.7.0 LogCat emulator-5554虚拟机,采用VideoView 播放视频。弹出错误提示:无法播放视频。很抱歉,无法播放此视频。 LogCat 报错信息:02-09 17:57:08.470: INFO/StagefrightPlayer(34): setDataSour...
2012-02-09 18:29:19
4870
1
国际化资源文件,配置不完整导致报错
Android 2.3.3Eclipse Version: 3.7.0LogCat LogCat 报错信息:02-07 23:19:47.171: WARN/dalvikvm(825): threadid=1: thread exiting with uncaught exception (group=0x40015560)02-07 23:19:47.221: ERROR/A...
2012-02-08 15:07:13
310
原创 国际化开发,资源配置不完整报错 Resources$NotFoundException
Android 2.3.3Eclipse Version: 3.7.0LogCatLogCat 报错信息:02-08 10:29:00.171: WARN/dalvikvm(825): threadid=1: thread exiting with uncaught exception (group=0x40025560)02-08 10:29:00.221: ERROR/
2012-02-08 14:51:29
2651
使用bitmap缩略图,解决图片大小超过预算的VM的问题
Android 2.3.3 Eclipse Version: 3.7.0 LogCat Activity中显示大图,部分源代码如下: try { bitmap = BitmapFactory.decodeFile("/" + nokia.getBitmap(), opt); } catch (Exception e) {...
2012-02-07 17:45:03
181
原创 Android 图片大小超过预算的VM:java.lang.OutOfMemoryError: bitmap size exceeds VM budget
Android 2.3.3 Eclipse Version: 3.7.0 LogCat Activity显示图片,部分源代码: // 图片 try { bitmap = BitmapFactory.decodeFile("/" + sdpath + htc.getBitmap(), opt); }
2012-02-07 17:29:53
10168
仅layout使用继承TextView,报java.lang.NullPointerException
Android 2.3.3 Eclipse Version: 3.7.0 LogCat AutoScrollTextView继承TextView,用于文字特殊效果显示,代码如下:public class AutoScrollTextView extends TextView implements OnClickListener { ...
2012-02-07 13:13:03
148
原创 layout使用继承TextView,Activity未使用,报java.lang.NullPointerException一例
Android 2.3.3 Eclipse Version: 3.7.0 LogCat AutoScrollTextView继承TextView,用于文字特殊效果显示,代码如下:public class AutoScrollTextView extends TextView implements OnClickListener { ……
2012-02-07 12:56:34
3841
原创 Android未调用Looper.prepare()-Can't create handler inside thread that has not called Looper.prepare()
Android 2.3.3 Eclipse Version: 3.7.0 LogCat LogCat 报错信息:02-06 12:08:12.794: WARN/dalvikvm(503): threadid=18: thread exiting with uncaught exception (group=0x40015560)02-06 12:0
2012-02-06 16:44:41
2939
原创 不能创建处理器 Can't create handler inside thread that has not called Looper.prepare()
Android 2.3.3 Eclipse Version: 3.7.0 LogCat LogCat 报错信息:02-06 15:07:52.794: WARN/dalvikvm(503): threadid=18: thread exiting with uncaught exception (group=0x40015560)02-06 ...
2012-02-06 15:27:37
141
Android APK安装失败,共享用户不兼容 INSTALL_FAILED_SHARED_USER_INCOMPATIBLE
Android 2.3.3 Eclipse Version: 3.7.0 LogCat Console 报错信息:[2012-02-05 13:25:26 - nokia] ------------------------------ [2012-02-05 13:25:26 - nokia] Android Launch! [2012-02...
2012-02-06 11:48:42
739
1
原创 Android 共享用户不兼容,安装失败 INSTALL_FAILED_SHARED_USER_INCOMPATIBLE
Android 2.3.3 Eclipse Version: 3.7.0 LogCat Console 报错:[2012-02-06 11:15:26 - taobao] ------------------------------[2012-02-06 11:15:26 - taobao] Android Launch![2012-02-06 11:15:26 - ta
2012-02-06 11:32:59
6157
原创 Android开发问题:ActivityNotFoundException: Unable to find explicit activity class
Android 2.3.3 Eclipse Version: 3.7.0 LogCat LogCat 报错:02-03 15:52:46.363: INFO/ActivityManager(61): Starting: Intent { flg=0x10000000 cmp=com.taobao.iphone4s/.Start } from pid 736 02
2012-02-06 10:03:05
23751
1
无法找到明确的Activity ActivityNotFoundException: Unable to find explicit activity
Android 2.3.3Eclipse Version: 3.7.0LogCat LogCat 报错: 02-03 15:52:46.363: INFO/ActivityManager(61): Starting: Intent { flg=0x10000000 cmp=com.taobao.iphone4s/.Start } from pid 73602-03 1...
2012-02-06 09:52:27
920
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人