CHAPTER 5 ■ IOT PATTERNS: REALTIME CLIENTS
Click Finish. Android Studio will create quite a few folders and files , as shown in
Figure 5-11. These are the most important ones:
- app > manifests > AndroidManifest.xml —A mandatory file
required by the system that contains application information,
such as required permissions, screens and services, etc. Most of
the elements in this file are system-generated, but you can update
it manually as well. - app > java > . - package-hierarchy —Contains all Java
code and unit tests. - app > res > layout > *.xml —Contains layout XMLs for all
screens. Determines how each screen will look, fonts, colors,
position, etc. You can access any layout XML in Java using the
auto-generated Java class R, such as R.layout.activity_main.
To access an individual element in layout XML, you can use the
syntax R.id.updated_field.
Figure 5-10. Activity customization screen