android-10.0

Writing files to publicly accessible documents folder in Android Q - Scoped Storage

久未见 提交于 2020-03-14 02:57:13
问题 Background After migrating to Android Q I can no longer find a suitable way to gain write access to the documents folder ( /storage/emulated/0/Documents ) And before anyone mentions the many other questions on scoped storage I've read through many of them and from what I've seen so far all of the solutions use a app specific directory or accessing a media directory only (not documents folder access). From what I understand in Android Q I can either choose: Use a app specific directory that is

Writing files to publicly accessible documents folder in Android Q - Scoped Storage

淺唱寂寞╮ 提交于 2020-03-14 02:57:03
问题 Background After migrating to Android Q I can no longer find a suitable way to gain write access to the documents folder ( /storage/emulated/0/Documents ) And before anyone mentions the many other questions on scoped storage I've read through many of them and from what I've seen so far all of the solutions use a app specific directory or accessing a media directory only (not documents folder access). From what I understand in Android Q I can either choose: Use a app specific directory that is

Android 10 Acces WideAngle Camera not working

夙愿已清 提交于 2020-03-06 09:20:28
问题 I try to acces to my device WideAngle camera on Android 10. My device : Honor 20 lite. When i do this : CameraManager cm = (CameraManager) getSystemService(CAMERA_SERVICE); String strings[] = cm.getCameraIdList(); I can get a list of my for camera : 1 front, 3 back. But Camera.getNumberOfCameras(); return only 2 cameras. How can I access of my Wideangle camera ? Thanks in advance :) 来源: https://stackoverflow.com/questions/60409090/android-10-acces-wideangle-camera-not-working

Android 10 (api 29) camera2 api regression with wide-angle camera

僤鯓⒐⒋嵵緔 提交于 2020-02-27 12:58:46
问题 I'm using camera2 api in my camera app designed specifically for Google Pixel 3 XL. This device has two front facing cameras (wide-angle and normal). Thanks to multi-camera feature, I can access both physical camera devices simultaneously, and my app has a feature to toggle between those two cameras. Up until my recent upgrade to Android 10, I could accurately see two distinct results, but now my wide-angle capture frame has pretty much the same FOV (Field of View) as the normal camera one.

Android 10 (api 29) camera2 api regression with wide-angle camera

若如初见. 提交于 2020-02-27 12:58:39
问题 I'm using camera2 api in my camera app designed specifically for Google Pixel 3 XL. This device has two front facing cameras (wide-angle and normal). Thanks to multi-camera feature, I can access both physical camera devices simultaneously, and my app has a feature to toggle between those two cameras. Up until my recent upgrade to Android 10, I could accurately see two distinct results, but now my wide-angle capture frame has pretty much the same FOV (Field of View) as the normal camera one.

Call recorder not working in android 10 (Q)

喜夏-厌秋 提交于 2020-02-25 04:13:33
问题 Call recorder is recording blank for the duration in Android 10 (Pixel 3A). It was working fine for all phones till Android 8 and in Android 9 most phones were recording only one side voice (however it was working fine in pixel 3A) Is there any way to record calls in Android 10? The below code doesn't seem to be working anymore. int audioSource = MediaRecorder.AudioSource.VOICE_CALL; mediaRecorder.setAudioSource(audioSource); mediaRecorder.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4);

Call recorder not working in android 10 (Q)

本小妞迷上赌 提交于 2020-02-25 04:12:09
问题 Call recorder is recording blank for the duration in Android 10 (Pixel 3A). It was working fine for all phones till Android 8 and in Android 9 most phones were recording only one side voice (however it was working fine in pixel 3A) Is there any way to record calls in Android 10? The below code doesn't seem to be working anymore. int audioSource = MediaRecorder.AudioSource.VOICE_CALL; mediaRecorder.setAudioSource(audioSource); mediaRecorder.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4);

locationListener doesn't work after 30 seconds on foreground service

泪湿孤枕 提交于 2020-02-22 06:30:27
问题 I have created a service which finds and then stores the user's coordinates in an SQLite database. public class GPS_Service extends Service { DatabaseHelper myDb; private LocationListener locationListener; private LocationManager locationManager; private String latitude, longitude; @Override public void onCreate() { super.onCreate(); myDb = new DatabaseHelper(this); } @SuppressLint("MissingPermission") @Override public int onStartCommand(Intent intent, int flags, int startId) { Intent

WebView targeting 29 not showing content

纵然是瞬间 提交于 2020-02-02 14:46:32
问题 I have an app with this up-to-date declaration: compileSdkVersion 29 buildToolsVersion '29.0.2' useLibrary 'org.apache.http.legacy' defaultConfig { minSdkVersion 19 targetSdkVersion 29 ... And also I have few WebView s in app - full sized Activity , Fragment version and also an ad which is fixed size (lets say 300x300dp, centered horizontally) View placed on list with native widgets. This last one is not loading anymore after target update (only this one, all other are working), but when I

WebView targeting 29 not showing content

空扰寡人 提交于 2020-02-02 14:46:15
问题 I have an app with this up-to-date declaration: compileSdkVersion 29 buildToolsVersion '29.0.2' useLibrary 'org.apache.http.legacy' defaultConfig { minSdkVersion 19 targetSdkVersion 29 ... And also I have few WebView s in app - full sized Activity , Fragment version and also an ad which is fixed size (lets say 300x300dp, centered horizontally) View placed on list with native widgets. This last one is not loading anymore after target update (only this one, all other are working), but when I