android-pendingintent Questions

1

Starting from android 12 , starting activity from BroadcastReceiver and services is not possible anymore, according to the documentation this is called Notification trampoline restrictions and now ...

12

App crashes at runtime with the following error : java.lang.IllegalArgumentException: maa.abc: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified ...

4

Solved

I have written a code in my GCMIntentservice that sends push notifications to many users. I use the NotificationManager that will call DescriptionActivity class when the notification is clicked. I ...

23

Solved

As soon as I updated the target SDK to 30+ (Android R or later), a lint warning Missing PendingIntent mutability flag appeared on my PendingIntent.FLAG_UPDATE_CURRENT flag when I want to define Pen...
Hosanna asked 11/4, 2021 at 13:34

7

Solved

Hi I have a been able to get a notification displayed for my activity, and when the user clicks the notification the app restarts. However I just want it to reappear not restart. eg. it is a web ...

2

Solved

So this is my BroadcastReceiver public class IncomingSMSListener extends BroadcastReceiver { private static final String SMS_EXTRA_NAME = "pdus"; @Override public void onReceive(Context context, ...
Witte asked 15/8, 2011 at 2:58

1

Solved

Our application has been receiving this new kind of crash since the beginning of the year. Firebase shows it repeats only on Xiaomi with Android 11. It repeats in different parts of the application...
Cyrano asked 25/2, 2022 at 13:49

7

I am using 'org.eclipse.paho:org.eclipse.paho.client.mqttv3:1.2.5' for mqtt service and the app keeps crashing on android 12 devices with the following crash logs java.lang.IllegalArgumentException...
Haughay asked 17/2, 2022 at 9:8

3

Solved

I'm trying to use ActivityRecognition. However I get an error when i'm trying to get a transition update for DetectedActivity.TILTING or DetectedActivity.UNKNOWN. For all the other activity types I...

3

Please help me to sort out the problem. I give a link to the git. https://github.com/Vasajj/radio_tysa_fm.git something is wrong with PendingIntent, with package: On android 8 all is fine Installin...
Micheal asked 25/2, 2022 at 23:47

2

I've used the Android tutorial with Geofences which, obviously, doesn't work when app is closed. So, after searching around, I've noticed user b-ryce on SO used BroadcastReceiver so geofences get t...

4

Solved

I am using an Activitiy with various Tabs on it. From a different part of the application, Notifications are created to tell the user that something has changed. I now managed to Call the Activity,...
Damalis asked 2/1, 2013 at 12:31

4

Solved

I´ve started testing my app for issues on Android 12, and have had some warnings regarding mutability flags on pending intents that are set up for a home screen widget. These mutability flags are n...

3

Solved

Background Starting with Honeycomb (API 11) , Android has a feature to allow the broadcastReceiver run in an async way, providing it about 10 seconds before it assumes it can kill its process, usi...

8

Solved

I am trying to send information from notification to invoked activity, while from my activity I got null. The code for notification is: private void showNotification() { Intent resultIntent = new...

3

Solved

I there a way to get a list of the active PendingIntents in a device? I am starting to work with AlarmManager and I like to see if my PendingIntents are created and removed correctly. It would also...
Mellow asked 29/6, 2011 at 15:0

2

Solved

When I pass extras to a PendingIntent, the message is never received by the sendBroadcastReceiver, because the onReceive() method of this BroadcastReceiver is never called. Why is this happening? ...
Sparker asked 28/1, 2013 at 21:28

3

Solved

I'm trying to send via PendingIntent some extra data, like: MyMessage message; //... Intent intent; SmsManager sms = SmsManager.getDefault(); intent = new Intent(Constants.SENT_PLAIN); intent.putE...

7

Solved

i am creating a notification inside a BroadcastReceiver via this code: String ns = Context.NOTIFICATION_SERVICE; NotificationManager mNotificationManager = (NotificationManager) context.getSystem...

2

Solved

I'm trying to make a simple widget with a button that start a Service with the OnClickPendingIntent(). I can start it fine but I can't figure out a way to stop it (I know I can do it with a Broadca...
Patience asked 13/12, 2013 at 17:14

2

Solved

I would like to send a LocalBroadcast when clicking on a button inside a notification. I know how to do that with a regular broadcast, but I would like to keep the broadcast inside my app. Is this ...
Jobina asked 15/3, 2014 at 0:10

3

Solved

I am facing an issue with firebase cloud messaging notifications for Android 12. I previously faced Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specif...

1

I have this code to make the actions: Intent playIntent = new Intent(Intent.ACTION_VIEW); playIntent.setDataAndType(uri, path.contains(".jpg") ? "image/jpeg" : "video/mp4&q...
Cranial asked 21/7, 2016 at 1:3

3

I have some trouble with PendingIntents. Every time my app is opened it will schedule some broadcasts. My Problem is that already existing PendingIntents aren't recognized. I know that the Pending...

1

Solved

I want to re-start my app through Pending intent. Below code is not working. val intent = Intent(this, Activity::class.java).apply { flags = Intent.FLAG_ACTIVITY_CLEAR_TOP } val pendingIntentId = ...
Phila asked 25/11, 2022 at 11:5

© 2022 - 2024 — McMap. All rights reserved.