How are apps launched on smartphones?

A

AC Question

I tried to search online a lot but I am not able to find anything that explains what happens when app icon is pressed. What happens next when app is launched? I am referring to source code and not any specific OS.

(I have also asked the same question on Quora but no answer yet :( )