Android
Unix | Assembly language | Mathematics | Web development | I2P |
---|---|---|---|---|
GhostBSD | Assembly Programming Tutorial | Statistics | Django for Beginners | MuWire |
GUI | Artificial intelligence | Artificial neural network | Machine learning | Messenger |
Tkinter | Artificial intelligence | Artificial neural network | Machine Learning Mastery with Python | Session |
It's one of Linux distributiones.
On 7 May 2019, Google announced that the Kotlin programming language is now its preferred language for Android app developers. Since the release of Android Studio 3.0 in October 2017, Kotlin has been included as an alternative to the standard Java compiler. The Android Kotlin compiler targets Java 6 by default, but lets the programmer choose between Java 8 to 13, for optimization.
How to Install Android Studio
How to Install Android Studio on Ubuntu 20.04
Install desired Java version. For example in this case we will go with Java openjdk-11-jdk:
$ sudo apt install openjdk-11-jdk
Next, open a terminal window and proceed with installation of Android Studio by using the snap command:
$ sudo snap install android-studio --classic
This may take some time so be patient.
You can start the Android Studio using the bellow command:
$ android-studio
- How to Install Android Studio on Ubuntu 20.04 Focal Fossa Linux
05 May 2020
https://linuxconfig.org/how-to-install-android-studio-on-ubuntu-20-04-focal-fossa-linux
Build your first app
https://developer.android.com/training/basics/firstapp
Overview
This section describes how to build a simple Android app. First, you learn how to create a "Hello, World!" project with Android Studio and run it. Then, you create a new interface for the app that takes user input and switches to a new screen in the app to display it.
Before you start, there are two fundamental concepts that you need to understand about Android apps: how they provide multiple entry points, and how they adapt to different devices.
With these two basic concepts in mind, proceed to the next lesson to build your first app!
Apps provide multiple entry points
Android apps are built as a combination of components that can be invoked individually. For example, an activity is a type of app component that provides a user interface (UI).
The "main" activity starts when the user taps your app's icon. You can also direct the user to an activity from elsewhere, such as from a notification or even from a different app.
Other components, such as broadcast receivers and services, allow your app to perform background tasks without a UI.
After you build your first app, you can learn more about the other app components at Application fundamentals.
Apps adapt to different devices
Android allows you to provide different resources for different devices. For example, you can create different layouts for different screen sizes. The system determines which layout to use based on the screen size of the current device.
If any of your app's features need specific hardware, such as a camera, you can query at runtime whether the device has that hardware or not, and then disable the corresponding features if it doesn't. You can specify that your app requires certain hardware so that Google Play won't allow the app to be installed on devices without them.
After you build your first app, learn more about device configurations at Device compatibility overview.
Create an Android project
Run your app
https://codelabs.developers.google.com/codelabs/build-your-first-android-app/#3
See also