How to start developing for Android. A selection of free courses on mobile application development: lessons and step-by-step guides Lessons in programming for creating mobile applications

Hello. Today I came across a post about an Android programming course on the Linux Foundation website, and along with it, a lot of comments about what I would like to see and the translation of these lessons. Since I now, after four years of development for microcontrollers, began to study programming for mobile devices, then in parallel I decided to translate the first part of the lesson.

Android programming for beginners. Part 1
Android smartphones and tablets are increasingly found in our bags and pockets, and Android programming is also becoming more popular. It's a great development platform - the API is well documented and easy to use, and it's just fun to build something you can run on your smartphone. Initially, you can do without it by creating and testing the code using an emulator on your Linux PC. The first of two parts of this introduction explains how to create a simple timer app and gives you an introduction to the Android API. The course assumes a basic understanding of Java, XML and programming technologies, but nevertheless feel free to try it even if you have a very vague idea about it.
Getting Started and Development Environment
A little about versions: latest version Android is 4.2 (Jelly Bean), but as you can see from this diagram, it's not widely used yet. It is best to start developing for one of the versions: 4.0 (Ice Cream Sandwich) or 2.3 (Gingerbeard), especially considering that android versions support backwards compatibility (i.e. your code for version 2.3 will work on 4.2), and applications developed for a later version will not always work on the old one. The code shown here should work on versions 4.0 and 2.3.
The easiest way to get a development environment is to install the Android Bundle, which can be downloaded from . You will also need JDK 6 (not just JRE). Don't forget that Android is not compatible with gcj. If you are already using Eclipse or another IDE, then you can try customizing it for Android. How to do this is described. Now create a project named Countdown using Eclipse , or from the command line . I set BuildSDK 4.0.3 and minimum SDK 2.2 in settings, and (in Eclipse) used the BlankActivity template.
My first Android project: interface
Our first Android program will be a timer that counts down from 10 seconds after pressing a button. Before writing code, we need to create an interface - what the user will see when running our application. You need to open res/layout/activity_countdown.xml and create an XML template - using the Eclipse editor or a text/XML editor, enter the following: