Questions tagged as 'intent'

1
answer

onclick on dynamic button causes error "Can not resolve constructor Intent"

I'm trying to create a dynamic button, and put the click function on it. Button btnJogarNovamente; btnJogarNovamente = new Button(this); btnJogarNovamente.setLayoutParams(new FrameLayout.LayoutParams(FrameLayout.LayoutParams.WRAP_CONTENT, Fram...
asked by 17.07.2015 / 15:38
1
answer

Dialog appears only after it has been called

Hello In my application, I have a Button , which when clicked, opens the device camera for the user to take a photo: @Override public void onClick(View v) { //dialog da minha aplicação final ProgressDialog dialog = MobileUtils...
asked by 10.12.2015 / 19:47
1
answer

Why is BroadcastReceiver called several times and always with the same "extra"?

I have an application that sends sms to android, and a Broadcast to catch the errors if I can not send to the recipient.  If you can not send a message, I will capture the object and save it to the database with the type of error that occurred,...
asked by 27.02.2016 / 01:18
1
answer

How to recover several actions from one activity to another?

How to send url from one activity to another with different click actions (multiple buttons)? I tried to use intent.putextra but I can not resort to the urls of the other buttons, in the case I am using two activities the second this with...
asked by 14.08.2017 / 05:27
3
answers

Android how to remove the "Photos" option from the options selector and leave only "Camera" and "Gallery"

I would like to know how to remove the option "Photos" from the options selector and leave only the "Camera" and "Gallery" options. Because it does not work, it is unnecessary since the "Gallery" does the same and better. Here is my code and the...
asked by 31.01.2016 / 02:11
0
answers

Filter in listview takes the item from the wrong position

In the Listview without using the filter when it clicks it shows the correct data in the other activity, but when it filters an item it changes the position and passes another ID the data has nothing to do with the item that passes to the other...
asked by 01.12.2016 / 19:40
0
answers

Refresh Main via an IntentService [closed]

I have an application that works together with GCM (Google Cloud Messages), which queries the server and when there is news sends a notification to the user. I need to update my MainActivity listView, what would be the best way to do this?...
asked by 06.07.2015 / 14:38
2
answers

Passing parameters from one Activity to another

I need to pass the name of a selected product on ListView to be displayed on a EditText . I am currently on the screen that the user informs the customer and then opens the screen of new request, on this screen I have a button to...
asked by 09.04.2014 / 20:14
2
answers

How can I share an Image by Mail, Bluetooth, etc?

I have a ImageView that has a drawable that was edited while using the app, wanted to take this final version of the edition and send it via E-mail, Bluetooth, etc. The way I'm doing it, when I send it by email for example, I get infor...
asked by 17.12.2015 / 14:58
2
answers

Pass product list to another Activity [duplicate]

Hello, I'm learning and I wanted your suggestion, in a simple way at the beginning, of how to make this transition of products to another Activity. The application I'm developing it loads a list of products from a WebService, so in the applica...
asked by 20.09.2017 / 22:27