Questions tagged [android-14]

21 questions
3
votes
0 answers

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' is not allowed. If I then remove most of the…
Wei Wen
  • 133
  • 1
  • 9
3
votes
1 answer

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.RuntimeException: Unable to start…
Roar Grønmo
  • 2,926
  • 2
  • 24
  • 37
2
votes
1 answer

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.ClassValue class causes an issue if you try to…
Adam Burley
  • 5,551
  • 4
  • 51
  • 72
1
vote
1 answer

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 foregroundServiceType should be used for…
Martin.M
  • 191
  • 2
  • 11
1
vote
2 answers

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 Manifest but getting this…
Saif
  • 11
  • 2
1
vote
2 answers

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 one or more of:…
moonlus
  • 31
  • 4
1
vote
0 answers

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. See for instance here (on the left Android 14…
1
vote
1 answer

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 here: https://support.google.com/android/answer/12623953 In…
zvi
  • 3,677
  • 2
  • 30
  • 48
0
votes
0 answers

Dose android apps run slower on android-14 when select a low sdk version code during build?

I created two simple demo prj in Android Studio. I set one target SDK to 34 and the other one to 30. They executed the same code just to inflate a simple layout. But I found that the app in SDK 34 runs much faster(only took 1/10 inflating time) than…
0
votes
0 answers

Why Android U(android 14) inflating layout/views took more time than Android T(android 13)?

We found that it took more time for inflating layouts/views on Android Uthan Android T in our devices. So I make an experiment with pixel Phone. Firstly, I developed a demo app which just do inflate an specified layout. It included…
0
votes
1 answer

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.RuntimeException: Unable to start service…
Ajith M A
  • 3,838
  • 3
  • 32
  • 55
0
votes
1 answer

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 broadcast is not being received at all. Below is the…
0
votes
0 answers

I am unable to set ringtone using activity in android studio?

Sometimes it returns that unsupported mimetype and sometimes it returns invalid token try to set ringtone in my app. But I am unable to do so by all mean I tried. I checked others code but I am not make it possible for me from others code. even all…
0
votes
0 answers

How to set ringtone in Android from my activity on upcoming Android 14 (UPSIDE_DOWN_CAKE API 34)?

I'm trying to find a way to set a new default ringtone by code from my Android activity. It works well on Android 13 but on Android 14+ on Android Studio Emulator (for example Nexus 6P API 34) the app crashes. My code is below: interface Tone{ …
0
votes
0 answers

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 recording I retrieve the intent for creating media…
jhain
  • 1
  • 1
1
2