© Peter Späth 2018
Peter SpäthPro Android with Kotlinhttps://doi.org/10.1007/978-1-4842-3820-2_3

3. Activities

Peter Späth1 
(1)
Leipzig, Germany
 

Activities represent user interface entry points of your app . Any app that needs to interact functionally with the user in a direct way, by letting the user enter things or telling the user graphically about the functional state of an app, will expose at least one activity to the system. I say functionally because telling the user about events can also happen via notifications through toasts or the status bar, for which an activity is not needed.

Apps can have zero, one, or more activities, and they get started in one of two ways:
  • The main activity, as declared inside AndroidManifest.xml, gets started by ...

Get Pro Android with Kotlin: Developing Modern Mobile Apps now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.