hello everyone I want to know what happens when we click on app icon of any particular app.How OS launch that app?.Please describe it.
Asked
Active
Viewed 452 times
-6
-
The home screen calls `startActivity()` on an explicit `Intent` identifying the activity that the user selected. – CommonsWare Mar 21 '17 at 13:04
-
@CommonsWare which home screen... – DkThakur Mar 21 '17 at 13:06
-
Any app, such as a home screen/launcher, that wants to start an activity, will call `startActivity()` or related methods (e.g., `startActivityForResult()`). – CommonsWare Mar 21 '17 at 13:09
1 Answers
1
When you click on app icon android package manager will check manifest file and find launcher activity which has intent filter for that and will search for action as Main and category as default. When it find that detail it will launch that main activity.

Janardhan R
- 1,541
- 12
- 15