Questions tagged as 'android-intent'

1
answer

Run another application as soon as it receives an SMS

I need to call an application already installed on my phone once I receive an SMS from a certain number. All the code in this application is ready, but I do not know how to call it from that message. Should I use Intent or something...
asked by 19.05.2014 / 18:05
1
answer

Intent 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 did not work     
asked by 03.04.2017 / 17:03
1
answer

How to prevent a new instance of Activity from being created at each Intent

In my application I have a BroadCast that receives push notifications in background , this push currently opens an activity with the information of a request to be accepted, what happens is that if the same instant is...
asked by 28.08.2016 / 22:24
1
answer

How do I get my app to appear in the (share via) menu of android?

How do I get my app to appear on this screen?     
asked by 09.07.2018 / 20:19
1
answer

Hyperlink that when clicked open a certain application and if it is not installed, open its link in Google Play?

The application in this case is the Telegram and it works with a simple system of reference to users, channels, groups. I would like that by clicking on the hyperlink (clickable textView) that is with the @Fulano user link, it would open...
asked by 16.03.2017 / 23:24
1
answer

Error clicking a button to access site

I tried to make the user click on a particular button, it was directed to a website, in this case google, but it did not work. The app starts normally, but when you click the button the app stops at nothing: Thisappearsintheeventlog:NullP...
asked by 14.01.2017 / 01:04
1
answer

I need to create an intent within another intent

I created an APP Widget with 3 buttons. This section of code assigns the button functions: for (int i = 0; i < N; i++) { int appWidgetId = appWidgetIds[i]; RemoteViews views = new RemoteViews(context.getPackageName(), R.l...
asked by 19.05.2017 / 19:32
2
answers

Call another Layout

When placing email and password the app should call another layout. I just can not do this ... Intent intent = new Intent(this, R.layout.activity_estado); startActivity(intent); Report the following error: Can not resolve constructor 'Inten...
asked by 09.01.2017 / 16:34
1
answer

How do I get ActivitB Intent values and move to ActivityA in a List?

I have a ActivityA that is the main, it contains a ListView and a botão , and I have a ActivityB that contains two EditText and a button. When start app starts in ActivityA with empty list, pres...
asked by 14.04.2017 / 16:17
2
answers

Capture the moment the cell phone screen was turned on and when it was deleted

Hello!    I am building a project similar to an alarm clock but I am having some difficulties trying to use the broadcastreceiver class. Problem:     I want to capture the date and the exact time that the cell phone screen was lit, that is, if t...
asked by 31.03.2018 / 15:49