android-10.0

Camera intent permissions in Android 10

╄→尐↘猪︶ㄣ 提交于 2021-02-09 10:41:44
问题 I am having an unusual issue when dealing with using the camera app with an implicit intent in Android 10. I am using the Big Nerd Ranch Android Programming textbook (4th Edition) chapter 16 to learn how to take pictures and store them in an app. The book walks through the process of setting up a FileProvider, granting the camera app permission to write to a specific URI, and then launching the default camera app using an implicit intent from MediaStore. After following the instructions in

Camera intent permissions in Android 10

≯℡__Kan透↙ 提交于 2021-02-09 10:39:20
问题 I am having an unusual issue when dealing with using the camera app with an implicit intent in Android 10. I am using the Big Nerd Ranch Android Programming textbook (4th Edition) chapter 16 to learn how to take pictures and store them in an app. The book walks through the process of setting up a FileProvider, granting the camera app permission to write to a specific URI, and then launching the default camera app using an implicit intent from MediaStore. After following the instructions in

addTextChangedListener onTextChanged count Not working On android version 10

▼魔方 西西 提交于 2021-02-08 12:01:21
问题 I use addTextChangedListener to search item from server with retrofit. but only android version 10 onTextChanged count not working...? Here is my code searchEdit.addTextChangedListener(new TextWatcher() { @Override public void beforeTextChanged(CharSequence s, int start, int count, int after) { } @Override public void onTextChanged(CharSequence s, int start, int before, int count) { if (count>1) { String name = searchEdit.getText().toString().trim(); if (!name.isEmpty()) { searchItemByName

Multiple Displays option not showing on Android Emulator 29.2.0 update

故事扮演 提交于 2021-02-07 18:41:12
问题 Recently Emulator 29.2.0 Stable released. Here is the related document https://androidstudio.googleblog.com/2019/09/emulator-2920-stable.html. After the update, my Emulator is not showing the Displays option in Emulator as mentioned in the docs above. As per the document, I have created an emulator with Android 10 (Q) . Here is the screenshot. Note: Invalidate and Restart is not working. Already tried that. 回答1: I have tried with multiple system images of 29 api level and came to know that,

WorkManager not working when app killed in Android 10 although working fine till version 9 (Pie)

点点圈 提交于 2021-02-07 06:34:22
问题 I figured out this issue when I wasnt getting the notification through workmanager when the app was killed from background tasks in Android 10. It is working fine for all the android version till Andorid 9. To test this, I run the app simultaneously on both 9 and 10 versions. Is someone else also facing this issue? I searched the web but no support solution for Andorid 10 based issue. Note: As soon as the app is opened and the workmanager is triggered, I get the notification in 10 but not

WorkManager not working when app killed in Android 10 although working fine till version 9 (Pie)

白昼怎懂夜的黑 提交于 2021-02-07 06:32:36
问题 I figured out this issue when I wasnt getting the notification through workmanager when the app was killed from background tasks in Android 10. It is working fine for all the android version till Andorid 9. To test this, I run the app simultaneously on both 9 and 10 versions. Is someone else also facing this issue? I searched the web but no support solution for Andorid 10 based issue. Note: As soon as the app is opened and the workmanager is triggered, I get the notification in 10 but not

WorkManager not working when app killed in Android 10 although working fine till version 9 (Pie)

主宰稳场 提交于 2021-02-07 06:32:16
问题 I figured out this issue when I wasnt getting the notification through workmanager when the app was killed from background tasks in Android 10. It is working fine for all the android version till Andorid 9. To test this, I run the app simultaneously on both 9 and 10 versions. Is someone else also facing this issue? I searched the web but no support solution for Andorid 10 based issue. Note: As soon as the app is opened and the workmanager is triggered, I get the notification in 10 but not

FFmpeg: seeking not possible with file descriptor on Android Q

↘锁芯ラ 提交于 2021-02-06 10:44:13
问题 Given the fact that public file paths will generally not be available in Android Q with scoped storage, I am attempting to figure out how to make my FFmpeg audio decoder work with file descriptors, without copying the file to my app's private directories. We can easily get a file descriptor using the methods described in Android Q privacy changes, and it is possible to open the file descriptor using the pipe protocol as described in Passing a native fd int to FFMPEG from openable URI. However

How to get the path of a specific folder in Android Q

為{幸葍}努か 提交于 2021-02-04 19:40:27
问题 I'm trying to display all images saved on a specific folder on the gallery, in Android Q getExternalStoragePublicDirectory method is deprecated and not working, How can I get the path of a folder in Android Q ? @Override protected ArrayList<Photo> doInBackground(Void... voids) { ArrayList<Photo> photo = new ArrayList<>(); File downloadsFolder = null; if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) { // } else { downloadsFolder = Environment.getExternalStoragePublicDirectory(Environment

Android Q always reusing the first entered credentials to connect to the WiFi network

♀尐吖头ヾ 提交于 2021-02-04 07:00:48
问题 I am trying to connect to WiFi using the WifiNetworkSpecifier on Android Q. The problem which I run into is Android always using the last valid credentials to connect to the AP, even after I manually provide the new, updated credentials to the WifiNetworkSpecifier. This is the flow: Successfully connect to the AP. Change the password of the WiFi network. Run the app, try to connect again with the updated credentials (new, valid password provided) but the app can't connect to the WiFi