Newest 'android-intent' Questions - Stack Overflow

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)

-1
votes
0answers
14 views

Is it ok to use single activity and use a button to intent to this Activity and display different data on every time this activity is invoked?

I want to digitalize a graphic book. my book has 7 chapters. I'm working on chapter one. so far I have two activities, the main activity (table of content) with a button to go to plateActivity. so far ...
0
votes
0answers
17 views

Store, Pass and Read data using JSONObject and Intent

I'm using Web API to connect mysql database with Android Studio. I want to fetch and store the data of the user when the user login the application. I am using JSONObject and Intent to parse data ...
1
vote
0answers
20 views

How to get the same detailsActivity

I have an array list. Each word from the list intent the details activity( DetaliiActivity). In the same list i have Blaa word who intent other activity (Blaa Activity) .I want to generate the same ...
0
votes
1answer
30 views

Shared Image between Activities through Glide

I was building an App using images in the drawable, but since they were too much I stored them in Firebase. Now, whilst working with drawable everything was fine, but now that I use Glide and the ...
0
votes
0answers
7 views

Can we open downloaded PDF files using browser on mobile?

I am generating a PDF in my android app and I am opening it as soon as it is downloaded onto the device. I used the below code to open the PDF and it did so by using the already installed PDF viewers....
0
votes
0answers
15 views

How to do deferred deep-linking to an external app on android?

So I want to do deferred deep-link from my app to an external app (app I am not in control of) on android. I can now construct 2 intents that acts as I anticipate: first opens the play store and ...
0
votes
0answers
27 views

Is it possible to call two activities using intent from the same button?

I have Next Button in one activity. This button will be used to move to the next activity i.e. second activity. The same button will also be used to send some calculated data from one activity to the ...
-1
votes
0answers
9 views

Storage Access Framework - Does the file picker app not implement ACTION_OPEN_DOCUMENT_TREE on the cloud?

Apparently the "file picker" app does not completely implement the ACTION_OPEN_DOCUMENT_TREE intent. Let's say this code is executed: Intent intent = new Intent(Intent.ACTION_OPEN_DOCUMENT_TREE); ...
0
votes
0answers
8 views

no ACTION_HEADSET_PLUG intent on headset plugging but sound is heard (streamer minix)

trying to handle ACTION_HEADSET_PLUG intent on android streamer (minix) when running my app on normal device - intent works well and also isWiredHeadsetOn() returns true. on the minix - no intent is ...
0
votes
3answers
38 views

OnClickListener in RecyclerView having image, text

I want to show another activity when object of recycler view is clicked. For eg: if I clicked "dd" text or"image of that line" then I should go to activity named "AbcActivity". It went to many site, ...
0
votes
0answers
10 views

Is there any way to share more than one image as sticker to Instagram Story?

This documentation shows how to send only one sticker, but i want to send more than one. Is there any way to do that? https://developers.facebook.com/docs/instagram/sharing-to-stories/ private void ...
0
votes
0answers
40 views

Why does setDataAndType method make my app crash?

I'm trying to share a text to a precise chat on telegram. I'm using Android Studio. If use only .setData (giving the URI to open the right chat) I manage to open the right chat without sharing ...
0
votes
0answers
24 views

Flutter how to use CameraX takePicture(OnImageCapturedListener) to get In-Memory Buffer Image

I am trying to let Flutter use CameraX to take picture with In-Memory Buffer and not to save to disk. In CameraX ImageCapture.Java , I found this snippet // Wrap the ImageCapture....
-1
votes
0answers
19 views

Intent object is null after capturing image from default camera app and results in error in onActivityresult [duplicate]

I am trying to capture image from default camera app of the system. But after clicking the image when my onActivityResult() method runs it shows intent object to be null. can anybody tell me what is ...
0
votes
1answer
30 views

Failure in Data Transmission Between Child Activity and Parent Activity

I'm designing a multi-activity scoreboard app where each activity allows the user to keep score for a variety of sports. Currently, there are two activities. The main activity support scorekeeping for ...
1
vote
0answers
45 views

import android.view.View; cannot resolve symbol 'view'

In android studio 3.4.1 onClick listener, not fount and now it showing setOnEditorActionListener bth.setOnEditorActionListener(new TextView.OnEditorActionListener() { @Override ...
1
vote
1answer
40 views

Load PDF from URL with Authentication

I want to display a .pdf file in WebView which is having authentication. The app has been rejected by Google as I am using intent to load the WebView Intent intent = new Intent(Intent.ACTION_VIEW); ...
0
votes
0answers
29 views

When do I use setClassName in intent?

I use the code as an explicit intent when I switch from the current activity to the new activity. However, some examples use as intent.setClassName. When do I user setClassName? What's the difference? ...
0
votes
0answers
40 views

How can i receive the data that what i checked

I want to get my cheked data that what i checked the problem is i'm using expandable layout and i don't know how to i receive the real data info values items how can i do receive the data from my ...
1
vote
1answer
48 views

How to make sure new NFC intent delivers to my activity after screen off/on again?

I have a react-native app which reads NFC tags and writes a URL to them. It uses ForegroundDispatch to make sure the app captures the scanned info and doesn't navigate away to the browser when the ...
1
vote
0answers
20 views

Pending intent doesn't run the service

I'm trying to use the transition API to detect user activity so I defined a pending intent and built a service for it to run but it just doesn't run. Also, I don't know if it matters much but anyway, ...
0
votes
1answer
33 views

Open TikTok app to Its Homepage with Intent

I can open TikTok to a user's profile with the below code, but how do I open TikTok to its Homepage? Uri uri = Uri.parse("https://vm.tiktok.com/"+"tiktokExtension"); Intent tiktokIntent = new Intent(...
0
votes
0answers
11 views

I want to store and display picture in folder

Good afternoon , I'm creating a project and I need an activity that when the user take picture, he can store it into folder already exist or create new one. So, I have the folderActivity, it ...
1
vote
1answer
44 views

How to set custom ringtone for a specific contact?

I want to set a ringtone for a specific contact. I know how to get contact and set a ringtone for phone but how I can set custom ringtone for a specific contact ? My Scenario: I click button and ...
0
votes
2answers
21 views

onPause() without intent , onResume() without onCreate()

I'm building an app that plays music on the background with service. The music is muted when the user is not in the app and unmuted when he is back. I used the onPause() and onResume() methods to do ...
0
votes
1answer
26 views

Different activitys intent - same List

I have an array list values. In Recyclerview this list open same activity for all items. I wish in a different position (few items) to open a different activity . Any ideas? In my code: => ...
0
votes
3answers
30 views

How to solve android email intent problem?

I am having a problem with android email intent.....i need to open email app so that the user can provide feedback for my app.It doesn't open when i use this..throws an ActivityNotFoundException ........
1
vote
1answer
34 views

how to share a image bitmap with intent in android?

(This question isn't duplicate !) How can I share an image via intent ? I tried this Android Share Intent for a Bitmap - is it possible not to save it prior sharing? How to share image to social ...
0
votes
0answers
11 views

Email Multi Attachments Using Intents

well this code u can choose multiple attachments but wont attach it into email nothing shows up if i use 1 image at a time it will work with code A Bellow : Code A : Intent intent = new Intent (...
0
votes
0answers
20 views

After action_send Intent backbutton needs to be pressed twice to close activity

I use the following code to share some text to other apps: Intent sharingIntent = new Intent(android.content.Intent.ACTION_SEND); sharingIntent.setType("text/plain"); sharingIntent.putExtra(android....
0
votes
0answers
9 views

How to capture intent result status in mobile browser(chrome) in Android from UPI app?

I am trying to fire an intent from browser (mobile chrome), by building intent string for upi app using the instructions from here at: https://developer.chrome.com/multidevice/android/intents But I ...
0
votes
2answers
26 views

Can we wakeup the Android app via bluetooth or BLE signal from a device - Android 8.0 and above

I am trying to wakeup my android app via nearby bluetooth devices. If I force close the app (in Android 8.0 and above), and when I bring my Android device near to a BLE device, can I get a callback or ...
-3
votes
0answers
20 views

Intent createChooser for selecting images is not working [closed]

I am writing code for selecting multiple image from android. But problem arising is that chooser is not working else everything is working fine. Intent intent = new Intent(); intent.setType("image/*...
2
votes
0answers
21 views

Can't create file from Uri after recent android update

Recent update now prevents creation of file from uri. I created an app that gets a file from an Intent. Where the Intent action is equal to "ACTION_SEND". I get the Uri using (Uri)intent....
0
votes
2answers
54 views

Passing data between applications in Android

Illustration: How do I pass data coming from a form in my app to a third-party app? Also, what are the terms, functions and APIs about doing this?
0
votes
1answer
25 views

Getting ResourceNotFoundException despite passing the item ID

I'm building an app where the user can create entries through a designated activity and edit entries in that same activity by long clicking an entry. The app uses the MVVM architecture with Room for ...
1
vote
0answers
12 views

How do I make a virtual shopping cart within an app?

I want the user to press a button in one activity and then have that activity send data to the shopping cart activity to add two pieces of information: the item name and the item price. I've tried ...
0
votes
1answer
18 views

How to use onDraw/drawRect to make a rectangle based on editText from the mainActivity

Basically I am trying to gather the size of room from the user..(example 20x20 size room). Using those dimensions, collected on the mainActivity, send that data to the Result Activity and use the ...
0
votes
1answer
23 views

DilogeInterface.Onclicklistner not working [closed]

AlertDialog alertDialog=new AlertDialog.Builder(mContext) .setTitle("New Version Available") .setMessage("A new version of App is available in PlayStore.Please update the latest app for bug ...
1
vote
1answer
19 views

how to show progress bar update for FTP DOWNLOAD in android

I am trying to download an apk file to update my application and apk is placed in ftp server and I am downloading that apk using FTP Client. Even though I call mProgress.setProgress(percent); the ...
0
votes
1answer
18 views

Storage Access Framework - Permanent permission grant fails on user-selected folder

I am trying to test Storage Access Framework in a sample Activity. The goal is to get a permanent read/write permission on a folder Uri the user has selected. Here's how the app starts the SAF file ...
0
votes
2answers
58 views

How to create share button in android using intent?

My app has a share button that shares a link to the app on the play-store. I'm new to the intent method and keep getting this error: And this error Any input on how to correctly create a share ...
0
votes
1answer
40 views

Error launching Square native Android app using Intent

I am working on a native Point of Sale application for Android. The application is being written using Xamarin. Most of the functionality for the app will reside in a single web page application. The ...
0
votes
0answers
18 views

How to programmatically change “automatic mode” screen brightness?

Apparently, Android saves two values for the screen brightness: One for automatic adjustment and one for manual mode (at least on Nougat). How do I change the one for automatic adjustment? If I ...
0
votes
1answer
31 views

ACTION_GET_CONTENT Picking Document from Downloads returns null

I am working on PDF pick and upload to server. Below code crashed when file picked from Downloads. And works fine if file choose from any other directory. I have tried below code on oneplus 6, and ...
0
votes
0answers
18 views

Only occur in the second times, when use intent to call camera and back, the activity view is still black screen

I used a button to call these code: Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); startActivityForResult(intent,LOG_FACE_CODE); after call camera, back with onActivityResult. In the ...
0
votes
1answer
22 views

Open PDF in browser

What I want to achieve is to display PDFs directly in browser. private void openPDF(String url) { Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(url)); ...
2
votes
0answers
65 views

How to use “actions.intent.OPEN_APP_FEATURE” app action from google assistant? [closed]

How would you implement actions.intent.OPEN_APP_FEATURE action from Google Assistant? The documentation is missing examples.
0
votes
1answer
39 views

How change the background color of share with popup box in android app

Struggling to change the background color of popup box Using the implicit intent in android app.By default white color is getting as background color. I want to apply dark theme to this popup box so ...
-2
votes
1answer
19 views

Call Intent in Fragment android

I am making an intent call in a fragment . All though i updated with the intent documentation it is not working.This is the process i did... First the manifest i added... <uses-permission ...