April 2019
Beginner to intermediate
698 pages
15h 15m
English
The best way to learn about detecting and responding to devices and their varying attributes (screens, orientations, and so on) is to make a simple app. Let's do this by going through the following steps:
Device Detection. Leave all the other settings as their defaults.activity_main.xml file in the Design tab and delete the default Hello world! TextView.detectDevice. We will code this function in a minute.txtOrientation and txtResolution, respectively. Read now
Unlock full access