Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Feb 26, 2023. It is now read-only.
This repository was archived by the owner on Feb 26, 2023. It is now read-only.

SdkVersionHelper.getSdkInt() retruns wrong sdk int? #244

Copy link
Copy link
@pleerock

Description

@pleerock
Issue body actions

06-26 12:36:50.909: E/dalvikvm(567): Could not find method tj.android.projects.kalima.version1.activity.DownloadPackageListActivity_.onBackPressed, referenced from method tj.android.projects.kalima.version1.activity.DownloadPackageListActivity_.onKeyDown
06-26 12:36:50.909: W/dalvikvm(567): VFY: unable to resolve virtual method 2685: Ltj/android/projects/kalima/version1/activity/DownloadPackageListActivity_;.onBackPressed ()V
06-26 12:36:50.909: W/dalvikvm(567): VFY: rejecting opcode 0x6e at 0x0010
06-26 12:36:50.919: W/dalvikvm(567): VFY: rejected Ltj/android/projects/kalima/version1/activity/DownloadPackageListActivity_;.onKeyDown (ILandroid/view/KeyEvent;)Z
06-26 12:36:50.919: W/dalvikvm(567): Verifier rejected class Ltj/android/projects/kalima/version1/activity/DownloadPackageListActivity_;
06-26 12:36:50.919: W/dalvikvm(567): Class init failed in newInstance call (Ltj/android/projects/kalima/version1/activity/DownloadPackageListActivity_;)
06-26 12:36:50.919: D/AndroidRuntime(567): Shutting down VM
06-26 12:36:50.919: W/dalvikvm(567): threadid=3: thread exiting with uncaught exception (group=0x4001aa28)
06-26 12:36:50.919: E/AndroidRuntime(567): Uncaught handler: thread main exiting due to uncaught exception
06-26 12:36:50.959: E/AndroidRuntime(567): java.lang.VerifyError: tj.android.projects.kalima.version1.activity.DownloadPackageListActivity_
06-26 12:36:50.959: E/AndroidRuntime(567): at java.lang.Class.newInstanceImpl(Native Method)
06-26 12:36:50.959: E/AndroidRuntime(567): at java.lang.Class.newInstance(Class.java:1472)
06-26 12:36:50.959: E/AndroidRuntime(567): at android.app.Instrumentation.newActivity(Instrumentation.java:1097)
06-26 12:36:50.959: E/AndroidRuntime(567): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2316)
06-26 12:36:50.959: E/AndroidRuntime(567): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2417)
06-26 12:36:50.959: E/AndroidRuntime(567): at android.app.ActivityThread.access$2100(ActivityThread.java:116)
06-26 12:36:50.959: E/AndroidRuntime(567): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1794)
06-26 12:36:50.959: E/AndroidRuntime(567): at android.os.Handler.dispatchMessage(Handler.java:99)
06-26 12:36:50.959: E/AndroidRuntime(567): at android.os.Looper.loop(Looper.java:123)
06-26 12:36:50.959: E/AndroidRuntime(567): at android.app.ActivityThread.main(ActivityThread.java:4203)
06-26 12:36:50.959: E/AndroidRuntime(567): at java.lang.reflect.Method.invokeNative(Native Method)
06-26 12:36:50.959: E/AndroidRuntime(567): at java.lang.reflect.Method.invoke(Method.java:521)
06-26 12:36:50.959: E/AndroidRuntime(567): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:791)
06-26 12:36:50.959: E/AndroidRuntime(567): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549)
06-26 12:36:50.959: E/AndroidRuntime(567): at dalvik.system.NativeStart.main(Native Method)

Strange error I got when run my app in the android 1.6 emulator. (On my android 4.0.3 device it works fine)

It seems that the problem is that this line of code IS executing in the 1.6 device:

if (((SdkVersionHelper.getSdkInt()< 5)&&(keyCode == KeyEvent.KEYCODE_BACK))&&(event.getRepeatCount() == 0)) {

and onBackPressed() is called. But it doesn't exists in 1.6 version of api

Of course if I add the public void onBackPressed() { } method into my activity it works fine because now it had it.

I already cleaned up the project and build paths. Kinda of weird error because my another project in the same emulator works fine using android annotations

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.