Describe three common use cases for using an Intent.
1 Answer
1
the three common use cases to use the intent are -
using for activity - this can be triggered by calling startActivity() method which invokes the activity we want to move in.
using for service - this can be used to trigger a service by using intent. to use this you need to call startService() method.
using for broadcasting- Intents can be used to broadcast message for example by using sendBroadcast() or sendStickyBroadcast().
Write Your Answer
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy.