1,894 questions
0
votes
0
answers
30
views
Which thing was tapped?
If I use the launch tag in a WFF watch face, it always only launches the main activity of the app, no matter what I specify as the target of the launch tag. That would be OK if I could tell which ...
0
votes
1
answer
57
views
Android: Why is onNewIntent() not called from Notification click while using singelInstance launchMode
I have an Android app where I want to show a notification when the app is running in the background.
The associated Activity is declared in the manifest with:
<activity
android:name="....
1
vote
2
answers
130
views
How to make notification PendingIntent target existing Activity instead of starting a new one
I'm using this answer (How to navigate to a fragment from Notification? Android Kotlin) to create a PendingIntent for navigating to a fragment when a notification is tapped (I'm actually using Java ...
0
votes
0
answers
52
views
Having issues with implementing Google Drive sign-in with AndroidX‑Credentials/Identity - Simple android notes app
Im at my wits end with implementing the syncing functionality to my simple notes app for android that I created using kotlin and jetpack compose.
So Im a total beginner on coding and have ...
1
vote
1
answer
333
views
Android 14 BAL Hardening Warning for PendingIntent in Wear OS (Target SDK 34+)
I’m developing a standalone timer app for Wear OS with targetSdk 35. The app has an ongoingActivity notification and a watch face complication. When the user taps the notification or the complication, ...
1
vote
1
answer
56
views
ClipboardManager.OnPrimaryClipChangedListener not called after copying text from share intent on some devices
I am working on an Android app where I use a sharing intent to share text. If the user copies the text instead of sharing it through an app, I want to detect when the clipboard content changes using ...
1
vote
1
answer
331
views
Requirement of using PendingIntent.FLAG_IMMUTABLE when requesting USB Permission
I'm trying to give permissions to an connected USB Device using PendingIntent. However when using PendingIntent.FLAG_MUTABLE, i get following warning:
Mutable implicit PendingIntent will throw an ...
0
votes
1
answer
42
views
Zero argument constructor Error in the Receiver Class
I am writing an app that will implement scheduled alarms which has problem in the Receiver Class.
What I want is, firstly, an alarm will be implemented in onCreate() in the MainActivity.
Then at ...
0
votes
3
answers
191
views
Firebase Cloud Message Notification Opens MainActivity Instead of Target NotificationActivity
I am trying to open NotificationActivity when a user taps on a notification created by Firebase Cloud Messaging (FCM). However, the app always launches the MainActivity instead of the desired ...
1
vote
1
answer
51
views
App crashes with NullPointerException when deleting an edited medication with PendingIntent
I’m working on an Android app that handles medication reminders with notifications and alarms. The functionality is mostly working as expected:
I can add a medication.
The notifications are triggered ...
1
vote
0
answers
60
views
pendingIntent not getting triggered
i want to add a widget to the home screen , and when i click it , the open with dialog should pop up and open the link associated with the widget ... nothing happens when i click the widget , ...
0
votes
2
answers
1k
views
java.lang.IllegalArgumentException: Targeting S+ requires FLAG_IMMUTABLE or FLAG_MUTABLE Error After Removing OneSignal Library
I'm working on an Android application and recently removed the OneSignal library. After this change, I'm encountering the following error:
java.lang.IllegalArgumentException: com.app.myapp: Targeting ...
0
votes
2
answers
52
views
How to call a method of a service from Boradcast Receiver in Android?
I have implemented a synchronous download mechanism for my download TrackDownloadService. I can not trigger the cancelDownload() method to cancel the download when I click "Cancel" from my ...
0
votes
0
answers
158
views
Pending Intent with unspecified mutability error while publishing the app to Play store with SDK 34
I was trying to publish the app with android sdk version 34,but it gave me error as Pending Intent with unspecified mutability. Can anyone help me how to resolve it ??
PendingIntent ...
0
votes
1
answer
80
views
canceling notification after clicking on notification builder action button
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 we ...