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)

Filter by
Sorted by
Tagged with
1 vote
0 answers
21 views

Opening directory through Intent

I have an Intent that is supposed to open a directory using the default file application. However, when the file app launches, it doesn't navigate to my desired folder. Instead, it opens to the ...
segoSambel's user avatar
0 votes
0 answers
27 views

Android: Launching an activity from my ForgroundService's Task, causes the task to block :(

I have a task (launched from my Foreground Service) that launches an activity like so: (note this is c#/xamarin) new Android.OS.Handler( Looper.MainLooper ).Post( new Java.Lang.Runnable( ( ) => { ...
Matt Ault's user avatar
0 votes
1 answer
17 views

Use of <activity-alias> to show different launcher for my app

I have a MainActivity in my app. I want my MainActivity through the implicit intent.Also, I want user should have two options to come to my app as I have two cases for both two otpions. I am using as ...
Naman Budhiraja's user avatar
0 votes
2 answers
73 views

Problems testing values saved in android Intent (extras always null)

I have the following Android Intent extension: import android.content.Intent import android.os.Parcelable import java.io.Serializable fun Intent.addNewTaskFlags(): Intent = apply { addFlags(...
Pierre Vieira's user avatar
0 votes
1 answer
22 views

How to display the "Share Wi-Fi" QR Code from android network configuration?

How can I, programmatically (Kotlin or Java), display the QR Code "Share Wi-Fi" from the currently connected network? The closest I could come was to display the network settings: ...
algorix's user avatar
  • 311
0 votes
0 answers
11 views

Add custom ringtone option to ColorOS RingtoneManagers ringtone picker

ColorOS (Oppo) offers the ability to select a custom ringtone from a file with its ringtone picker, but it does not work with my app. You can see that feature here. This is the code I'm using: ...
Semurak's user avatar
0 votes
1 answer
94 views
+50

How to open Google Classroom Specific Course from another app in Android

Can I open Google Classroom app for a specific course from my app? In iOS, e.g. for a Web URL https://classroom.google.com/c/BlahBlahBlah, SwiftUI Link() opens the course in Google Classroom app if ...
LearnLoop's user avatar
0 votes
0 answers
19 views

Espresso. intent matcher not matching

i have this part to match intent intended(allOf( hasAction(Intent.ACTION_VIEW), hasData(Uri.parse("http://www.ya.ru/")), toPackage(...
FrBr's user avatar
  • 1
0 votes
0 answers
26 views

Intent.ACTION_CHOOSER doesn't work with LabeledIntent on Android 12 and below

What I want to achieve is an Action Chooser that offers me the options to take an image, take a video or select a media from the gallery when an input for file is triggered in a web view. That works ...
basti394's user avatar
  • 189
1 vote
0 answers
6 views

I have to bring text from any other app into my app through SHARE-TO method

I want to perform tasks in the background in my app without open ui. You have to bring text from any other app into your app through shareTo method. here is my code in AndroidManifest.xml . . <uses-...
Ban Rossyn's user avatar
0 votes
1 answer
32 views

Android - Share intent with file manager as option

I want the following functionality: In my application's internal storage I have a file and the user should be able to save it to another app (ex. Google Drive) OR save it to the phone's external ...
user13756297's user avatar
0 votes
1 answer
26 views

App in Android Studio keeps crashing upon clicking submit when trying to share data using Intent and onClickListener

The app is a general profile app to get familiar with the program since this is my first time using it and I don't have much experience with Java. The main activity has two radio buttons, a radio ...
Megan 's user avatar
1 vote
1 answer
43 views

Did the permissions to launch another app change in API 33?

I have a bug that only happens on API 33. Did something change? I have two apps: A and B. Let's call them com.example.a and com.example.b. They need to launch each other. As of API 33, when app A ...
Barry Fruitman's user avatar
0 votes
0 answers
30 views

Android: Secure & Efficient Communication Between SDK & Application - Best Practices

Question: I am developing a payment SDK in Android, which will be integrated into various consumer apps, including third-party applications for example Amazon. The SDK's primary function is to ...
Mian Sarim Hameed's user avatar
0 votes
1 answer
59 views

Am I Doing something wrong in UPI intent using URL schemes in iOS Swift?

The following is my intent string or URL for opening PhonePe app phonepe://upi://pay?pa=Motilal2005@hdfcbank&pn=MOFSL&mc=6021&tr=uft_2288932c6345a5&tn=Pay%2520to%2520MOFSL&mode=03&...
shreyas1811's user avatar
0 votes
0 answers
15 views

Why i cant Fetch the Gallery From my Desktop

Its showing device folder when i am trying to upload an image i tried to upload the image but its not working Here is the code //is there any Error in this code? private void openGallery() { ...
Lunox's user avatar
  • 1
0 votes
0 answers
17 views

Issues opening a file on Android with my C#/Xamarin app

public void openFile () { Intent intent = new Intent(Intent.ActionGetContent); intent.SetType("text/plain"); intent.AddCategory(Intent.CategoryOpenable); intent....
Ron's user avatar
  • 2,435
0 votes
0 answers
39 views

How to avoid automatic invoking of paused activity when the transparent activity is triggered and finished its activity

In my current android app, I am using transparent activity for main and its has some of intent activities. My manifest file as follows, <?xml version="1.0" encoding="utf-8"?> ...
Kalai Selvi's user avatar
0 votes
0 answers
50 views

in flutter, android.intent.action.SET_ALARM action from android_intent_plus plugin not executing when the app in recent tabs or closed or background

I am new to flutter and android developing. I want to create an app that works like this = if some conditions fulfill then it must set an alarm in my default alarm clock app (time can be current ...
Spry Shanto's user avatar
0 votes
0 answers
22 views

How can I send a file from the Files app to my app without starting a new activity?

I'm working on a mapping app and currently setting up the functionality to import both GPX and KML files. I have set up my Manifest to handle the intent to send a file from Files: <intent-filter>...
eatmoretoast's user avatar
0 votes
1 answer
26 views

The order of images selected by intents is not same

I am selecting multiple images through intent in java. But here problem is that the order in which I am selecting the images in gallery is not same as shown in recyclerview. Below is the code . Please ...
Nandini Srivastava's user avatar
0 votes
0 answers
9 views

How do I get the Alarm Class to Trigger Properly Everytime?

I have a method in my Broadcast Reciever to start a timer of 1 sec after a certain condition is met, the issue arises that, when the condition is met successfully once, the method gets triggered ...
Spandan Saxena's user avatar
0 votes
0 answers
75 views

How to get image from gallery in a non activity/fragment class? - koltin

I'm using the requestForLoadImage which is an ActivityForResultLauncher<Intent> built in MainActivity to get image from gallery. I've passed the requestForLoadImage to the productAlertDialog ...
Ali Saadati's user avatar
0 votes
2 answers
32 views

how to use implicit intent in android

In my application, I created two activities. In activity1, I created a button, set event: activity2, I created, and write in manifest: when i click to the button in activity1, error was throw: Why? ...
Thanh Tùng's user avatar
0 votes
0 answers
31 views

Flutter Android Intent and WhatsApp

I am creating a contacts application and I would like to be able to add buttons to make video calls and WhatsApp calls. To get the contacts I use flutter_contacts and with this I get a Contact object ...
Aleja's user avatar
  • 37
0 votes
1 answer
15 views

Cordova Broadcaster plugin not sending intents to index.js

I'm working on a project where I'm using Cordova Broadcaster to send a action.USER_PRESENT intent from my myBroadcastReceiver.java file to my Index.js. I know that the intent gets received by the ...
pianoguy5's user avatar
0 votes
0 answers
31 views

how to close bottom modal sheet in mobile view using jquery

once click on the upi apps link upi://=7838304007@cosb&pn=QWRhbSBJbm5vdmF0aW9ucyBUZXN0&tr=ID17746409&tn=Pay this will open android bottom sheet list the all upi apps. i need to fail the ...
Shammas Pk's user avatar
0 votes
0 answers
26 views

Can we send back data from App to Chrome in previous opened Tab?

I have made a payment app in Java Kotlin. My requirement is that a webpage can call my app for payment then after successful payment I can response back that webpage with transaction ID. From web page,...
Khushi's user avatar
  • 63
0 votes
1 answer
18 views

Can't view another activity in kotlin

It moves to the activity but I get an empty page MainActivit.kt This is the block I use to move binding.fab2.setOnClickListener { val intent = Intent(this, InfoActivity::class.java) ...
Mohamed Anwer's user avatar
0 votes
0 answers
35 views

How to fileOpen in C#(Win) to Android?

I've been trying to solve this problem for about a month with no luck. My Android app needs to open files and also save them, to folders the app can access, like Documents. This is part of my program ...
Ron's user avatar
  • 2,435
0 votes
1 answer
39 views

PendingIntent is not delivered via AlarmManager.setRepeating() on Android 14

In my application I am scheduling a daily alarm via AlarmManager.setRepeating(). My approach has been working flawlessly until testing it on an Android 14 device (I am using an emulated Pixel 7 Pro). ...
sweak's user avatar
  • 1,379
0 votes
3 answers
22 views

Intent Keyword didn't Working On my Android Studio?

IS there any wrong in my code? I tried many times but i couldn't solve the issue please help me? when i click on Text_view it's just blink but didn't move the next activity.. [[[[enter image ...
Shahanur Alam's user avatar
0 votes
1 answer
30 views

getting data null on registerForActivityResult

So everything is worling good camera is opening and also permission dialog is opening if there i no permission, but the image is not getting displayed in the image view. because i am getting null on ...
Laser's user avatar
  • 17
0 votes
1 answer
54 views

How to return selected file to android file picker from my app?

My app appears in the file picker with the intent filter declared in my manifest for a given activity: <intent-filter> <action android:name="android.intent.action....
Aristide13's user avatar
0 votes
0 answers
12 views

Difference between aidl and intent

Sorry for noob question, but could anyone explain me the difference between aidl and intent ? Would like to know when to use aidl and when to use intent? Thank you. I am trying to understand Android ...
Rajan's user avatar
  • 1
0 votes
2 answers
81 views

android.intent.action.VIEW won't open my app

I'm trying to setup functionality for a user to use the Android camera app to scan a QR code to open my Android app. If the user doesn't have my app installed, the fallback is to open a webpage that ...
luvcraft's user avatar
0 votes
0 answers
32 views

Using Android Intent, How Do I Open Files?

When clicking on File Open, I have the following code: Intent intent = new Intent(Intent.ActionGetContent); intent.AddCategory(Intent.CategoryOpenable); ...
Ron's user avatar
  • 2,435
0 votes
1 answer
30 views

How are MEDIA_PLAY_FROM_SEARCH intents tested in Google Assistant inside the Android emulator?

I'm trying to debug why using the Android emulator cannot launch my app via a search intent when run via Google Assistant. I've implemented MEDIA_PLAY_FROM_SEARCH as an intent-filter and have it wired ...
Dan Gravell's user avatar
  • 7,866
0 votes
0 answers
20 views

How do I use Intent to get a list of files on the Android device

Here's the code so far try { Intent intent = new Intent(Intent.ActionGetContent); intent.SetType("file/*.txt"); StartActivityForResult(...
Ron's user avatar
  • 2,435
0 votes
0 answers
22 views

ionic in-app browser adding "http" protocol to play store intent url

url = 'https://play.google.com/store/apps/details?id=com.i3v.edu.psc' window.open(url, '_blank'); once after redirecting to the browser from ionic app. The browser trying to open in playstore but http ...
Rashmika's user avatar
0 votes
1 answer
43 views

How to Get the multiple videos using intent

My problem is that after creating an Intent and making the user select videos my activityOnResult method is supposed to get the file path of the selected videos from their uri which it does then ...
Micah Okoh's user avatar
0 votes
0 answers
21 views

java.lang.RuntimeException: Parcel: unable to marshal value

My apps currently will receive some data, but I just want to store the data somewhere and bring it to another screen. Here's what I do currently Data class: data class MTSnListItem( @...
Xue Xian Heah's user avatar
-4 votes
1 answer
41 views

Creating a random numbers and generating an array to pass to the next activity

I have created a code for random numbers to show each number in editText. Im now trying to populate each number to an array and pass it to the next activity. When I do so, my app does not compile. ...
Phumzile Macu's user avatar
0 votes
2 answers
54 views

One of my Intents doesn't work [code on both Activities is the same]

[Beginner] I added an Edit Text on 2 Activities and Intents to share information between them. From 1 to 2 I send question (pop-ups on TextView), from 2 to 1 I send the answer (pop-ups on TextView). ...
Vadim_Middle's user avatar
0 votes
1 answer
24 views

How to write a BroadcastReceiver that takes extra from pendingIntent.getActivity

I have a notification that has an action button. IFF the action is clicked on, it will open up a specific view in my app and the notification will dismiss itself. I know for dismissing notification on ...
Joan's user avatar
  • 1
1 vote
1 answer
20 views

Intent is null while opening camera

So i have a function to open camera and gallery and i have an image view to set that image and save it in room database. When i am selecting gallery everything works fine image is displayed in image ...
Laser's user avatar
  • 17
0 votes
0 answers
29 views

Upload Image in different button and imageView

so every time I press the logo button and select camera, the camera appears but cannot embed the preview in the existing imageView. Whereas when selecting gallery, the photo preview will appear but it ...
Syahdi Gharizah's user avatar
0 votes
1 answer
38 views

Why Android media file chooser is canceled?

I am developing an Android app that has a feature for uploading some music media files to the external server. To find the media file, I used the below code, which doesn't need any permission: val ...
yoonhok's user avatar
  • 2,607
3 votes
2 answers
415 views

I get this error when trying to start another activity: This intent has no action set and is not explicit by component

I am trying to open a new activity as follows: startActivity(Intent(this@MainActivity, ActivityLogInSignUp::class.java)) But I get this error: This intent has no action set and is not explicit by ...
F.Mysir's user avatar
  • 3,444
1 vote
1 answer
49 views

How to match an intent without data with an intentFilter with dataSchemes?

When you add a data scheme to an intent filter in Android, an intent will match only if it shares the same scheme. If you don't specify any scheme, an intent will match only if it has no data. Now, if ...
HelpIDontUnderstandComputers's user avatar

1
2 3 4 5
619