Most voted "android-intent" questions
Intent is an object that can be used to request an action from another component, such as starting an Activity, Service or Broadcastreceiver.
Learn more…41 questions
Sort by count of
-
6
votes1
answer1808
viewsRun another application as soon as you receive an SMS
I need to call an app already installed on my mobile as soon as I receive an SMS from a certain number. All the code of this application is already ready, but I do not know how to call it from this…
-
6
votes1
answer51
viewsDetect implicit Intent action when the Android Operating System changes the time manually
I need to detect in my application when user changes system time manually. How do I do this? For example: If user restarts the device I can detect this event with on my Broadcast receiver so: if…
-
5
votes2
answers1800
viewsHow to return Activity call data to the one who called it?
I saw several examples of passing data between Activity of a Textview receiving data from a Edittext. Which is the best way to do the reverse, I explain: I have a reader that reads a barcode and…
-
4
votes1
answer628
viewsHow to prevent a new instance of Activity from being created every Intent
In my application I have a BroadCastwho receives push notifications in background, that pushcurrently opens an Activity with the information of a request to be accepted, what happens is that if at…
-
3
votes1
answer3646
viewsIntent to open link in browser does not work
How do I get my button to send the user to a link? String url = "LINK"; Intent i = new Intent(Intent.ACTION_VIEW); i.setData(Uri.parse(url)); startActivity(i); I tried this way but it didn’t work…
-
3
votes1
answer689
viewsHow do I make my app appear in the android menu (share via)?
How do my app appear on this screen?…
-
2
votes1
answer46
viewsError clicking a button to access website
I tried to make the user click on a certain button, it was directed to a site, in this case google, but it did not work. The app starts normally, but when you click the app button, it stops: This…
-
2
votes1
answer99
viewsHyperlink that when clicked open a particular application and if it is not installed, open the link of the same in Google Play?
The application in the case is the Telegram and it works with a simple system of reference to users, channels, groups. I would like to click on hyperlink (clickable textView) which has the user link…
-
2
votes1
answer72
viewsI need to create an Intent inside another Intent
Created a Widget APP with 3 buttons. In this code snippet assigns button functions: for (int i = 0; i < N; i++) { int appWidgetId = appWidgetIds[i]; RemoteViews views = new…
-
1
votes2
answers1205
viewsCall Another Layout
When entering email and password the app should call another layout. I just can’t seem to do it... Intent intent = new Intent(this, R.layout.activity_estado); startActivity(intent); Informs the…
-
1
votes2
answers604
viewsRecyclerview, problem inserting an item
Talk guys, I’m new on android, I have a problem here, I’m trying to insert items in a Recyclerview, when I use the direct method on the button it is inserting statically good: public void…
-
1
votes2
answers1100
viewsIntent stopping the App in Android Studio
I have a problem with Intent, something that was supposed to be simple is causing me problems... I’m trying to create a second button for call another screen, but as soon as I add the following code…
-
1
votes1
answer92
viewsProgressidialog closing before the Second Activity opens
I have an Activity called Login_activity, when the user logs in, I want a Progressdialog to appear, until the other Activity is fully loaded, because as I will put some things to execute in the…
-
1
votes1
answer501
viewsAndroid send message to various Whatsapp contacts
I have an application that today displays the contacts in the calendar that have Whatsapp, and there it is possible to excrever a message in this application and send to the users of Whatsapp, but…
-
1
votes0
answers33
viewsWhy did I open a bunch of windows when I used Internet?
I have a ActivityA, contains a ListView and a botão, and I have a ActivityB containing two EditText and a button. When do I start app begins in the ActivityA with empty list, when pressing the…
-
1
votes1
answer1792
viewsHow to take Activitb’s Intent values and move to Activitya in a List?
I have a ActivityA which is the main one, contains a ListView and a botão, and I have a ActivityB containing two EditText and a button. When do I start app begins in the ActivityA with empty list,…
-
1
votes1
answer94
viewsHow do I have my app listed by the Whatsapp insert button
I need my app to appear in the list of apps with sounds to share, qd we click on that clips from WhatsApp, knows that button of whatsApp to insert an image, a sound, etc... as in the image below I…
-
1
votes0
answers706
viewsHow to pass an object to another Activity
public class Despesa { private long id ; private Date data; private String local; private String endereco ; private String cnpj ; private LinkedList <Item> itens; private String URL ; public…
-
1
votes2
answers112
viewsCapture the moment the mobile screen was lit and when it was deleted
Hello ! I’m building a project similar to an alarm clock but I’m having a hard time trying to use the broadcastreceiver class. Problem: I want to capture the date and the exact time that the mobile…
-
1
votes1
answer34
viewsError while sending ZIP file via Intent on Android
I am trying to send a ZIP file via Intent on Android with the code below: Intent sendIntent = new Intent(); sendIntent.setAction(Intent.ACTION_SEND); sendIntent.putExtra(Intent.EXTRA_STREAM,…
-
0
votes3
answers4692
viewsUnable to start Activity Componentinfo
The app doesn’t work when deploying. It "crasha" straight. Follow the code and error: Actmain.java package desenvmoveluss.com.br.trabalho01; import android.support.v7.app.AppCompatActivity; import…
-
0
votes0
answers717
viewsProblem - Intent to install APK file - Android Nougat
I searched extensively and did not find the problem. While trying to install a file APK using a Intent in the Android Nougat, simply does not install and displays the following warning: "A problem…
-
0
votes1
answer77
viewsDisplay value from another screen
Hello I’m working with the following code: @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_conversor); String t =…
-
0
votes2
answers446
viewsIntent. Filter program that appears in the "open with" option
Today the option to "open with" lists several programs that are installed on mobile and including my app. I would like my app to be an option only for the files of the extension it works, in this…
-
0
votes1
answer199
viewsProblem when receiving, via Intent, a file shared by another app
I’m having trouble opening the shared file via Intent. I can properly receive the path to the file but mine app closes the execution. And unfortunately I’m not able to capture the error generated.…
-
0
votes1
answer24
viewsProblem using Putextra with a vector
I cannot pass the vector inside the Putextra. Someone can help me? Activity 1 double[] valores = new double[vetorEdits.length]; for (int i = 0; i < vetorEdits.length ; i++) { valores[i] =…
-
0
votes1
answer115
viewsHow to pass a certain content contained in a direct first Activity to a third Activity?
People would like to know how to pass the contents of a plaintext that is in Mainactivity directly to Main3activity, without having to import to Main2activity for later to Main3activity. User passes…
-
0
votes1
answer110
views"android.view.Inflateexception: Binary XM file line" when changing activity
I am currently developing an app for Android and I have a problem that ends up making my program stop working from the moment I press the button "Signin". The App has no problem at the time of…
-
0
votes0
answers200
viewsHow to Recover Extras from a Pendingintent (Android)?
I’m implementing Notifications in an app. I’m using Alarmmanager with a Pendingintent of an Intent with data (in Extras, some model objects) but when I receive them in another Broadcastreceiver…
-
0
votes1
answer241
viewsHow to share audio from raw internal directory?
I have several audios stored in the app’s raw directory and would like to share with other apps, such as Whatsapp, but I found very confusing the documentation on how to set up File Provider…
-
0
votes1
answer208
viewsOpen a file passed via Intent on Android 7
The program works on previous versions of Android, only on Nougat that does not. I get the file from some program, for example the file manager: Uri arqUri = intent.getData(); And get the path to…
-
0
votes1
answer378
viewsRecover Contact List Name List on an android Edit
All right, guys ? I have a problem in the development of an app, because when I call his registration screen before I want to take the name and phone of the selected contact and send to the Activity…
-
0
votes1
answer119
viewsSending data between Activitys with Putextra - Management
I have the following problem: I have three screens: Main Activity 2 Activity 3 In the first Activity (Main) I send a data by putExtra to Activity 2 (id user). Activity 2 is the profile screen, and…
-
0
votes1
answer3946
viewsShare app link with Whatsapp
Good morning ! How do I share a link from my app with a contact in Whatsapp ? Searching on the internet I was able to form this code (it is without successful tests because I’m still just testing…
-
0
votes1
answer464
viewsPass data from Firebase Database to Intent and recover in another Activity
This is the code snippet of my Fragment in which I need to pass a parameter (id of Firebase DB) through an Intent generated by Adapter.setOnClickListener: ...…
android firebase onclick android-intent firebase-databaseasked 6 years, 9 months ago Adriano Junior 1 -
0
votes2
answers204
viewsMap navigation intent for all apps [mount route]
I’m looking for a way to give user option select which app mount your route (Waze, google maps, Uber...), but just does not work on google maps. When I choose it, it just shows the location on the…
-
0
votes1
answer921
viewsOpen pdf document via Intent?
I have an application that generates a pdf through a button and when clicking on the button opens a alertdialog where I name my file and therefore opens a snackbar with the title " Do you want to…
-
0
votes1
answer55
viewsI’m not getting to finish the Activitys
My problem is this... I have 3 Activitys: (Activitya), (Activityb) and (Activityc) From Activitya to Activityb I do the following: val intent = Intent(this, ActivityB::class.java)…
android android-studio android-activity kotlin android-intentasked 5 years, 5 months ago Carlos Henrique 9 -
-1
votes2
answers2782
viewsSend a message via Whatsapp to a specific contact
I’m trying to send a text message via Whatsapp to a previously selected number. The contact chat opens, but the message contained in Extras does not appear in the text box. See: var uri =…
-
-1
votes1
answer598
viewsButton to open a new Activity is returning to the initial Activity
In my application I made a login screen and put a button to authenticate the user through Facebook, after logging in the main screen and on this screen has a button that calls a new Activity. So far…
-
-1
votes1
answer63
viewsTransition of activities with serializable classes (getIntent problem)
I have a problem while passing a serializable class. I insert it into the Bundle as follows. public void voltarMain(View view) { Intent myIntent = new Intent(getApplicationContext(),…
android android-activity nullpointerexception serialization android-intentasked 4 years, 10 months ago Filipe Torres 1