Most voted "intent" questions
43 questions
Sort by count of
-
6
votes1
answer393
viewsonClick on dynamic button causes error "Cannot resolve constructor Intent"
I’m trying to create a dynamic button, and in it put the click function. Button btnJogarNovamente; btnJogarNovamente = new Button(this); btnJogarNovamente.setLayoutParams(new…
-
3
votes1
answer87
viewsDialog appears only after it has been called
Hello! In my application, I have a Button, that when clicked, opens the device’s camera so the user can take a photo: @Override public void onClick(View v) { //dialog da minha aplicação final…
-
2
votes0
answers54
viewsUpdate Main via an Intentservice
I have an application that works together with GCM (Google Cloud Messages), which consults the server and when there is news sends a notification to the user. I need to update my Mainactivity…
-
2
votes3
answers96
viewsAndroid how to remove "Photos" option from the options selector and leave only "Camera" and "Gallery" options
I would like to know how to remove the option "Photos" from the options selector and leave only the options "Camera" and "Gallery". As well as not working, it is unnecessary since the "Gallery" does…
-
2
votes1
answer280
viewsWhy is Broadcastreceiver called several times and always with the same "extra"?
I have an app that sends text messages on android, and a Broadcast to capture errors if I can’t send to the recipient. If you cannot send a message, I capture the object and write to the database…
-
2
votes0
answers168
viewsFilter in listview takes item from wrong position
In Listview without using the filter when you click it shows the correct data in the other Activity, but when you filter one item it changes the position and passes another ID the data has nothing…
-
2
votes1
answer299
viewsHow to recover several actions from one Active to another?
How do I send an Activity url to another with different click actions (multiple buttons)? I tried to use intent.putextra but I can’t recur the urls of the other buttons, in case I’m using two…
-
1
votes2
answers209
viewsIs there a way to filter contacts by "organization" in the agenda of Android contacts, when triggered through other activity?
In one app for Android, I intend to open the contacts agenda from another Activity via Intent, but I would like to see only contacts that bring a specific value in the "Organization" field. There is…
-
1
votes2
answers3604
viewsPassing parameters from one Activity to another
I need to pass the name of a product selected in a ListView to be presented in a EditText. I am currently on the screen that the user informs the customer and then opens the screen of new order, on…
-
1
votes0
answers198
viewsjava.lang.Runtimeexception: Unable to start Activity
My logcat is displaying a pointer error to start the activity Ouvir I can see but I didn’t find the error. Exiting these messages when I run the application: 11-27 22:09:40.631:…
-
1
votes1
answer1744
viewsOpen Android app with link
I want to know, Cerberus, for Android, can open your application when we call a certain number? For those who do not know Cerberus, it is an anti-theft application, so it hides its icon so that…
-
1
votes0
answers532
viewsMake the application wait for the answer of a Broadcastreceiver
I need to send a list of SMS messages. The problem is that when there are many, they seem to jam the sending, locking the function. So I’d like to send one at a time. I’m trying with the class…
-
1
votes1
answer84
viewsShow an application A within the Fragment of another application B
In my app, when the user clicks Add Contact I call the Contacts app using a Intent. But instead, it would be possible to open a Fragment whose content would be the Contacts app itself, i.e., show…
-
1
votes2
answers75
viewsHow can I share an image via Mail, Bluetooth, etc?
I own a ImageView that has a drawable that was edited during the use of the app, wanted to take this final edition and send it by Email, Bluetooth, etc.. The way I’m doing, when I send by email for…
-
1
votes1
answer2550
viewsGrab photo from android gallery directly
I’ve searched here and other places on the Internet, but I haven’t been able to locate anything like it. Is it possible to restrict that photos selected by a user only come from the gallery? Ex:…
-
1
votes0
answers170
viewsIntent Open Facebook
How do I open facebook on a given page. Open mainly by the application if it is not installed open in the mobile browsing. Can anyone help me?
-
1
votes1
answer112
views"Unfortunately, *my app* has stopped" in the data pass to Activity
I’m making an app that formats bibliographic references according to ABNT, but there’s been an error to pass the data typed by the user to the next activity, that displays the formatted data. Follow…
-
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
votes1
answer1160
views -
1
votes2
answers1278
viewsPass product list to another Activity
Hello, I am learning and I wanted the suggestion of you, in a simple way at first, how to make this passage of products to another Activity. The application I’m developing it loads a list of…
-
1
votes1
answer1541
viewsHow to open an Activity via a button
I’m having a problem opening my Activity on various forums and I haven’t found the answer. I have the Activity "Teladelogin" and the Activity "Feed", and I have tried to open in various ways, here…
-
0
votes2
answers162
viewsAndroid getIntent error
Hello, I have an application that I need to send data of a Activity to another Activity. I tested several ways however all failed, but in another project one code worked normally, but in my current…
-
0
votes1
answer826
viewsPass object for error parameter - Android Studio
I am trying to pass an object per parameter, but an error occurs on the line "it.putExtra("tag", obj);": Cannot resolve method (java.lang.String, my.minhaClasse package) Follow the code Obj obj =…
-
0
votes1
answer1859
viewsIntent to call FACEBOOK
The following is this shoot an Internet and the same call the Facebook app. I managed to send email Intent sendIntent = new Intent(Intent.ACTION_VIEW); sendIntent.setType("plain/text");…
-
0
votes1
answer215
viewsProblem with Arraylist values passed by Intent
I am having trouble recovering all values of selected items from a list that are passed by Intent, as the result shows the last product from the list. I’ve tried everything, but I don’t understand…
-
0
votes1
answer1930
viewsOpen the MEGA app when a website link is clicked on the webview
I am developing an app for my site and I want that when a certain user clicks on the download link, which in this case is in the mega, open the mega APP automatically, as well as is done in Chrome…
-
0
votes0
answers392
viewsHow to open a specific folder using Android using Intent
My application records videos in Pictures/Mycamera folder. There is some way to open, the default Android gallery, only in this folder? I used this code and it didn’t work. Intent intent = new…
-
0
votes1
answer165
viewsAndroid - How to transport picture information from one class to another?
Hello, I need to transport the contents of an Imageview from one class to another, I tried by Intent, but I couldn’t get through it. I have a Drawable that was edited in Imageview of the first class…
-
0
votes1
answer115
viewsPass an Activity company id to another and use in a database connection
I am passing a user id through an Internet and intend to use this id in the second App. Even I believe it’s correct Take a look at the code: I have to go from Activity to another user id:…
-
0
votes0
answers35
viewsIntent Kotlin receiving null value
I have the following Intent of an Activity: val intent = Intent(this, FormCadastroUsuario::class.java) intent.putExtra("email", email) startActivity(intent) And to receive in another Activity, I…
-
0
votes1
answer339
viewsUse values passed from one Activity to another
Guys, I’m having a hard time with something. I created a list that shows contact names, but these contacts have more attributes, such as date and number. I made another screen for when the person…
-
0
votes1
answer242
viewsLose value in getIntent()
My problem is this... I have a routine of notifications that the user click on the notification screen, open a new Activity. In this new Activity I show some information that I search in the…
android android-activity intent broadcastreceiver android-alarmmanagerasked 8 years, 4 months ago Joel Messias Do Nascimento 103 -
0
votes2
answers667
viewsGo back to another Activity and pass parameters
I’m having a problem adding items to a ListView, have a activity main calling another to add the met package com.example.jonathan.agendaonline; import android.content.Intent; import…
-
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
answer49
viewsHow to display a result list in an Activity?
I have a very limited knowledge in programming and am starting Android now. I started developing an Android project for physical therapy. In this project, physical therapists can register and log in…
-
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
answer430
viewsObject list for another Activity
I’m trying to save a list of objects with sharedpreference and gson. And the idea is that I can upload this list to a Listview, I ran the tests and when it goes to listview it only loads the…
-
0
votes1
answer16
viewsSend data from one Activity to another
Good afternoon, I’ve been trying to pass an Edittext from one Activity to another, but I’m not getting it. Activity A. listaViewLivros.setOnItemClickListener(new AdapterView.OnItemClickListener() {…
-
0
votes1
answer70
viewsHow to call a new Activity through a conditional structure that tests the connection?
I’m making a Webview app. It’s pretty simple: test the connection if it actually loads the site; fake case loads another Activity (other than the main). While there is connection, the app works…
-
-1
votes2
answers3642
viewsHow to call explicitly and implicitly an Activity on Android?
I would like to know how and when to call explicitly and implicitly an Activity(activity)? If I want to call an Activity(activity), an internal screen of my app and do a standard processing, how to…
-
-1
votes1
answer1133
viewsopen external webview link
I have a webview app that is made 100% of webview, but I want to open some links outside the app, for example, the links that start with Intent, in case I want to put a button on the site that opens…
-
-1
votes1
answer7399
viewsHow to resolve java.lang.Runtimeexception error: android.os.Transactiontoolargeexception
Guys I’m having this error when I try to share a bitmap via Intent on Android 7.0, I’ve researched enough and could not solve, so I saw Google itself has the recommendation to avoid the error…
-
-1
votes1
answer34
viewsDecision coming straight to Else
I want to call another screen from the Intent, but the decision is going straight to Else. Can anyone help? package com.example.login; import android.annotation.SuppressLint; import…