与测试Android应用的与调试问题 [英] Problem with Testing and Debuging of Android Apps

查看:112
本文介绍了与测试Android应用的与调试问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Actucally我有关于Android的错误了两个相关的问题。我发布了一个应用程序的更新,其中的工作确定之前,工作在当前版本上我的Nexus One,G1和仿真器。不过,我得到了很多的错误日志通过Android Market控制台,因为这一次更新,我无法重现的错误。该应用程序是只有两个活动非常简单,所以它应该是很容易的手动测试应用程序。但是经常有错误,我没有找到释放之前。

所以,第一个问题是,有没有办法来测试更多deaply?

我的第二个问题是专门关于当前错误。似乎有与SQLite数据库至极不能找到一个表有问题。我猜的数据库无法在第一时间得到误差产生。这里的堆栈跟踪:

BTW。有三个用户提供了Desire HD的投诉。是否有已知的错误?

 了java.lang.RuntimeException:无法恢复活动{XXX / XXX}:android.database.sqlite.SQLiteException:没有这样的表:main_ger:在编制:选择_id,code,面积由main_ger
在android.app.ActivityThread.performResumeActivity(ActivityThread.java:3394)
在android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3415)
在android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2859)
在android.app.ActivityThread.access $ 2300(ActivityThread.java:136)
在android.app.ActivityThread $ H.handleMessage(ActivityThread.java:2179)
在android.os.Handler.dispatchMessage(Handler.java:99)
在android.os.Looper.loop(Looper.java:143)
在android.app.ActivityThread.main(ActivityThread.java:5068)
在java.lang.reflect.Method.invokeNative(本机方法)
在java.lang.reflect.Method.invoke(Method.java:521)
在com.android.internal.os.ZygoteInit $ MethodAndArgsCaller.run(ZygoteInit.java:858)
在com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
在dalvik.system.NativeStart.main(本机方法)
致:android.database.sqlite.SQLiteException:没有这样的表:main_ger:在编制:选择_id,code,面积由main_ger
在android.database.sqlite.SQLiteCompiledSql.native_compile(本机方法)
在android.database.sqlite.SQLiteCompiledSql.compile(SQLiteCompiledSql.java:91)
在android.database.sqlite.SQLiteCompiledSql< INIT>(SQLiteCompiledSql.java:64)
在android.database.sqlite.SQLiteProgram< INIT>(SQLiteProgram.java:80)
在android.database.sqlite.SQLiteQuery< INIT>(SQLiteQuery.java:46)
在android.database.sqlite.SQLiteDirectCursorDriver.query(SQLiteDirectCursorDriver.java:53)
在android.database.sqlite.SQLiteDatabase.rawQueryWithFactory(SQLiteDatabase.java:1417)
在android.database.sqlite.SQLiteDatabase.queryWithFactory(SQLiteDatabase.java:1301)
在android.database.sqlite.SQLiteDatabase.query(SQLiteDatabase.java:1256)
在android.database.sqlite.SQLiteDatabase.query(SQLiteDatabase.java:1336)
在XX.XXX.DataBaseHelper.fetchAll(DataBaseHelper.java:190)
在XX.XXX.fillData(mainactivity.java:240)
在XX.XXX.onResume(mainactivity.java:522)
在android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1238)
在android.app.Activity.performResume(Activity.java:3904)
在android.app.ActivityThread.performResumeActivity(ActivityThread.java:3384)
... 12更多
 

解决方案

好像有一些更多的人这个问题:

<一个href="http://www.reigndesign.com/blog/using-your-own-sqlite-database-in-android-applications/comment-page-4/#comment-43655" rel="nofollow">http://www.reigndesign.com/blog/using-your-own-sqlite-database-in-android-applications/comment-page-4/#comment-43655

<一个href="http://stackoverflow.com/questions/4651797/database-handling-stoped-working-on-android-2-2-1-desire-hd-1-72-405-3">Database处理采空工作在Android 2.2.1(Desire HD的1.72.405.3)

http://forum.xda-developers.com/showthread.php? T = 895942

在开发中下面的文章似乎已经找到了解决办法。我会尽快尝试,让你知道。是否有与Desire HD的谁可以帮我测试一下anyonw?

<一个href="http://www.anddev.org/networking-database-problems-f29/missing-table-in-sqlite-with-specific-version-of-desire-hd-t50364.html" rel="nofollow">http://www.anddev.org/networking-database-problems-f29/missing-table-in-sqlite-with-specific-version-of-desire-hd-t50364.html

Actucally I have two related questions concerning Android Errors. I released an update of an app which worked ok before and works in the current version on my Nexus One, G1 and the emulator. However I get a lot of error logs through the Android market console since this last update and I can't reproduce the error. The app is quite simple with only two activities, so it should be quite easy to test the App manually. However there are often Errors which I did not find before releasing.

So the first questions is, is there a way to test more deaply?

My second question is concerning the current error specifically. There seems to be a problem with the SQLite database wich can't find a table. I guess the database can't be created in the first place thus the error. Here's the stack trace:

BTW. There were three users with a Desire HD with complaints. Is there a bug known?

java.lang.RuntimeException: Unable to resume activity {XXX/XXX}: android.database.sqlite.SQLiteException: no such table: main_ger: , while compiling: SELECT _id, code, area FROM main_ger
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3394)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3415)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2859)
at android.app.ActivityThread.access$2300(ActivityThread.java:136)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2179)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:143)
at android.app.ActivityThread.main(ActivityThread.java:5068)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:521)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
at dalvik.system.NativeStart.main(Native Method)
Caused by: android.database.sqlite.SQLiteException: no such table: main_ger: , while compiling: SELECT _id, code, area FROM main_ger
at android.database.sqlite.SQLiteCompiledSql.native_compile(Native Method)
at android.database.sqlite.SQLiteCompiledSql.compile(SQLiteCompiledSql.java:91)
at android.database.sqlite.SQLiteCompiledSql.<init>(SQLiteCompiledSql.java:64)
at android.database.sqlite.SQLiteProgram.<init>(SQLiteProgram.java:80)
at android.database.sqlite.SQLiteQuery.<init>(SQLiteQuery.java:46)
at android.database.sqlite.SQLiteDirectCursorDriver.query(SQLiteDirectCursorDriver.java:53)
at android.database.sqlite.SQLiteDatabase.rawQueryWithFactory(SQLiteDatabase.java:1417)
at android.database.sqlite.SQLiteDatabase.queryWithFactory(SQLiteDatabase.java:1301)
at android.database.sqlite.SQLiteDatabase.query(SQLiteDatabase.java:1256)
at android.database.sqlite.SQLiteDatabase.query(SQLiteDatabase.java:1336)
at XX.XXX.DataBaseHelper.fetchAll(DataBaseHelper.java:190)
at XX.XXX.fillData(mainactivity.java:240)
at XX.XXX.onResume(mainactivity.java:522)
at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1238)
at android.app.Activity.performResume(Activity.java:3904)
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3384)
... 12 more

解决方案

Seems like there are some more people with this problem:

http://www.reigndesign.com/blog/using-your-own-sqlite-database-in-android-applications/comment-page-4/#comment-43655

Database handling stoped working on Android 2.2.1 (Desire HD 1.72.405.3)

http://forum.xda-developers.com/showthread.php?t=895942

The Dev in the following article seems to have found a solution. I will try it soon and let you know. Is there anyonw with a desire hd who could help me test it?

http://www.anddev.org/networking-database-problems-f29/missing-table-in-sqlite-with-specific-version-of-desire-hd-t50364.html

这篇关于与测试Android应用的与调试问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆