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)
30,619
questions
0
votes
0
answers
24
views
Android Studio Intent getIntExtra not Working
I have a foreground service in which the notification sends Intents to a Broadcast Receiver, but the extra content of the intent are not been passed to the broadcast receiver.
In the service:
private ...
-1
votes
1
answer
22
views
How do I use Intent.putExtra dynamically?
I have 2 Activities which are (MainActivity, LoadIntentActivity). I know how to putExtra() from MainActivity and receive the value in LoadIntentActivity with getIntent().getExtra(). However, I want to ...
0
votes
0
answers
10
views
How to use ACTION_OPEN_DOCUMENT_TREE without startActivityForResult?
I want to select a folder on my phone's SD card. At the moment I am doing this:
activityResultLauncher = registerForActivityResult(new ActivityResultContracts.StartActivityForResult(),
new ...
0
votes
0
answers
15
views
I want to intent to select the image from gallery and camera option in WebView app (both together as picture shown)
I want to like this as picture shown in WebView app
Here is my code but I am not getting camera option only I am getting gallery in my app
public class MainActivity extends AppCompatActivity {
...
3
votes
0
answers
30
views
Intent action type ("image/jpeg") not enforced by all registered apps, which return incorrect filetypes
Objective
Send an intent to open the gallery for selecting photos, show photos only, and allow multi select. Simple.
Problem
There are some apps that are registered to receive this intent, but don't ...
0
votes
2
answers
43
views
How to reuse click listeners for different layouts
My app contains 2 different layouts for different device types. I want different actions to be performed e.g. 1st, 2nd and 3rd items to navigate to different screens, 4th item to show a Toast, the 5th ...
0
votes
0
answers
28
views
Standardize Uri between Camera and Gallery Intent Android
I'm trying to retrieve URI from gallery and camera in one place (as record in Room database), therefore i need to standardize the access between them. I get it done for the camera by create a file and ...
0
votes
1
answer
17
views
Howto getExtras from a local broadcast Intent in react-native
in my React-Native opened project,
I want to receive the data (extra text) sent by another local service app named "scanservice" on its intent output (broadcast) on a Action named "...
0
votes
0
answers
11
views
Send pendingIntent to BootReceiver from alarm manager
I hope you're doing great. Please, is possible to send a pendingIntent from AlarmManager to BootReceiver? I created a class in which I set Alarm manager and in this class, the alarm is set in a ...
0
votes
0
answers
13
views
Permission Denial : Starting Intent ( lock task mode / kiosk mode )
Any one have a suggestion how to solve this error ?
I am trying to run lock task with intent getLaunchIntentForPackage but I have no idea why this error is coming and which type of permission it wants ...
1
vote
0
answers
20
views
Get all the activities/packagename/apps name which are displayed in chooser intent
I want to get list of all the activities that can handle UPI intent.
OR
I want to get list of all activities that are displayed in Chooser intent for a upi intent.
e.g google pay, amazon pay, paytm ...
0
votes
0
answers
9
views
How to create intent for sharing different files types simultaneously for android
In AndroidManifest.xml the following intent-filter allows to display the Android app while you select same types to share (all images or all videos).
<intent-filter>
<action android:name=&...
0
votes
1
answer
65
views
Android: How to hide or close topmost activity?
In my app, I need to start the built-in camera application using the action INTENT_ACTION_STILL_IMAGE_CAMERA. The reason of this action is that in this case, I can use the Pro camera mode, like manual ...
0
votes
1
answer
21
views
How to intent data? [closed]
Iam new developer. Please help me.
I have 3 activity A, B, C.
In A, i have 15 category on recycleview. I click the any item into 15 category this, activity A will intent to B. enter image description ...
1
vote
0
answers
21
views
How to use IntentLauncher in ReactNative expo?
I try to use IntentLauncher to open app by package name in my expo app (without experience in native android). I follows these steps.
create native android app and log the intent from ...
0
votes
1
answer
65
views
Flutter : INSTALL_PARSE_FAILED_MANIFEST_MALFORMED: Failed parse during installPackageLI
My flutter app isn't install on Android 12 version. I tried with android:exported, but nothing work. It's show me this type of error-
✓ Built build/app/outputs/flutter-apk/app-debug.apk.
Installing ...
1
vote
1
answer
27
views
Multiple broadcasting in a loop using LocalBroadcastManager.sendBroadcast(intent) from a service don't update the activity UI after each call
I have a service which communicates with the activity using LocalBroadcastManager every time it gets a location update.
The callback in the service is:
@Synchronized private fun ...
0
votes
1
answer
48
views
Select and extract contact details using Intent and ActivityResultContracts
I have a button to open and select a contact for some of it's specific data - name and number using ActivityResultContracts.PickContact. Using the guide from this page and some modifications, I was ...
1
vote
2
answers
27
views
Android intent always has null in callback (using registerForActivityResult)
I am using this code and I am missing something, because almost everything is working, but I get a null in the data when the callback responds:
private inner class JavascriptInterface {
@android....
0
votes
0
answers
32
views
How to open file with custom extension on android 11 via action open document
How i can open file with my extension settings. Framework see this file,but i can't open it. when i set mime_type / all ok,but it allow to open all file types,but i want to open only .settings file ...
-2
votes
1
answer
22
views
opening whatsapp through intent does not work in android 10 [closed]
I need to open whatsapp when I select a button but when I select the button to open the whatsapp app it doesn't open and in Android Studio I don't get any exceptions,
this is my code:
this is the ...
0
votes
0
answers
22
views
Shuffle the content of an ArrayList and display it in real time without change activity
I was creating a simple memory game in which you had a list of colors that you had to memorize within a certain time, then the list with the colors disappeared and you had to choose the colors in ...
0
votes
1
answer
31
views
ByteArray intent extra is null after using putExtra inside apply
I'm receiving an encoded base64 ByteArray from our backend that contains some excel data. I need to create an excel file in the Downloads directory and write the decoded content inside it. I've ...
1
vote
1
answer
40
views
Is there any new way to open fb url directly in fb not browser?
public static Intent getOpenFacebookIntent(Context context,String url) {
try {
context.getPackageManager().getPackageInfo("com.facebook.katana", 0);
return ...
0
votes
0
answers
56
views
How to launch android app by package name in React Expo
I have a bunch of apk that was built by android studio but don't have source codes (I know package name). How to launch these apps in React Native Expo?
edit::
A comment suggest me to use ...
1
vote
1
answer
74
views
Android 12 Kotlin - Strongly consider using FLAG_IMMUTABLE, only use FLAG_MUTABLE if some functionality depends on the PendingIntent being mutable
This is the code for pendingIntent:
val pi =
PendingIntent.getActivity(
applicationContext,
0,
ii,
PendingIntent.FLAG_UPDATE_CURRENT
)
I'm getting this error ...
0
votes
0
answers
9
views
Screenshot (share_screenshot_as_stream) is no longer shared
Currently, I am developing an Android application that saves bookmarks using the shared information of the browser.
Until version 92 of chrome, if you select [Share] ⇒ [App under development] from ...
0
votes
1
answer
12
views
Android intent service is finished after start
I have this Intent service:
public class MyIntentService extends IntentService {
public static final String TAG = "MyIntentService";
private TimerTask timerTask;
private ...
0
votes
0
answers
14
views
How can I change status bar color and application icon in status bar for incoming call/in call/missed call/rejected call?
I am making a VOIP feature.
I created it with FCM + full screen intent. However, the status bar doesn't show notification's icon and it doesn't automatically change to green color.
As far as I know, I ...
0
votes
0
answers
18
views
Particular activity is not opening when app is in background or killed?
I want to open the NotificationActivity of my application when AppReceiver calls and triggered the onReceive method.
I have 2 Activities named MainActivity and NotificationActivity in my MainActivity ...
0
votes
0
answers
14
views
Android 11 problem sending email with attachment [duplicate]
I have a problem because on Android 11 I can't send the attachment. The email opens, for example into gmail, but Gmail displays the message couldn't attach file. I read a bunch of posts and ...
0
votes
0
answers
16
views
Problem receiving intents with Zebra Data Wedge decode_data
I am trying to receive more than one data from the RFID tag (EPC, USER and TID), but from the "intent" I receive empty data.
When i use: "com.symbol.datawedge.decode_data"
...
0
votes
0
answers
19
views
Unable to send Image to Instagram Story Android
I am currently trying to get intents working with Android (java) but I am having a couple of issues...
As of this moment, I am able to send text over to many application using EXTRA_TEXT, but that is ...
-2
votes
0
answers
11
views
Passing retrieved values from different activities to just one main activity without the values overwriting each other
I'm new to android programming and java entirely, so my scenario is:
I want to send different values from different activities to one activity without making the values overwrite each other using ...
0
votes
1
answer
37
views
Error while performing in-app Review for Galaxy Store [closed]
I am trying in-app pop up review for my Galaxy Store app for first time. As per the documents provided by Galaxy Developer (https://developer.samsung.com/galaxy-store/customer-review/galaxy-store-...
0
votes
2
answers
56
views
How to send from Fragment when clicking on ImageButton to Activity?
It is necessary that in the Fragment, when you click on the ImageButton, the Activity opens.I've been reading all possible resources for two days and tried different methods, but none of them work. I ...
0
votes
1
answer
26
views
Regarding new version of andriodx in andriod studio
I am using new version of andriox studio but i am getting some errors while i am running the project, error occurs in ContenetMainbuilding.java file
Note: i am using Firebase and fragment as well
**
...
0
votes
1
answer
24
views
Receive Broadcast When an SMS Message is Read by Another App
Is it possible for an app to be able to get alerted when another app marks an SMS text message as read?
First instinct is to just poll SMS messages periodically, but that sounds like a massive waste ...
0
votes
0
answers
14
views
UPDATE firebaseInstanceId.getToken(senderID, "FCM"); to FIrebaseMesagging
I have an app that i need to update. Before we use firebaseInstanceId.getToken(senderID, "FCM") for getting token for every sender. However, now i am struggling in how to update my code ...
0
votes
1
answer
36
views
Xamarin Intent not sending information
This activity does not send any information through the intent no matter what I try, when used in the next activity the Intent.Extras is null.
Any idea on how to solve this will be appreciated.
I'm ...
0
votes
0
answers
29
views
How to restart previous activity after coming back from second activity by pressing back button especial case
I have a recyclerview adapter and card view as the layout for the element of recyclerview which I'm using them in four different activities and I manage the Intent inside the adapter class so by ...
-2
votes
2
answers
34
views
PutExtra(String!.String?) is givng error (in android Kotlin), what could be the problem?
MainActivity.kt
PutExtra(String!.String?) is givng error (in android Kotlin), what could be the problem?
class MainActivity : AppCompatActivity()
{
override fun onCreate(savedInstanceState: ...
0
votes
0
answers
12
views
How can I enforce returning to my app when starting google navigation with an intent
I call Google Maps with an Intent like this:
Intent mapIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("google.navigation:q=" + lat + "," + lon + "&mode=d"));
...
0
votes
0
answers
15
views
I made a user database of Online-users in Firebase database using in activity first but when i use intent to go to other activity , it vanishes
I want to maintain online-user firebase db throughout the app, not just an activity.
in onCreate() i'm building the fire db and in onStop() I'm removing the user from online table.
i just want to ...
0
votes
2
answers
31
views
Android Studio "Intent" not working even after importing "android.content.Intent"
I am trying out a very simple intent example follow this youtube video. However, i facing a very weird error where this particular line cannot work:
Intent myIntent = new Intent(this, DisplayActivity....
0
votes
1
answer
31
views
How do i check if a phone number is already saved on my android phone or not?
I am building an app that enables users to save and manage a list of people, with important dates such as birthdays, anniversaries, Etc. for each person.
The goal, is to send them a personalized PDF ...
0
votes
0
answers
27
views
Open opera/chrome browser in fullscreen mode when called from android intent
I have to open the opera/chrome browser in fullscreen mode when called from android intent.
Is there any option which we can set to open the URL in fullscreen mode by default? Or any other way to do ...
0
votes
0
answers
7
views
sharing images to google photos allows it to delete them
I'm sharing images from my WhatsApp folder to google photos using intent and file provider - and I noticed that if I delete them in google photos - they are deleted in the WhatsApp folder too !
it ...
0
votes
1
answer
56
views
When confirming payment intent with Stripe the funds are being hold but the API returns as failed
I am trying to hold funds on the customer card until the trip has been completed.
On the server:
> const capture = await stripe.paymentIntents.create({
> customer: stripeId,
> ...
0
votes
1
answer
11
views
Android - where are videos taken from intent stored?
Let's say I have a method inside my activity that looks like this:
private void dispatchTakeVideoIntent() {
Intent takeVideoIntent = new Intent(MediaStore.ACTION_VIDEO_CAPTURE);
if ...