Learn Android App Development course in Android Studio. Android App Development in Android Studio. Java plus Android Edition for Beginners. The goal of this book is to teach the fundamentals of Android app development using the Java programming language in Android Studio. At the outset of this book, I’m assuming you have no prior expertise with Java® or Android development. I’ll go down every aspect of app development in layman’s terms. After reading this book, you will be able to start from scratch and transform your ideas into your own apps. Although a single book cannot make you an expert on a platform or programming language, this book will provide you with a solid foundation and hands-on experience in Android app development.
In the past, Android apps were created utilizing the Eclipse integrated development environment (IDE) and the Android Development Tools (ADT) plugin. However, in 2014, Google made Android Studio the official IDE for Android app development, and it quickly became the industry standard. Android Studio 2.2 is the most recent stable release, and it will be utilized in this book.
Before we begin our programming journey, let’s review the foundations of the Android operating system and associated ideas.
What Are Android Apps and How Do They Work?
On diverse platforms, the applications execute in a variety of ways. Machine code, which runs directly on the microprocessor, may be used to write the lowest level software. Operating systems are needed because writing sophisticated programs in machine code is difficult. Between the application software and the hardware, operating systems offer a communication and control layer. If we want to create a native program that will operate on a certain piece of hardware or operating system, we’ll need to use a compiler and linker. The compiler and linker take the source code and turn it into an executable file that the operating system can use.
If we wish to create an application in the C++ programming language, for example, we must use the compilation/linking procedure.
The speed of native apps is their primary benefit. The drawback is that it is incompatible with different platforms. We can’t execute a native Windows application on Ubuntu, for example, and vice versa. To get around this constraint, the virtual machine idea was created. A virtual machine is software that runs on the operating system and gives the developer an abstraction. On top of the virtual computer, the application software runs.
GETTING YOUR DEVELOPMENT SETTINGS IN ORDER
We’ll utilise Android Studio, which is the official IDE for developing Android apps; as a result, we’ll need to install it along with the necessary plugins.
1. Download and install Android Studio
The Java Runtime Environment is used by Android Studio (JRE). JRE is available for Windows, Mac OS X, and Linux. To install Android Studio, we must follow the procedures outlined below, regardless of our OS system:
Java installation: Oracle Inc. is the company that created Java. Java Runtime Environment (JRE) and Java Software Development Kit (JSDK) are the two main Java packages (JDK).
JDK is used to build Java software, whereas JRE is used to run Java applications written in the Java programming language. Because we will not be developing Java apps here, installing JRE is sufficient for running Android Studio.
To obtain the JRE, go to the following URL: http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html. The download options will be provided to you. Simply choose the version that is compatible with your operating system, download it, and install it as normal (Next, next,…).
2. Setup Android Studio and the Android SDK
The Android Software Development Kit includes Android Studio (SDK). Please go to the following link to access the official download site: