Apps development for Android step by step

Lessons related to MainActivity

Lesson 0.9: Android app life from onCreate to onDestroy – what happens when we start app (and what are “activities”)

Android apps are built from activities. Activity is a set of actions visible on the screen (usually it takes whole screen, but it could be in a window). The app could have many activities. For instance a music player has a main menu activity, album list activity, song play activity etc. So activity is a combination of user interface and some functions.

Read More

Lesson 0.8: Additional information about project structure in Android Studio: java and resources folders

Let’s look again at the project tree (if you can’t see it, just click Project tab on the left of the screen).  Previously we were navigating directly to activity_main.xml file, but now we try to look also on other folders and files. Don’t worry only on a few of them, most we would never have to touch.

Read More