Questions tagged [android-intent]
Questions regarding practical and advanced use of Intents, Intent Extras and Pending Intents to start an Activity, Service or to respond to a system or application event/notification via a BroadcastReceiver. (refer to info for basic familiarity)
android-intent
30,941
questions
0
votes
0
answers
17
views
intent:// URI not invoking component
I was trying to craft a correct "intent://" URI for following purpose:
Component: com.myapp/.ui.SignIn
Extra String: link
scheme: myapp://
To simply put, I want to translate following ...
0
votes
1
answer
19
views
Implicit Internal Intent vulnerability showing up when Android app is pre-Launch to the Playstore
Recently i creat new app from playstore console and also upload new bundle but playstore mention security and trust issues like Implicit Internal Intent vulnerability. this issues shows following ...
0
votes
0
answers
16
views
Android Settings panel not opening from my app
I'm trying to open the settings panel from my app but it is not doing anything, the device has Android 14 it's a Samsung A24.
I have another device which is the same model, where the code works. But I'...
0
votes
0
answers
16
views
(mgks/Android-SmartWebView) Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag
I am a total newbie and I have cloned a repo (WebView app) from https://github.com/mgks/Android-SmartWebView.git. to test my website but when i try to run, it gives an error "Calling ...
-1
votes
0
answers
5
views
multi Sms App, send from spreadsheet containing phone number and custom values ,customization of message succeed but message not sent
i'm trying to send multiple sms automaticaly .Messages should be customized based on values
from a spreadsheet. i have a function that does the work. but when sending intent to call the native message ...
0
votes
0
answers
12
views
Jetpack navigation and action Intents
I work with Health Connect. And this API require include to AndroidManifet androidx.health.ACTION_SHOW_PERMISSIONS_RATIONALE. I also use Jetpack Navigation and write deeplinks for application. The ...
1
vote
1
answer
27
views
Intent.createChooser doesn't show image or file name
I'm using the code below to allow a user to share an image with another app:
val intent: Intent = Intent().apply {
type = "image/jpeg"
if (uris.size == 1) {
action = Intent....
0
votes
0
answers
27
views
How to Play Video in External Player (like MXPlayer) in React Native?
I'm new to React Native and I'm looking to play a video in an external player (such as MXPlayer) on both Android. I've searched online but haven't found a clear solution.
In Android, this can ...
0
votes
1
answer
37
views
Embedding image attachments in HTML emails from android
I'm trying to send an email from Android with HTML content and image attachments. I also want to embed the images inside the HTML body.
The following works correctly:
ArrayList<Uri> ...
0
votes
0
answers
19
views
Sharing intent with data starts Activity twice
I'm implementing receiving data from other apps with the following approach (code simplified):
@AndroidEntryPoint
abstract class SharingActivity(
protected val sharingDeepLink: Uri
): ...
0
votes
1
answer
38
views
How to manage an Android service with multiple operations?
I had recently joined a new company and have taken over a project that has been on-going for years. The unfortunate problem with this picture is that some of the code has been badly maintained and the ...
1
vote
0
answers
48
views
Open developer options programmatically on Samsung Android 14
In my Android app, I have a button that appears only when the developer menu is enabled by the user. This button uses intent to open the developer menu (Settings....
0
votes
0
answers
30
views
How to pass data Fragments Recyclerview to another Activity Recyclerview , parcelable, json , kotlin
How to display data from one Fragment's recyclerView to another activity's recyclerView using parcelable from local Json File. I want to pass data HomeFragment recyclerview to Activity RecyclerView ...
0
votes
0
answers
35
views
Sending extras with image picking intent from adapter to fragment (Android Kotlin) [duplicate]
I am trying to send position of item from adapter to fragment, with the image picker intent, and trying to receive the value in fragment activity.
But the value is not receiving in the fragment.
The ...
0
votes
0
answers
127
views
"Only once" vs "Always ask" on opening coordinates with Android app
Is there an API for opening coordinates in Android which would show the default? Something like:
Open with this app: "only once" vs "always" dialog which would show you all the ...
0
votes
0
answers
30
views
Receive sharing intent not receiving media in Flutter
I need my flutter app to receive media(image/pdf etc) from external applications. I tried using receive_sharing_intent.
From my manifest:
<!--For receiving media from external ...
0
votes
2
answers
51
views
Is there a way to open apps like whatsapp from react web app?
I have a share button on my react app,when someone clicks it, i want the share pop up to come up on the web app and share the link on any mobile app
i wanted to implement it using intent links, but ...
2
votes
1
answer
59
views
Start Intent from ViewModel
I would like to start a Foreground Service and call a LauncherForActivityResult.
As far as I know, i neither can start a Service from a ViewModel, nor call a LauncherForActivityResult.
I am working on ...
0
votes
1
answer
50
views
BroadcastReceiver onReceive not triggering with AlarmManager setExact
My application is meant to send a notification after a certain interval, but the onReceive is not being triggered in my BroadcastReceiver when I use AlarmManager. I have stripped the code back to find ...
0
votes
0
answers
69
views
Android Intent extras stripped from the intent when sent through google messages
I’m fairly new to Android, been looking at sharing data between apps using the Android intent resolver.
What I want to do is share an image from my App to the google messages app to be sent as a ...
-1
votes
1
answer
78
views
open react native app on receive push notification without click on notification
I want to open react native app when the device gets a push notification.
I have used this code to open the app It works fine only on Android version less then 10. but it does not work on Android ...
0
votes
1
answer
46
views
How to start a camera intent and save picture taken to a specific location for each item in a listView
I'm new to programming and I don't know how to start camera intent from the adapter and to save image to a specific location for each item in the listview. I would like when I press the button ...
0
votes
0
answers
45
views
How to write a ByteArray to an Excel file and saving it in external storage?
I want to write ByteArray data which is coming from Retrofit API (ResponseBody as return type from API) into Excel file and store into external memory of android SD Card.
try {
var path = mContext?...
0
votes
0
answers
25
views
Unable to insert new contact from instant app in Android 14
How to save/insert a new contact from instant app?
Tried inserting a new contact using intent by following developer docs like so:
val intent = Intent(ContactsContract.Intents.Insert.ACTION).apply {
...
0
votes
1
answer
14
views
Unable to get if intent filter is handled by an installed mobile application from javascript
I have been given the task to update our website to check if our mobile application is installed. If it is installed, ask if the user wants to open our mobile application. If it is not installed, ...
2
votes
3
answers
163
views
Android: When app was opened with click on notification, clicking on further notifications only opens the app, not changing activity
According to this thread on StackOverflow, "Android remembers the intent that was used to launch it". The problem described there is exactly what I'm going through:
When the app is launched ...
0
votes
0
answers
20
views
Android pending intent not doing anything
tl;dr: I want to keep the back stack to be able to navigate back, but when I don't use the flags that clear the back stack, opening a notification that has a pending intent does nothing except opening ...
1
vote
1
answer
191
views
Android 15 confusing new 'Safer Intents' security policy
Android 15 is introducing new policy on Intents safety: https://developer.android.com/about/versions/15/behavior-changes-15#safer-intents
I have a problem understanding what really changes and how to ...
0
votes
1
answer
45
views
Android Unresolved reference @MainActivity from another activity
(I'm an Android newbie.)
Goal: When a message is received from the HTML page's JavaScript, switch to a different activity.
Error: Unresolved reference @MainActivity
The file MainActivity.kt exists in ...
0
votes
0
answers
14
views
how to watch the package received from emergency alert and information from another phone and sent back the same package to sender phone?
how to watch the package received from emergency alert or emergency information from another phone and sent back the same package to sender phone?
how to use intent to watch what another app doing ...
0
votes
1
answer
29
views
Android. How to disable multiple selection of files via intent?
I'm trying to select file with intent Intent.ACTION_OPEN_DOCUMENT. Here is my code:
ActivityResultLauncher<String[]> launcher = registerForActivityResult(new ActivityResultContracts.OpenDocument(...
0
votes
1
answer
91
views
Open a Sharepoint online Excel file in the Excel app for Android using a link or intent
I would like to launch the Excel for Android app with an online file (from Sharepoint) opened for editing, exactly like the app does when creating a widget with a link (file > overflow menu > ...
0
votes
0
answers
14
views
ACTION_MEDIA_MOUNTED Intent received for SD Card but not for USB Drive
In my Android Application, I have to detect when an external storage device is attached or removed (SD Card or USB Drive) so that I can perform some action when this happens
I implemented a broadcast ...
0
votes
1
answer
33
views
How to display result depending on the radio button choice?
I'm working on an Android Studio activity in which I have to calculate area and perimeter. I used intent to pass and access variables that will be used in another activity where the computations will ...
4
votes
1
answer
69
views
Sharing Content to WhatsApp Fails When AppLock is Enabled
I'm working on an Android app that includes a feature to share content to WhatsApp. The sharing functionality works perfectly under normal conditions. However, when the AppLock for WhatsApp is enabled,...
0
votes
0
answers
36
views
How to pass a double value of an editText to another activity in android?
I'm working on an activity in android studio in which I need to compute area and perimeter. I used intent and view Binding to access and pass the value of the user input in the edit Text to another ...
1
vote
0
answers
31
views
Is there a way to avoid android(13) pairing window and do it by device address automatically?
The following program section (java) is working fine, the file can be received, I just want to get rid of choosing device manually.
I wonder if there is a simple way using intent.putExtra with device ...
0
votes
1
answer
16
views
how to open Call setting screen from android app programmatically
I am trying to navigate from my app to device's Call setting screen and voicemail setting screen.
I am looking for Action to create intent that can navigate to setting screen.
or other way to open ...
0
votes
0
answers
16
views
Intent to record a video using CaptureVideo Contract, get this video in return and show it on a videoview
I'm trying to achieve the goal using following goal.
ActivityResultLauncher<Uri> launcher = registerForActivityResult(new ActivityResultContracts.CaptureVideo(), new ActivityResultCallback<...
0
votes
0
answers
71
views
android startIntentSenderForResult deprecated
I have this code:
public void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
if (requestCode == BackupActivity....
1
vote
1
answer
75
views
Can anyone tell me the package name of Amazon Android App of USA ? Because package name of Amazon app is different for different countries
I need to fire an intent using the package name of Amazon app. But the feature I am building requires to target the amazon app of US region only.
I tried VPN and shared the app link from Google Play ...
0
votes
1
answer
30
views
Whenever i start a transparent activity from background, it opens on top of the already existing app
Whenever i start a transparent activity from broadcast reciever, if the app already has an activity in that is in the recent apps, instead of being transparent, over the current app, its transparent ...
-1
votes
1
answer
29
views
How to create directories and files inside a directory obtained by Intent.ACTION_OPEN_DOCUMENT_TREE?
I am using following code to request user to pick a directory for storing app data.
void doStuff() {
File f = new File(Prefs.externalURI.getPath(), "cache");
if (!f....
0
votes
0
answers
46
views
It is not possible to capture specific web links. Unexpected behavior in my Android browser app
I have created a minimal version to check this error.
The app declares in its manifest.xml an activity-alias that points to the only activity of the app,
Manifest.xml:
<?xml version="1.0" ...
1
vote
1
answer
50
views
Unable to launch system update screen in settings using "android.settings.SYSTEM_UPDATE_SETTINGS" intent action
I want to launch the system update screen of settings in my android devices from my app.
I saw that android.settings.SYSTEM_UPDATE_SETTINGS intent action is responsible for doing that but my app ...
1
vote
1
answer
53
views
How do I open another application after reading its push notification in my Android app?
I have an app where I'm displaying notifications from chat apps after reading the with a Notification listener service and storing them in a room database.
Now I want to open the specific chat the ...
0
votes
0
answers
43
views
How to open mobile data settings in Google Pixel devices
I'm trying to open mobile data settings on Android API 33 and for that to happen, from an activity I run the following code:**
Intent roamingIntent = new Intent(Settings.ACTION_DATA_ROAMING_SETTINGS);
...
0
votes
1
answer
49
views
OnActivityResult after application restart
I am developing a .NET Maui application. It is sideloaded and doesn't use the Google Play Store.
I want to update the app by downloading the new Apk and starting an ACTION_VIEW activity on the Apk. ...
0
votes
1
answer
28
views
What's the best way to send data from activity to fragments
So my question is simple. I have two activities (splash and main) 3 fragments will be placed on the main activity. i want to fetch data from api on the splash screen and display the fetched data on ...
0
votes
0
answers
39
views
Imageview does not keep the selected image after changing activity
I have a MainActivity and a EditActivity, Main shows default info, then it can be changed on EditActivity which sends new info to MainActivity. Edit has a ImageView "@+id/edit_profile_picture&...