Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7628679
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T05:38:22+00:00 2026-05-31T05:38:22+00:00

I got a very strange error on my android apk that only appears if

  • 0

I got a very strange error on my android apk that only appears if I run it on galaxy 3 froyo device (runs fine on emulator and galaxy s2).

The error comes from the Ontouchevent class, and if I comment out some lines of the code, the error disappears. However those lines have nothing to do with this error (that part of the code has not even executed).

For example, if I add one line of

if(sound)try{SoundManager.playSound(1,1);}catch(Exception e){e.printStackTrace();}

to a switch case inside the ontouchevent keydown, it does not cause error, but if I add 6 of them (not at once), it crashes.

I cannot paste the whole source code because it’s long, but the error is the following:

02-25 19:11:59.893: WARN/dalvikvm(5754): VFY: invalid switch start: at 88, switch offset -32758, count 33104
02-25 19:11:59.928: WARN/dalvikvm(5754): VFY:  rejected Lspaceshooter/apk/OpenGLRenderer;.onTouchEvent (Landroid/view/MotionEvent;)Z
02-25 19:11:59.928: WARN/dalvikvm(5754): Verifier rejected class Lspaceshooter/apk/OpenGLRenderer;
02-25 19:11:59.928: DEBUG/AndroidRuntime(5754): Shutting down VM
02-25 19:11:59.928: WARN/dalvikvm(5754): threadid=1: thread exiting with uncaught exception (group=0x4001d7d0)
02-25 19:11:59.943: ERROR/AndroidRuntime(5754): FATAL EXCEPTION: main
02-25 19:11:59.943: ERROR/AndroidRuntime(5754): java.lang.VerifyError: spaceshooter.apk.OpenGLRenderer
02-25 19:11:59.943: ERROR/AndroidRuntime(5754):     at spaceshooter.apk.Main.onCreate(Main.java:84)
02-25 19:11:59.943: ERROR/AndroidRuntime(5754):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
02-25 19:11:59.943: ERROR/AndroidRuntime(5754):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
02-25 19:11:59.943: ERROR/AndroidRuntime(5754):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
02-25 19:11:59.943: ERROR/AndroidRuntime(5754):     at android.app.ActivityThread.access$2300(ActivityThread.java:125)
02-25 19:11:59.943: ERROR/AndroidRuntime(5754):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
02-25 19:11:59.943: ERROR/AndroidRuntime(5754):     at android.os.Handler.dispatchMessage(Handler.java:99)
02-25 19:11:59.943: ERROR/AndroidRuntime(5754):     at android.os.Looper.loop(Looper.java:123)
02-25 19:11:59.943: ERROR/AndroidRuntime(5754):     at android.app.ActivityThread.main(ActivityThread.java:4627)
02-25 19:11:59.943: ERROR/AndroidRuntime(5754):     at java.lang.reflect.Method.invokeNative(Native Method)
02-25 19:11:59.943: ERROR/AndroidRuntime(5754):     at java.lang.reflect.Method.invoke(Method.java:521)
02-25 19:11:59.943: ERROR/AndroidRuntime(5754):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858)
02-25 19:11:59.943: ERROR/AndroidRuntime(5754):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
02-25 19:11:59.943: ERROR/AndroidRuntime(5754):     at dalvik.system.NativeStart.main(Native Method)

Any idea ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T05:38:23+00:00Added an answer on May 31, 2026 at 5:38 am

    It seems some classes in the code simply contains too many lines for the verifier. The problem occurs only on android 2.2 system or below.

    The solution seems to cut the class to smaller classes and calling them inside the original class. Seems bit stupid, but it works.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Today I've got a stacktrace with a very strange error. Actually, I may be
I've got a very small standalone vb.net app that gets run automatically. Every now
I have got a very strange input issue in which it seems that my
I am very surprised by the strange exception, that I got. class Threads {
I've got an ASP.NET web app that is starting to show some very strange
I got a very similar error to the one below: How can I fix
I've got a very simple WPF UserControl that looks like this: namespace MyUserControl {
I've got a very simple WPF UserControl that looks like this: namespace WpfControlLibrary1 {
I have got a very, very strange problem in my C++ OpenGL application. I
Has anyone seen this very strange behaviour before? I've got a solution whith 70

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.