Bugs
共 9 篇文章
Lint Error Cheking preference page
推荐安卓开发神器(里面有各种UI特效和android代码库实例) 程序导出包时出现该错误: Export aborted because fatal Lin error were founds. These are listed in the problems view. Either fix these before running Export Again, or turn off "Run full error check when exporting app" in the Android > Lint Error Cheking preference page 解决办法: Wind…
2012-04-13 09:09 · Bugs
WindowLeaked
推荐安卓开发神器(里面有各种UI特效和android代码库实例) 05-31 10:46:37.658: ERROR/WindowManager(21946): android.view.WindowLeaked: Activity *** has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@2b0c2100 that was originally added here 05-31 10:46:37.658: ERROR/WindowManager(21946): at android.view.V…
2011-10-14 20:11 · Bugs
INSTALL_PARSE_FAILED_MANIFEST_MALFORMED
推荐安卓开发神器(里面有各种UI特效和android代码库实例) 调试工程时,无法安装,遇到提示说 INSTALL_PARSE_FAILED_MANIFEST_MALFORMED 解决办法:Activity在AndroidManifest.xml的申明有问题,用放到当前目录下,即用点来申明或者包名写全,比如.xxxActivity,应该可以解决。
2011-10-10 10:00 · Bugs
关于ViewFlipper在Android2.1及以上版本中的bug
推荐安卓开发神器(里面有各种UI特效和android代码库实例) 频繁使用ViewFlipper这个控件,可以实现比较实用的页面切换,加上比Gallery方便扩展,所以会常常用到,但是在Android2.1及以上版本中出现系统bug,在进行横竖屏切换时会有如下系统报错: java.lang.IllegalArgumentException: Receiver not registered: android.widget.ViewFlipper$1@43dee3c0 在网上查到的原因是由于 onDetachedFromWindow() 莫名其妙地在 onAttachedToWindow() 之…
2011-09-13 10:33 · Bugs · Android
Android decoder->decode returned false for Bitmap download
推荐安卓开发神器(里面有各种UI特效和android代码库实例) There is a bug in FlushedInputStream(is). it fails on slow connections but you can try my magical code to fix it. Bitmap b =BitmapFactory.decodeStream(newFlushedInputStream(is)); imageView.setImageBitmap(b); create a static class outside your method staticclassFlush…
2011-09-01 11:28 · Bugs
关于android.view.WindowLeaked(窗体泄露)的解决方案
推荐安卓开发神器(里面有各种UI特效和android代码库实例) 虽然是小问题一个,但也困扰了我一段时间,现在记下来,给自己做个备忘,也可以给其他人一个参考 view plaincopy to clipboardprint? 01-08 01:49:27.874: ERROR/WindowManager(473): Activity com.photos.MainActivity has leaked window android.widget.ImageButton@43e40d10 that was originally added here 01-08 01:49:27.874: ER…
2011-04-28 14:41 · Bugs · Java · OS · Android · Access
android out of memory 内存泄露
推荐安卓开发神器(里面有各种UI特效和android代码库实例) 1.大量查询数据库时cursor没有关闭 错误写法: Cursor cursor = getContentResolver().query( ); if(cursor != null) { cursor.moveTOFirst(); while(!cursor.isAfterLast()) { .............. } } 正确写法: Cursor cursor = getContentResolver().query( ); if(cursor != null) { cursor.moveTOFirst(); whi…
2011-04-28 14:17 · Bugs · Android
ADB server didn't ACK问题解决方案
推荐安卓开发神器(里面有各种UI特效和android代码库实例) 在命令行下运行 adb start-server errors: * daemon not running. starting it now * ADB server didn't ACK * failed to start daemon * 已经确认adb.exe的路径没有问题,重启了两次模拟器和eclipse还是不行,上网查了下资料~ 解决办法: (1)查看任务管理器,关闭所有adb.exe (2)重启eclipse即可
2011-02-22 13:34 · Bugs · Eclipse
Conversion to Dalvik format failed: Unable to execute dex: null
推荐安卓开发神器(里面有各种UI特效和android代码库实例) 在eclipse中编译android project,提示如标题的错误。 其原因有可能是eclipse heap overflow 解决办法:修改eclipse.ini中的Xms和Xmx -startup plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar --launcher.library plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.1.R36x_v20100810 -product org.…
2011-02-12 10:24 · Bugs · Google · Eclipse · Android