Intents in Android The official Documentation defines intents as messaging objects that we can use to request an action from another app component. Intents facilitate communication between components like sending data between activities and so on. We can use intents to Start an activity; here we create an intent object passing the activity name and the necessary data. We then start a new instance of an Activity by passing an Intent to startActivity(). Sending Broadcasts; A broadcast is a message that any app on you can receive. The system delivers various broadcasts for system events like plugin in your earphones. The created intent object here is passed to sendBroadcast() or sendOrderedBroadcast(). Start a service; Services are background tasks that run without providing an interface like activities.As of android 5.0 (lollipop)We use the JobScheduler to start services. Anything earlier than that uses methods from the service class...
Search This Blog
tech With Dave
Posts
Featured
Latest Posts
KOTLIN COROUTINES FOR ANDROID DEVELOPMENT
- Get link
- X
- Other Apps