Chapter    3

Programming in Android Studio

This chapter covers how to write and generate code in Android Studio. Android Studio uses its knowledge of object-oriented programming to generate extremely relevant and well-formed code. Features covered in this chapter include overriding methods, surrounding statements with Java blocks, using templates to insert code, using auto-completion, commenting code, and moving code. If your goal in reading this book is to master Android Studio, you will want to pay particularly close attention to this chapter because the tools and techniques described herein will have the greatest effect on your programming productivity.

Let’s get started. If the HelloWorld app you created in Chapter 1 is not already open, ...

Get Learn Android Studio: Build Android Apps Quickly and Effectively 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.