targetsdkversion

Delphi - New apps on Google Play must target Android 8 (API level 26) - PUSH notification in background

时光总嘲笑我的痴心妄想 提交于 2019-12-04 05:55:43
From August 2018, all new apps on Google Play must target Android 8 (API level 26) or higher, and from November 2018, all app updates on Google Play must of the same apps on Google Play. Right now the only way you have to upload a new App that target Android 8 is to edit the file AndroidManifest.template.xml and replace targetSdkVersion = "% targetSdkVersion%" by: Android: targetSdkVersion = "26" The problem is that from that moment the app has the restrictions introduced by Android O. The permissions considered as dangerous (camera, location, SMS, ...) will not be granted to the app by the

Android Q emulator - Build.VERSION.SDK_INT returns 28

梦想与她 提交于 2019-12-02 02:27:41
问题 Build.VERSION.SDK_INT returns 28 instead of 29 when running on Android Q emulator. Is there anything I am missing? I am trying to add logic specifically for Android Q but I do not know how to determine this version correctly. app.gradle file contains targetSdkVersion = 'Q' compileSdkVersion = 'android-Q' 回答1: Before the API is finalized and officially becomes API 29 (where you'd use compileSdkVersion 29 , etc), you must use BuildCompat.isAtLeastQ(): Checks if the device is running on a pre