I created a new AVD. On emulator when the touch event is fired i get
the same error: "The application android has stopped unexpectedly". In
my logcat window i have the following error messages:

11-10 01:43:24.144: DEBUG/dalvikvm(743): GC freed 987 objects / 79024
bytes in 99ms
11-10 01:43:24.324: DEBUG/AndroidRuntime(743): Shutting down VM
11-10 01:43:24.334: WARN/dalvikvm(743): threadid=3: thread exiting
with uncaught exception (group=0x4001aa28)
11-10 01:43:24.334: ERROR/AndroidRuntime(743): Uncaught handler:
thread main exiting due to uncaught exception
11-10 01:43:24.343: ERROR/AndroidRuntime(743):
android.database.CursorIndexOutOfBoundsException: Index 0 requested,
with a size of 0
11-10 01:43:24.343: ERROR/AndroidRuntime(743):     at
android.database.AbstractCursor.checkPosition(AbstractCursor.java:580)
11-10 01:43:24.343: ERROR/AndroidRuntime(743):     at
android.database.AbstractWindowedCursor.checkPosition
(AbstractWindowedCursor.java:172)
11-10 01:43:24.343: ERROR/AndroidRuntime(743):     at
android.database.AbstractWindowedCursor.getString
(AbstractWindowedCursor.java:41)
11-10 01:43:24.343: ERROR/AndroidRuntime(743):     at
com.myapps.facts.Facts.onTouchEvent(Facts.java:237)
11-10 01:43:24.343: ERROR/AndroidRuntime(743):     at
android.app.Activity.dispatchTouchEvent(Activity.java:1990)
11-10 01:43:24.343: ERROR/AndroidRuntime(743):     at
com.android.internal.policy.impl.PhoneWindow
$DecorView.dispatchTouchEvent(PhoneWindow.java:1696)
11-10 01:43:24.343: ERROR/AndroidRuntime(743):     at
android.view.ViewRoot.handleMessage(ViewRoot.java:1658)
11-10 01:43:24.343: ERROR/AndroidRuntime(743):     at
android.os.Handler.dispatchMessage(Handler.java:99)
11-10 01:43:24.343: ERROR/AndroidRuntime(743):     at
android.os.Looper.loop(Looper.java:123)
11-10 01:43:24.343: ERROR/AndroidRuntime(743):     at
android.app.ActivityThread.main(ActivityThread.java:4203)
11-10 01:43:24.343: ERROR/AndroidRuntime(743):     at
java.lang.reflect.Method.invokeNative(Native Method)
11-10 01:43:24.343: ERROR/AndroidRuntime(743):     at
java.lang.reflect.Method.invoke(Method.java:521)
11-10 01:43:24.343: ERROR/AndroidRuntime(743):     at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run
(ZygoteInit.java:791)
11-10 01:43:24.343: ERROR/AndroidRuntime(743):     at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549)
11-10 01:43:24.343: ERROR/AndroidRuntime(743):     at
dalvik.system.NativeStart.main(Native Method)

Where am i wrong? Is there something wrong with the Cursor position?
How to resolve the issue? Please guide.Thanks


On Nov 8, 12:20 pm, Mark Murphy <[email protected]> wrote:
> Maxood wrote:
> > Now for the SD Card, do i have to
> > provide the file size or should i browse the file location and provide
> > the path in the second option?
>
> That is up to you. Unless you have an existing SD card image to work
> with, the former option is probably simplest.
>
> > And what about Skin and Hardware?
> > Should i leave them as they are and carry on with default values?
>
> That is up to you. You probably should be creating several AVDs to test
> on different screen sizes.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> Android App Developer Training:http://commonsware.com/training

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to