169 questions
56
votes
7
answers
76k
views
Foreground Service crashing on Android 14
I have an Android application that worked fine until Android 13. After upgrading to Android 14 (Setting targetSdkVersion as 34) my application is Crashing on Android 14. Here's my crash log.
java.lang....
45
votes
3
answers
18k
views
Android 14 context registered broadcast receivers not working
I'm experimenting with my app on an Android 14 device, where I'm sending a local broadcast and then subscribing to it within the app. However, when I utilize the RECEIVER_NOT_EXPORTED option, the ...
34
votes
5
answers
16k
views
foregroundServiceType 0x00000001 is not a subset of foregroundServiceType attribute 0x00000000 in service element of manifest file
I have implemented Foreground Service using WorkManager, it works fine upto API Level 33. Since it is mandatory in API Level 34 to specify foregroundServiceType, I specified it in Worker and in the ...
20
votes
4
answers
22k
views
Problems encountered when developing apps with Android 14
I found that after my app reached a fair size (e.g. by adding multiple libraries), running the app threw java.lang.SecurityException: writable dex file '.../code_cache/.overlay/base.apk/classes2.dex' ...
19
votes
2
answers
10k
views
Android 14 - Foreground service type for FirebaseMessagingService
When targeting android 14, we should provide at least one foregroundServiceType for each service in manifest - https://developer.android.com/about/versions/14/behavior-changes-14#fgs-types
Which ...
18
votes
3
answers
13k
views
In-app-update apps crash in android 14 due to "RECEIVER_EXPORTED or RECEIVER_NOT_EXPORTED" error in system-broadcasts
I have an android app which uses in-app-updates. After targeting android 14 (API 34) the app will not start due to this error:
FATAL EXCEPTION: main
Process: no.norva24.mslam, PID: 8281
java.lang....
15
votes
0
answers
4k
views
Reusing media projection Intent on Android 14
I have an Android screen recording app. In my app the user can start a screen recording directly in the app, as well as via a button in a notification (bound to a foreground service).
To start a ...
12
votes
5
answers
12k
views
HTML input type="file" not working to pull up camera for Pixel / android 14 combination
I posted this in the react-native-webview discussion thread in GitHub in case this is something they need to add support for, but wanted to see if anyone had any thoughts here:
Disclaimer: I'm a web ...
11
votes
3
answers
5k
views
registerReceiver error hint " Must be one or more of type"
using
ContextCompat.registerReceiver(this, mIntentReceiver, filter, ContextCompat.RECEIVER_EXPORTED);
or
registerReceiver(mIntentReceiver, filter, Context.RECEIVER_EXPORTED);
it hints "Must be ...
10
votes
2
answers
17k
views
This app isn't compatible with the latest version of android. in android 14
my application shows the below warning after installing it on a phone for the first time, only in Android 14:
This app isn't compatible with the latest version of Android.
check for an update or ...
9
votes
3
answers
7k
views
Android 14 Photo Picker Camera Tile Removed From Google Chrome
Attempting to upload photos on a website using chrome on Android 14. There is no longer an option to use camera to take photo and upload. Only option is to choose photo from album. This issue only ...
6
votes
1
answer
2k
views
What is the potential issue with ProGuard and ClassValue on Android 14?
In the documentation for behaviour changes when targeting Android 14, there is an issue mentioned related to ProGuard and ClassValue:
ProGuard issues: In some cases, the addition of the java.lang....
6
votes
1
answer
4k
views
Service.startForeground() not allowed due to mAllowStartForeground false, Android 14
I have an app that uses a sticky foreground service to do some Bluetooth operations, it was working well untill android 14 release.
I got this trace from Firebase although I am not able to reproduce.
...
6
votes
2
answers
518
views
Android14 with Samsung Fold Device. UnsupportedOperationException: Tried to obtain display from a Context not associated with one
I'm getting UnsupportedOperationException crash on live app. All the crashes are associated with Samsung Fold Android 14 devices. But still no clue how to reproduce or fix this. Any help would be ...
6
votes
3
answers
981
views
App now crashes on Pixel devices running Android 14 in TimePickerDialog
My app has suddenly started crashing using the TimePickerDialog API. This is only happening on Google Pixel 6, 7, and 8's running Android 14. I see there was a security update March 4, 2024 and the ...
6
votes
0
answers
8k
views
Android 14 - partial access to photos - how to show only "Allow all" option
My app downloads pictures and saves them in Download/MyAppName folder. There is an Activity in the app that will scan the folder and get all the photos saved in there and show them in a RecyclerView. ...
6
votes
1
answer
968
views
Start a Foreground Service From a Quick Tile on Android (targetSdkVersion 34 and higher)
I am the developer of a simple Android app that records location movements on behalf of the user. One can start the recording from the main Activity as well as from a Quick Tile. The recording takes ...
5
votes
3
answers
6k
views
Photo Picker with READ_MEDIA_VISUAL_USER_SELECTED permission on Android 14 still shows all media content
In the Android 14 release, there is a new permission:
READ_MEDIA_VISUAL_USER_SELECTED: The READ_MEDIA_VISUAL_USER_SELECTED permission is granted, providing partial and temporary access to the user's ...
5
votes
0
answers
547
views
Android 14 Samsung Phones Activity Transition Animations Works Awkward
When the android application is updated on Android 14 Samsung mobile phones, custom activity animations are broken and the problem continues until you restart the phone. I am also experiencing this ...
4
votes
1
answer
2k
views
Starting FGS with type none callerApp=ProcessRecord{c23a512 15473:mypackage/u0a350} targetSDK=34 has been prohibited
I'm getting this exception when scheduling a work manager task.
android.app.InvalidForegroundServiceTypeException: Starting FGS with type none callerApp=ProcessRecord{c23a512 15473:mypackage/u0a350} ...
4
votes
4
answers
3k
views
Facing issue on changing App Language in Android 13 & 14
I set my android app local via
fun setSystemLocale(context: Context): Context {
val locale = getCurrentLanguage().locale
Locale.setDefault(locale)
val configuration = ...
4
votes
0
answers
443
views
How can I control bedtime mode from my android app?
I want to programmatically enable or disable the Bedtime Mode from my app. The action must be able to run while the device is in standby mode. Possible options for me are:
manipulate system settings ...
3
votes
3
answers
6k
views
Chrome on Android 14 does not show the option to open the camera when uploading an image
We have an Angular 13 app and we are using <input type="file" accept="image/*"> to upload an image. Up to Android 13, Chrome showed two options:
Open the camera to take a ...
3
votes
1
answer
2k
views
Does the Settings page for ACTION_MANAGE_APP_USE_FULL_SCREEN_INTENT work? Android 14
I am trying to conform to the new Android 14 behavioural changes, specifically the changes regarding
secure full-screen intent's
The documentation is quite specific, still I am having quite some ...
3
votes
1
answer
1k
views
Android 14 dialog gray scrim disappears
I recently tried the Android 14 emulator (API Level 34) and verified how dialogs look like on the new OS.
At first sight I noted that the dialog's scrim (used to be dark transparent gray) disappeared.
...
3
votes
2
answers
1k
views
Slow intent broadcast delivery on Android 14
I have 2 services in my app that sometimes communicate with each other via broadcast intents. The time between an intent being sent and getting delivered on Android 13 is 1-2ms (tested on a Pixel 4XL)....
3
votes
1
answer
4k
views
Accessibilty service in Android 14 (out of Google Play)
Allow accessibility service for APK that is out of Google Play:
In Android 13 Google added "restricted settings" where the user can check and then he can allow accessibility service. See ...
3
votes
0
answers
302
views
SecurityException: The number of child package elements exceeded the max allowed in queries
On android 14 I get an error when adding more than 1000 elements inside a element in AndroidManifest.
Caused by: java.lang.SecurityException: The number of child package elements
exceeded the max ...
3
votes
0
answers
1k
views
Android 14 launching apps from foreground service
Before I upgraded to target SDK 34 (Android 14 Upsidedown cake) my app was able to launch an external app from my foreground service using this code:
Intent LaunchApp = getPackageManager()....
3
votes
0
answers
398
views
"Package installer keeps stopping" Error on android 14 when installing my .apk
My android kotlin app install and runs fine on android versions upto 13. But in android 14 i get the error "Package installer keeps stopping" while installing the app. Below are error ...
3
votes
0
answers
3k
views
Android error: Cannot resolve method 'registerReceiver' in 'ContextCompat'
BACKGROUND
Migrating Android Java project from Android SDK-13 to Android SDK level 14. I need to register some Broadcast related Flags.
According to several online documentation, I should use '...
3
votes
0
answers
699
views
Full screen notification for Android14. Push notification skips, but I want the intent to open automatical without having to click on the notification
The push notification jumps correctly, I have followed the steps in the Android 14 documentation to create full screen intents but only the notification is created and it is necessary to click on it ...
3
votes
0
answers
7k
views
Migrating Android App from SDK 33 to SDK 34( Android 13 to Android 14)
Problem Description:
I'm currently working on migrating an Android app from SDK 33 to SDK 34 (Android 13 to Android 14).
During the migration process, I encountered warnings in the manifest files of ...
3
votes
0
answers
2k
views
Additional restrictions on starting activities from the background with MODE_BACKGROUND_ACTIVITY_START_ALLOWED
In the decument
https://developer.android.com/about/versions/14/behavior-changes-14#background-activity-restrictions
you can see that.
For apps targeting Android 14, the system further restricts when ...
2
votes
2
answers
5k
views
Android 14 API 34. No Activity found to handle Intent
I had a working code. It is working fine till Android 13 but from Android 14 it is not working.
Problem:
application needs to start a new activity-for-result. On launching new Activity, code is ...
2
votes
1
answer
8k
views
Does READ_MEDIA_VISUAL_USER_SELECTED permission is added automatically to the app manifest when requesting READ_MEDIA_IMAGES permission on android 14?
On Android 14 there is a new storage access permission,
according to the doc:
https://developer.android.com/reference/android/Manifest.permission#READ_MEDIA_VISUAL_USER_SELECTED
This permission will ...
2
votes
1
answer
913
views
What is the system broadcast exception to the Android 14 rule on receivers specifying export behaviour?
According to the documentation on Android 14 behaviour changes, context-registered receivers should use a flag to indicate whether or not the receiver should be exported. However there is an exception ...
2
votes
1
answer
634
views
Regarding the SIGBUS issue of Camera2 API in Android OS 14
I'm having issues with Camera2API's SIGBUS in debug mode on Android OS 14.
Has anyone experienced the same problem or knows how to resolve it?
I did the following to check the event:
This occurs when ...
2
votes
1
answer
87
views
Microsoft Excel changed file's visibility-in-code after saving in Android 14
I find once Microsoft Excel edit an excel file and saved, my app can no longer access that xlsx file by ContentResolver on Android 14.
I am creating a .Net8 MAUI project targeting Android.
I set ...
2
votes
1
answer
2k
views
Android 14 - ACCESS_FINE_LOCATION never asked nor granted
my Manifest.xml:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<uses-feature android:...
2
votes
1
answer
1k
views
Android 14 flag mutable
I'm working to support android 14 in a certain app, i'm having one issue with android native share sheet, since we have a pending intent with FLAG_MUTABLE, i'm getting this error
2023-10-16 14:23:20....
2
votes
2
answers
1k
views
Android 14 predictive back gesture - blinking white background color
According to the docs, we simply should update 'androidx.activity:activity' version in the build.gradle and add android:enableOnBackInvokedCallback="true" to the Manifest to make predictive ...
2
votes
0
answers
201
views
Can application record itself using Media Projection single app option (Android 14)?
I'm trying to record the screen of the application which starts recording using Media Projection, with "A single app" option, introduced in Android 14. In the second part of ...
2
votes
0
answers
457
views
Exception in HostFunction: java.lang.UnsatisfiedLinkError: dlopen failed: library "libhermes.so" not found
I was trying to upgrade my react-native project to android 14, but during run time, I am getting runtime error. Error: Exception in HostFunction: java.lang.UnsatisfiedLinkError: dlopen failed: library ...
2
votes
0
answers
370
views
Full-screen notification permission revoked when granting/denying other permissions in Android 14
I'm developing an Android app that requires the FULL_SCREEN_NOTIFICATION permission to display full-screen alarm notifications. In Android 14, this permission has become a runtime permission, so I've ...
2
votes
0
answers
302
views
Android14 - Flutter App: Issue with eSIM Download Functionality
I'm encountering an issue with my Flutter app's functionality (only for Android 14) related to downloading eSIMs directly from my application. The flow of the process involves a button within the app ...
2
votes
0
answers
106
views
ExpandableListView Crash after Android 14 update
Component: android.widget.ExpandableListView
Method: onInitializeAccessibilityNodeInfoForItem
Error: NullPointerException in getUnflattenedPos on ExpandableListConnector (null object reference)
Stack ...
2
votes
0
answers
2k
views
Users crashing because of Service.startForeground() not allowed due to mAllowStartForeground false only on Anddroid 14
I just released an update targeting API 34 and suddenly I'm getting this exception and it is happening 100% only on Android 14 devices.
Caused by android.app.ForegroundServiceStartNotAllowedException: ...
2
votes
0
answers
429
views
Unknown apps can't be installed
Problem Statement:
When attempting to install an application via APK on Android 14 Pixel 7A, encountering the error "Unknown apps can't be installed by this user."
Attempted Solutions:
...
2
votes
0
answers
549
views
Firebase OTP Verification Fails on Android 14 with FirebaseAuthException
I'm encountering an issue with SMS verification in our app using Firebase OTP. After sending the OTP, we receive an error, but this issue only appears on devices running Android 14. The app works fine ...