android-10.0

Dark theme configuration change in Android Q

安稳与你 提交于 2020-02-02 11:19:07
问题 I want to implement android 10 dark theme in my app , I have these following cases: SYSTEM_DEFAULT, NIGHT_MODE, LIGHT_MODE The problem is when I change theme from night or light to system_default from inside the app and it can not understand whether the system is in light mode or dark mode. so the theme won't be updated. I've tried the dark theme by google https://developer.android.com/guide/topics/ui/look-and-feel/darktheme and implementing the configuration still won't be good for me

Dark theme configuration change in Android Q

吃可爱长大的小学妹 提交于 2020-02-02 11:19:06
问题 I want to implement android 10 dark theme in my app , I have these following cases: SYSTEM_DEFAULT, NIGHT_MODE, LIGHT_MODE The problem is when I change theme from night or light to system_default from inside the app and it can not understand whether the system is in light mode or dark mode. so the theme won't be updated. I've tried the dark theme by google https://developer.android.com/guide/topics/ui/look-and-feel/darktheme and implementing the configuration still won't be good for me

Installing apk that updates the same app fails on Android 10; java.lang.SecurityException: Files still open

强颜欢笑 提交于 2020-02-01 09:38:20
问题 Our app downloads an APK from our server, and runs this to upgrade itself. As mentioned in Android 10 - No Activity found to handle Intent and Xamarin Android 10 Install APK - No Activity found to handle Intent, this does not work as previously if the mobile device has been upgraded to Android 10, getting "No Activity found to handle Intent". We've tried to rewrite this using PackageInstaller as in the example https://android.googlesource.com/platform/development/+/master/samples/ApiDemos/src

Can't start activity from BroadcastReceiver on android 10

陌路散爱 提交于 2020-01-25 08:53:10
问题 I updated my OS version to android 10 last night, and since then the startActivity function inside the broadcast receiver is doing nothing. This is how I try to start the activity based on the answer of CommonsWare: Intent i = new Intent(context, AlarmNotificationActivity.class); i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) { // This is at least android 10... Log.d("Debug", "This is android 10"); // Start the

Can a third-party accessibility service capture audio on Android 10?

时光总嘲笑我的痴心妄想 提交于 2020-01-25 06:58:04
问题 I want to build an accessibility service that can capture audio even when other applications are using the microphone (video camera, phone, voice recorder, Shazam, etc). Android 10 introduced audio sharing, but it's not clear whether third-party accessibility services can capture audio from other apps. https://developer.android.com/guide/topics/media/sharing-audio-input For the purpose of capturing audio, Android distinguishes two kinds of apps: "Ordinary" apps are installed by the user.

Wifi Network Request Api connection issue in android 10 (Q)

戏子无情 提交于 2020-01-25 06:50:35
问题 i am trying to add network using android Wifi Network Request Api every thing is going fine its showing dialog for connect to my given network and click on connect callback onAvailable() method also called but it waits for some time and then after its switch back to last connected network which having internet App video Link 来源: https://stackoverflow.com/questions/58534668/wifi-network-request-api-connection-issue-in-android-10-q

Wifi Network Request Api connection issue in android 10 (Q)

房东的猫 提交于 2020-01-25 06:50:07
问题 i am trying to add network using android Wifi Network Request Api every thing is going fine its showing dialog for connect to my given network and click on connect callback onAvailable() method also called but it waits for some time and then after its switch back to last connected network which having internet App video Link 来源: https://stackoverflow.com/questions/58534668/wifi-network-request-api-connection-issue-in-android-10-q

Android 10 MediaStore API changes

孤街浪徒 提交于 2020-01-24 16:24:31
问题 Uri uri = MediaStore.Audio.Artists.Albums.getContentUri("external", artistId); String[] projection = new String[] {BaseColumns._ID}; Cursor cursor = mContext.getApplicationContext().getContentResolver().query (uri, projection, null, null, null); Prior to Android 10, BaseColumns._ID was returning album_id and now in 10, it returns some random Id. When I passed projection as null and retrieved all column names below are the column name that I get. This is in Android 10. [numsongs, artist,

Crash on calligraphy library by chris Jenx for Android Q

≡放荡痞女 提交于 2020-01-14 09:10:32
问题 I have a calligraphy library I am using for custom fonts which seems to work on all versions except for android Q , where it crashes my app right on launch.Any one else has had to deal with the same issue lately? Here's my crash report : Caused by: android.view.InflateException: Binary XML file line #17 in com.myapp.dev:layout/abc_screen_simple: Binary XML file line #17 in com.myapp.dev:layout/abc_screen_simple: Error inflating class android.support.v7.widget.FitWindowsLinearLayout Caused by:

How to save image to camera folder in Android Q?

百般思念 提交于 2020-01-12 05:29:08
问题 I need to save an image to camera folder, but as Android Q getExternalStoragePublicDirectory is deprecated, I do it in another way. What I have (this method receive bitmap and its name): if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) { ContentResolver resolver = mContext.getContentResolver(); ContentValues contentValues = new ContentValues(); contentValues.put(MediaStore.MediaColumns.DISPLAY_NAME, name); contentValues.put(MediaStore.MediaColumns.MIME_TYPE, "image/png"); contentValues.put