Questions tagged android-10.0

Explore the latest questions and answers asked by our top developers.

Saving TTS audio files to shared storage in android 10

I want to save my audio file to shared storage in android 10 which is created using : textToSpeech.synthesizeToFile(text,params,file,"utterance_id"); file is of ParcelFileDescriptor type which is created using createFile() method: public void createFile() { ContentValues values = new ContentValues(4); values.put(MediaStore.Audio.Media.TITLE, "Audioasas"); values.put(MediaStore.Audio.Media.DATE_ADDED, (int) (System.currentTimeMillis() / 1000)); values.put(MediaStore.Audio.Media.MIME_TYPE, "audio/mp3"); values.put(MediaStore.Audio.Media.RELATIVE_PATH, "Music/Recordings/"); audiouri = getContentResolver().insert(MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, values); try […]

By Kartik Thakur
Categorized as android, android-10.0, android-studio, java, text-to-speech

Android 11 Multiple Images with limit

Intent intent = new Intent(Intent.ACTION_OPEN_DOCUMENT); intent.addCategory(Intent.CATEGORY_OPENABLE); intent.putExtra(Intent.EXTRA_ALLOW_MULTIPLE, true); intent.setType("image/*"); startActivityForResult(intent, Image_REQUEST_CODE); I use this to select multiple images but not getting any limit option. Source: Android Questions

By Muhammad Saad
Categorized as android, android-10.0, android-11, image

Firebase Push Notification not showing on Android 10

I have implemented the FCM push notification in my and I am receiving the push notifications on my Android device which is running on Android 9 but I am not getting push notification on my Android 10 device. I am even not getting callback inside onMessageReceived() in Android 10 device. val notificationManager = getSystemService(NOTIFICATION_SERVICE) as […]

How to modify files in scoped storage that my app doesn’t own

Hi guys i have a problem with modifying audio file tags, i’m using jAudioTagger which uses java File api to access files. I tried getting user’s write permission via MediaStore#createWriteRequest and also by opening document tree and getting access to the folder before trying to modify audio file, but none of them worked. I also […]

Android Scope storage – Download Images and store in Downloads directory

I updated my project to target sdk 31 from 28. I am downloading images from a url into a folder Download/MyMainFolder/folder1/folder2/iamge1.png. The path I was setting in downloadmanager setDestinationInExternalPublicDir(Environment.DIRECTORY_DOWNLOADS,/MyMainFolder/folder1/folder2/iamge1.png ) Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS).absolutePath + "/MyMainFolder/folder1/folder2/iamge1.png" I created a method savePhotoToExternalStorage: private fun savePhotoToExternalStorage(displayName: String, path:String) { //here path is = //Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS).absolute//Path + "/MyMainFolder/folder1/folder2/iamge1.png" val imageCollection = if […]

By faizan
Categorized as android, android-10.0, android-11, scoped-storage, storage

Different behaviour on returning from startActivityForResult() among Android 10 and 11

I have a strange behaviour when I run my app in Android 11 and 10. I have an activity containing a searchview, a spinner and a recycler view to filter and show a list of persons, and a fragment that displays the details of the selected one. In the onCreate() method of the activity I […]

By Lubron
Categorized as android, android-10.0, fragment, java, startactivityforresult

Android Calendar – Deleted Events Not Deleted or Even Flagged

So I encountered an issue on an Android 10 phone where deleted events are still present when I query the user’s calendar. The problem persisted across several hours (3 at the time of writing this) I’ve looked through the following posts already in an attempt to find solutions, but none of them seemed to have […]

By Aaron Trudeau
Categorized as android, android-10.0, android-calendar, java

Someone accessed my phone application in Android 10 and dialed some codes to do some transactions while i was using tor browser

So i was accessing some sites on tor browser. I got the urls from some site and was hitting them one by one just to explore. suddenly pages stopped responding but internet was working fine. then after a minute or two i get a popup from my phone application asking to enter pin to complete […]

By Atlas Bravoos
Categorized as android, android-10.0, malware, security

Android 10 Custom ROM : Unified camera

I have built a custom Android 10 ROM for my phablet which has only one camera. I would like to unify the camera on my ROM so that applications which request the front camera (Zoom, Teams, Skype) cannot crash the system and only open the main/rear camera (only camera). //Successful launch of main camera (only […]

By VQI Imaging
Categorized as android, android-10.0, camera, rom, unify

Android 10 Impossible to delete multiple files (Scoped Storage)

I have been reading the android documentation and I can’t find a solution to delete multiple files without multiple dialogs in Android 10 (API Level 29) I found the following in the Android documentation: API Level < 29: Delete files without dialog, permission granted on app startup API Level > 29: Delete files by showing […]

By Rehcan
Categorized as android, android-10.0, kotlin, scoped-storage
1 2 3 38

Still Have Questions?

Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us