Yahoo India Web Search

Search results

  1. Jul 5, 2011 · 499. An Intent is an "intention" to perform an action; in other words, a messaging object you can use to request an action from another app component. An Intent is basically a message to say you did or want something to happen. Depending on the intent, apps or the OS might be listening for it and will react accordingly.

  2. Current responses are great but a more comprehensive answer is needed for beginners. There are 3 different ways to start a new activity in Android, and they all use the Intent class; Intent | Android Developers. Using the onClick attribute of the Button. (Beginner) Assigning an OnClickListener() via an anonymous class.

  3. Jun 9, 2010 · From Android Developer web site: Caution: If there are no apps on the device that can receive the implicit intent, your app will crash when it calls startActivity(). To first verify that an app exists to receive the intent, call resolveActivity() on your Intent object.

  4. Jan 26, 2010 · If you have a singleton class (fx Service) acting as gateway to your model layer anyway, it can be solved by having a variable in that class with getters and setters for it. In Activity 1: Intent intent = new Intent(getApplicationContext(), Activity2.class); service.setSavedOrder(order);

  5. Nov 22, 2015 · How can I send data from one activity (intent) to another? I use this code to send data: Intent i=new Intent(context,SendMessage.class); i.putExtra("id", user ...

  6. I want an Intent to take control you directly to WhatsApp. So the moment the user clicks on the button, the Intent is supposed to take you to WhatsApp. This is the code I wrote after following a few

  7. Apr 18, 2010 · Although the current answers are great, none of them did quite what I was looking for, I wanted to open the maps app only, add a name for each of the source location and destination, using the geo URI scheme wouldn't work for me at all and the maps web link didn't have labels so I came up with this solution, which is essentially an amalgamation of the other solutions and comments made here, hopefully it's helpful to others viewing this question.

  8. 2. Alternatively you can also open the intent from your app in the other app with: Intent intent = new Intent(Intent.ACTION_VIEW, uri); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); startActivity(intent); where uri is the deeplink to the other app. answered Jan 10, 2016 at 7:08. electrobabe. 1,627 19 17.

  9. As per Android reference: Sending data between activities. When sending data via an intent, you should be careful to limit the data size to a few KB. Sending too much data can cause the system to throw a TransactionTooLargeException exception. Also its advisable to use Bundle class to set primitives known to the OS on Intent objects.

  10. Aug 27, 2012 · This is exactly the same as using: Intent in = new Intent(this, SecondActivity.class); You can't do this inside an OnClickListener because the first parameter needs to be a Context (or a class that extends Context, like Activity). If you want to create an explicit Intent you can also use this: Intent in = new Intent().setClassName("com ...

  1. Searches related to What is intent in Android?

    what is activity in android
    android manifest file
  1. People also search for