Android Question Pre-launch report: Android compatibility warnings

jo1234

Active Member
Licensed User
Longtime User
Hi,

the Google Play Pre-launch report for my app shows the following Android Compatibility warnings:

We’ve detected that your app is using unsupported APIs.
The following APIs are greylisted and Google can’t guarantee that they will work on existing versions of Android. Some may be already be restricted for your target SDK

StrictMode policy violation: android.os.strictmode.NonSdkApiUsedViolation: Ldalvik/system/VMRuntime;->getRuntime()Ldalvik/system/VMRuntime;
StrictMode policy violation: android.os.strictmode.NonSdkApiUsedViolation: Ldalvik/system/VMRuntime;->is64Bit()Z
StrictMode policy violation: android.os.strictmode.NonSdkApiUsedViolation: Landroid/os/Message;->flags:I
StrictMode policy violation: android.os.strictmode.NonSdkApiUsedViolation: Landroid/os/Message;->recycleUnchecked()V
StrictMode policy violation: android.os.strictmode.NonSdkApiUsedViolation: Landroid/os/Message;->when:J
StrictMode policy violation: android.os.strictmode.NonSdkApiUsedViolation: Landroid/os/MessageQueue;->next()Landroid/os/Message;

The detailed descriptions are attached.

Is this anything I should worry about?

thanks,
Johannes
 

Attachments

  • pre-launch report Android compatibility warnings.txt
    23 KB · Views: 282

Erel

B4X founder
Staff member
Licensed User
Longtime User
StrictMode policy violation: android.os.strictmode.NonSdkApiUsedViolation: Ldalvik/system/VMRuntime;->getRuntime()Ldalvik/system/VMRuntime;
StrictMode policy violation: android.os.strictmode.NonSdkApiUsedViolation: Ldalvik/system/VMRuntime;->is64Bit()Z
These two come from Google vision API.

The others are related to the deprecated Msgbox (not async) / DoEvents implementations. Better not to use those. Switch to MsgboxAsync.
 
Upvote 0

jo1234

Active Member
Licensed User
Longtime User
I have replaced all Msgbox (not async) / DoEvents from my code.
Still I get the same Android Compatibility warnings in the Google Play Pre-launch report for my app.

StrictMode policy violation: android.os.strictmode.NonSdkApiUsedViolation: Landroid/os/Message;->flags:I
StrictMode policy violation: android.os.strictmode.NonSdkApiUsedViolation: Landroid/os/Message;->recycleUnchecked()V
StrictMode policy violation: android.os.strictmode.NonSdkApiUsedViolation: Landroid/os/Message;->when:J
StrictMode policy violation: android.os.strictmode.NonSdkApiUsedViolation: Landroid/os/MessageQueue;->next()Landroid/os/Message;


Interestingly, they all come from the same com.me.myapp.main.onCreate(main.java:64):
at anywheresoftware.b4a.Msgbox.<clinit>(Msgbox.java:55)
at anywheresoftware.b4a.keywords.Common.StartService(Common.java:896)
at anywheresoftware.b4a.objects.ServiceHelper$StarterHelper.startFromActivity(ServiceHelper.java:197)
at com.me.myapp.main.onCreate(main.java:64)

The detailed descriptions are attached.
 

Attachments

  • pre-launch report Android compatibility warnings 2.txt
    7.3 KB · Views: 228
Upvote 0
Top