Inter-Component Communication Methods
Inter-component communication (ICC) methods are Android system methods that launches another Android component, e.g. another activity or service. ICC methods use either Intents or Unified Resource Identifiers (URIs) to identify the target component.
Transition Type | APIs of Context class |
---|---|
Launch activity | startActivity(Intent) startActivity(Intent, Bundle) startActivityForResult(Intent, int) startActivityForResult(Intent, int, Bundle) startActivityFromChild(Activity, Intent, int, Bundle) startActivityFromChild(Activity, Intent, int) startActivityFromFragment(Fragment, Intent, int) startActivityFromFragment(Fragment, Intent, int, Bundle) startActivityIfNeeded(Intent,int) startActivityIfNeeded(Intent, int, Bundle) startActivities(Intent[]) startActivities(Intent[], Bundle) |
Launch service | startService(Intent) startForegroundService(Intent) |
Send broadcast | sendBroadcast(Intent) sendBroadcast(Intent, String) sendBroadcastAsUser(Intent,UserHandle) sendBroadcastAsUser(Intent, UserHandle,String) |