Questions tagged [android-12]

For questions regarding programming in Android 12 (a.k.a., Android S), the primary 2021 version update for the Android OS.

563 questions
0
votes
1 answer

How to solve Android 12 cannot use MqttAndroidClient

In my Android Studio, I would like to connect the Mqtt Android client to my laptop host (in the same machine). I make it similar to this guide https://www.hivemq.com/blog/mqtt-client-library-enyclopedia-paho-android-service/ Then, I found that the…
gtltc
  • 15
  • 4
0
votes
3 answers

Store files in android app (targeting API 31 and above) which is retained even after the app is uninstalled

The question is specifically for apps targeting API 31 and above. I have referred to a lot of similar StackOverflow questions, Official Docs, etc. There are some limitations to API 31 as mentioned here - Docs. Usecase To write a JSON file to the…
Abhimanyu
  • 11,351
  • 7
  • 51
  • 121
0
votes
2 answers

AR-vos - Unity based app does not start on Android-12 when built with Unity 2018

Ar-vos (https://ar-vos.com), my Unity - ARCore - based app does not start on Android-12 anymore after solving the android:exported="true" issue. In particular I want it to work with a version of Unity 2018, I tried with all versions up to U…
0
votes
1 answer

How to implement New Media Storage API to store file in Android 11 and 12?

i am trying to store the video on Device Storage and showing video in app but android version like 10,11 and 12 it is showing error that not able to create folder in phone. My Error java.io.IOException: Operation not permitted at…
Dinesh2510
  • 101
  • 1
  • 5
0
votes
2 answers

Need example android Bluetooth permission code

I need an example java code of Bluetooth permissions. Android 12. I know that I have to put this in the AndroidManifest.xml From my research I think I have to use these tools to get my…
0
votes
1 answer

Can't open video on android 12 that was captured by MediaStore.ACTION_VIDEO_CAPTURE

Intent(MediaStore.ACTION_VIDEO_CAPTURE).also { takeVideoIntent -> takeVideoIntent.resolveActivity(packageManager)?.also { startActivityForResult(takeVideoIntent, REQUEST_TAKE_VIDEO) } } override fun…
Lev T.
  • 31
  • 3
0
votes
0 answers

Where are /system/build.prop and /vendor/build.prop stored on the ADB shell side on Lineage 19.x GSI’s?

I’m running an ADB shell on my main device, whose ROM was dead due to forgetting to append emulator after ro.build.characteristics=tablet , when appended this line becomes ro.build.characteristics=tablet,emulator , on both files in the…
HD Scania
  • 1
  • 2
0
votes
1 answer

How can we use video with splash screen API Android 12?

I want to use video on splash screen with using splash screen API android 12, How Can I use video as a theme?
kamaal4
  • 43
  • 7
0
votes
2 answers

Is there any method to identify which location permission is granted by user

Is there any method to identify which location permission is granted by user in programmatically in Android. like the following While using the app Only this time Deny I want to know a particular applications current location permission status…
jerald jacob
  • 613
  • 1
  • 4
  • 18
0
votes
1 answer

Uploading App bundle in play store failed

You uploaded an APK or Android App Bundle which has an activity, activity alias, service or broadcast receiver with intent filter, but without 'android:exported' property set. This file can't be installed on Android 12 or higher. See:…
0
votes
1 answer

App crash when It makes API call using Retrofit on Android 12 API 32

Can anybody help me please. I already have added FLAG_IMMUTABLE flag to all pending intents for supporting Android 12, but when try to call any API using retrofit on app start, app thorws below exception and crash. Http Log I/okhttp.OkHttpClient:…
asissuthar
  • 2,078
  • 1
  • 15
  • 29
0
votes
0 answers

Activity has been destroyed after pressed home button in Android 12

I have two Activities, A is default launchMode, A start B, launchMode of B is singleInstance, then press home button , onDestroy method of A has been called, why? my device is Pixel 3XL, android version is 12
Guu
  • 129
  • 2
  • 8
0
votes
1 answer

Android-12 - BLE only returns status 0 in onConnectionStateChange Callback

I am facing one issue related to BLE’s behavior in our application. In Android 11 and below, On Ble disconnection, we used to get different status codes in onConnectionStateChange callback like status 8 is for out range, 19 is peripheral…
0
votes
1 answer

How to match status bar and navigation bar colors to action bar and bottom navigation menu?

I'm attempting to match the status bar and navigation bar color to the action bar and bottom navigation menu. When I set the color to "colorOnPrimary" to match the action bar, the colors come out darker than expected. Changing Status bar and…
0
votes
0 answers

My splash screen on my app is now a dark screen after upgrading to android 12

Splash screen is black after upgrading my phone to android 12. The app is written in Xamarin. Not sure what to do to fix this. I am using a splash_screen.xml is there a better way?
Micah Armantrout
  • 6,781
  • 4
  • 40
  • 66