android-9.0-pie

Caused by: android.database.sqlite.SQLiteException: no such table: BOOK (code 1 SQLITE_ERROR)

醉酒当歌 提交于 2020-08-24 09:28:39
问题 We have created the xyz.sqlite file(in which we have table called BOOK) and saved it into "raw" folder and then copying the file and creating the database at run time, which is working fine in all the versions of android up to Android 8. However when I'm running it on Android 9(Pie) on emulator, it's giving me below mentioned error... Searched for the solution but nothing worked... Any help would be appreciated... Thanks. 09-13 00:55:49.536 5685-5685/? E/AndroidRuntime: FATAL EXCEPTION: main

Caused by: android.database.sqlite.SQLiteException: no such table: BOOK (code 1 SQLITE_ERROR)

柔情痞子 提交于 2020-08-24 09:26:11
问题 We have created the xyz.sqlite file(in which we have table called BOOK) and saved it into "raw" folder and then copying the file and creating the database at run time, which is working fine in all the versions of android up to Android 8. However when I'm running it on Android 9(Pie) on emulator, it's giving me below mentioned error... Searched for the solution but nothing worked... Any help would be appreciated... Thanks. 09-13 00:55:49.536 5685-5685/? E/AndroidRuntime: FATAL EXCEPTION: main

Problem with LayoutInDisplayCutoutMode in Xamarin

守給你的承諾、 提交于 2020-06-26 11:32:14
问题 I have a weird issue with setting an attribute for cutout mode in Xamarin.Android. I want to add support in my app for cutout mode, hence I updated the project to use SDK 9.0 and I added this single line to my Activity: Window.Attributes.LayoutInDisplayCutoutMode = LayoutInDisplayCutoutMode.ShortEdges; My project compiles but when it runs I get this exception on the line above: Java.Lang.NoSuchFieldError: no "I" field "layoutInDisplayCutoutMode" in class "Landroid/view/WindowManager

TelephonyManager.EXTRA_INCOMING_NUMBER always null on Android 9

倾然丶 夕夏残阳落幕 提交于 2020-06-17 06:35:10
问题 On Android 9 the call: String incomingNumber = intent.getStringExtra(TelephonyManager.EXTRA_INCOMING_NUMBER); Always return null , how can I fix this under Android 9 ? It works for my old releases. How can I get the incoming number of a call, these days? 回答1: You need both READ_PHONE_STATE and READ_CALL_LOG permissions granted first, and then be ready for two broadcasts - one with no number as documented here: If the receiving app has Manifest.permission.READ_CALL_LOG and Manifest.permission

Render process crashing webview Android Pie (9)

不想你离开。 提交于 2020-06-17 05:35:47
问题 Trying to load the HTML files from assets folder, app working fine up to Android v8.1 and getting crash in Android Pie (9) devices. Seems like WebView render process getting crash according the debug logs, finding the ways to resolve this issue. Please help and suggest...Thanks in advance. From the logcat: 2019-09-19 15:37:13.967 3313-3342/? E/libc: failed to connect to tombstoned: Operation not permitted 2019-09-19 15:37:14.100 4499-4499/? E/audit: type=1701 audit(1568887634.098:9979): auid

what is a non-SDK interface

六眼飞鱼酱① 提交于 2020-06-09 11:05:11
问题 After searching new Android P features, I came across the non-SDK interfaces restriction. and my question is, What is a non-SDK interface or an SDK interface? What is the difference between them? specially that makes non-SDK once better. Examples of popular SDK and non-SDK interfaces available for android. P.S. I came across abstract answers differentiating between SDK and API interfaces but it didn't fulfill my questions :/ 回答1: Quoting the documentation: Generally speaking, SDK interfaces

env(safe-area-inset-top) not working on Android Pie + WebView 69

早过忘川 提交于 2020-05-14 18:37:16
问题 I have a fullscreen cordova app, I used to use the css below for iPhone X's notch, padding-top: 25px; padding-top: env(safe-area-inset-top); and Android will ignore env(safe-area-inset-top) , and use 25px to prevent the status bar from covering my view. Here is the thing, I suddenly find out webview support env() after Android System Webview component was upgraded to version 69.0.3497.100 in my Android Oreo phone (Huawei mate10). But when I install this cordova app in an Android Pie emulator

USE_FINGERPRINT is deprecated in API level 28

六眼飞鱼酱① 提交于 2020-05-10 03:40:55
问题 Constant USE_FINGERPRINT was deprecated in API level 28 and we should use more generic USE_BIOMETRIC which has been added in same API level. I swap these constants in my Manifest and I'm getting error when calling FingerprintManagerCompat.from(context).isHardwareDetected() . Error is: Missing required permission - USE_FINGERPRINT This happens because of @RequiresPermission("android.permission.USE_FINGERPRINT") annotation in FingerprintManagerCompat in 28.0.0-rc3 support v4 lib. Is this

Broadcast receiver is not working in oreo and pie android

拈花ヽ惹草 提交于 2020-05-09 06:37:10
问题 Boot broadcast receiver is not working and there is nothing in onReceive() public class BootReceived extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { if (Intent.ACTION_BOOT_COMPLETED.equals(intent.getAction())) { Toast.makeText(context, intent.getAction(), Toast.LENGTH_LONG).show(); Log.d("IfWalaBooot", intent.getAction()); Intent intent1 = new Intent(context, MainActivity.class); intent1.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); context

Android Q: file.mkdirs() returns false

我们两清 提交于 2020-04-05 04:03:23
问题 We have an app that uses external storage to store some temporary files: images, binary data. The code for that has been working for a few years without big changes until recently. On Android Q it doesn't work: File f = new File(Environment.getExternalStorageDirectory().toString() + File.separator + MainActivity.APP_DIR) f.mkdirs(); // do sth with f The mkdirs now returns just false . Required permission is provided in the manifest: <uses-permission android:name="android.permission.WRITE