Questions tagged as 'android-intent'

1
answer

You can get text from a bluetooth keyboard or scanner

I have a scanner that connects via Bluetooth but I need to capture what it scans when the screen is off. Can it be done with a BroadcastReceiver? or some idea of how to start     
asked by 20.08.2016 / 00:15
1
answer

Passing onClick parameters of btn Android

I have this class that loads a WebView with a constructor where I must pass a String that is the link to the page. public class amazonWeb extends AppCompatActivity { String url; public amazonWeb(String url){ super(); this.url = url;...
asked by 31.05.2017 / 23:35
1
answer

Validate the existence of a URI before launching the intent on Android

Normally I use the try-catch to detect if the process of launching an Intent has been successful or not. For example to open the equalizer panel of the system configuration, there are models that have it and others the manufacturer has...
asked by 18.05.2017 / 18:35
1
answer

Can an Activity be saved in a preference?

I'm creating an App, I've already finished it, but I start thinking as a user if I'm browsing and suddenly I'm forced to close the App or minimize it, it starts again with the activity that is predetermined in manifest de android ,...
asked by 06.01.2017 / 23:58
3
answers

return to the main activity in navigation draw

Good morning. When I launch my application, the first screen that shows me is the main container of the fragments that I have in the navigation draw. When selecting the items that take me to the different fragments I could not find a way to retu...
asked by 02.10.2017 / 16:28
2
answers

Sending String data between Activities, using them on onClick ()

I've been doing the sending of a string data to another activity is called a caculate and from that to history but it has not worked for me can someone tell me what the inconvenience will be. Thanks! the variables are declared String d; Strin...
asked by 21.09.2018 / 18:32
3
answers

Open a new Activity by clicking on a Cardview

I have a Recyclerview and a Cardview the problem is that I want to open a new activity by selecting from the 6 different items that the list shows, I have obtained the position of the items when I press but when I try to implement...
asked by 21.12.2016 / 20:03
3
answers

Android - Change Switch with Intents to For with Intents

I have a switch with many cases and same code and I want to pass it to a for to reduce code but it gives me a programming error. How can I do it? @Override public void onItemClick(AdapterView<?> parent, View view, int positio...
asked by 26.04.2018 / 19:33
2
answers

"Private mode" storage of Photos

Well I want to take a Photo and save it without the photo being shown from the gallery. this is the code I use: File MiFotoTemporal = new File(RUTAFOTO+ NOMBREFOTO); MiFotoTemporal.createNewFile(); Uri uri = Uri.fromFile(MiFotoTemporal); Inten...
asked by 11.10.2017 / 19:04
1
answer

Open app when detecting a geo Uri on Android, get values

How can you make the app open? by clicking on a link from the web browser, chrome, firefox ... a link of type geo:... Geo URI scheme geo:37.786971,-122.399677 What I have: Capture when the user clicks on a geo:......
asked by 14.11.2017 / 17:28