Android apps are a big part of the Android ecosystem, and they’re great for users who want to get their work done quickly. But if you want to run Android apps on Linux, you’ll need to do a bit of work. Here’s how to get started. First, you need to install the Android SDK. This is a software development kit that includes tools for building and testing Android apps. You can download the SDK from Google’s website or from your favorite software repository. Once you have the SDK installed, you can start setting up your development environment. The first thing you need is an Android device or emulator. You can use an actual Android device or a virtual machine running on your computer. If you have an emulator, make sure that it has the latest version of the Android OS installed. Next, set up your development environment by installing the Java JDK and theAndroid NDK (if necessary). The Java JDK is needed for developing applications using Java code, while theAndroid NDK provides support for building native applications using C and Java code together. You can install these tools by following instructions from Oracle or by using your favorite package manager (such as apt-get). Once your development environment is set up, it’s time to start coding! In order to develop an app for Android, you first need to create a project in Eclipse IDE or IntelliJ IDEA. A project contains all of the files and settings needed to build and test an app. To create a new project in Eclipse IDE: 1) open Eclipse IDE; 2) click File > New > Project; 3) select android from Project Type dropdown list; 4) enter project name in Project Name field and click Finish button; 5) select android application module in Package field; 6) click Finish button again; 7) open MainActivity class file located under src/main/java folder and enter following code ..

Android Apps On Linux

Being able to run Android apps on Linux gives you more choice—and then some. At the time of writing, there are nearly 3.5 million apps on the Google Play Store.

Linux is extremely well-supported by the development community. No matter what you’re looking for, there’s likely to be a program for that task. But if you’ve ever used an Android app and wished there was a version for your laptop or desktop, you’ll welcome the ability to run the exact same Android app on your full-sized screen.

You can develop and debug Android apps on Linux, of course. And with a correctly installed and configured development environment you could run Android apps from third parties. But most people aren’t developers. What they’re looking for is simplicity. They don’t want a wrestling match to set up a toolchain they’re never going to use, to then sideload APK files that are downloaded from unauthorized sources. Why can’t they just install their favorite Android game, as simply as they do on their smartphone?

Well, now you can do just that. Anbox is an “Android in a box” application that provides a captive Android environment. The version of Android is the latest version from the Android Open Source Project.

This isn’t an emulation. It really is running Android, albeit containerized in a way that means it can’t directly access your hardware or data. And because it really is Android, any Android app should work in Anbox. However, if the app or game requires access to GPS or accelerometers or other smartphone data sources you’re not going to get the same experience on a desktop computer.

RELATED: The Best Android Apps You Should be Using On Your Chromebook

Installing and Running Anbox

Anbox is provided as a snap package, so the installation command is the same for all distributions. If you don’t have snap installed check out our article on snap and its common commands.

And that’s it. When the installation has finished you’re able to start Anbox. Press the “Super” key—usually located between the left “Ctrl” and “Shift” keys—and type “anbox” in the GNOME search field. When you see the Anbox icon, click it.

The main Anbox window is already populated with some common Android apps, such as Calendar and Calculator.

Clicking one of the icons will open the app, just like it opens on your smartphone. A single click emulates a finger tap on a mobile device. A single click on the Calculator icon, for example, wil launch the familiar Android Calculator.

Clicking on the cogged Settings icon opens the Android settings app. This has all of the usual categories. You can scroll vertically in apps using the scroll wheel of your mouse. In apps that support sideways scrolling, you can left-click and hold the button down, then move the mouse right or left.

Installing Google Play

Anbox cannot supply the Google Play Store application. Google will only permit certified devices to ship with their applications. That goes for virtual devices too. You can manually install it yourself if you want, of course.

The process we need to follow is:

Install some Linux tools that will be required during the installation Download an installation script from GitHub Run the script Set some permissions within Anbox

On Ubuntu, the command to install the tools is:

On Manjaro or another Arch distro, use:

On Fedora you need to type:

To download the installation script—on all distributions—paste this into a terminal window. “Ctrl+Shift+V” is the shortcut for paste.

The download will only take a few moments. Once it’s complete, we need to make the script executable. We’ll use chmod:

And now we can run the script.

This will take several minutes to run. You’ll see multiple progress bars during the installation. There are also long pauses when nothing seems to be happening. Be patient and the script will eventually terminate.

When the installation has finished, open Anbox. You’ll see the Google Play Store icon has been added to the list of apps. But don’t click it yet.

Instead, click the Settings icon, and click on “Apps.”

Scroll down until you can see the “Google Play Services” and “Google Play Store” entries.

Click on the “Google Play Services” entry, scroll until you see the “Permissions” entry, and click it.

Set all permissions to “On.”

Go back to the “Apps” listing, click on Google Play Store > Permissions, and set all of the permissions to “On.”

Close the Settings app and click on the Google Play store icon. You’ll see the Google Play welcome screen. This means the Google Play Store app is happily communicating with Google, just as though it were on a physical Android device.

Click the “Sign In” button.

Enter your Google user name or smartphone number, and click the “Next” button.

Enter your Google password, and click the “Next” button.

You’ll see a couple of screens of terms and conditions, and then you’re in the Play Store. This behaves exactly the same as the Play Store on your smartphone. Which it should, because it is actually the same.

We searched for an app called “Trello” and clicked the green “Install” button.

A few moments later, the Trello icon was added to the Anbox main window.

Clicking the Trello icon launches Trello, as expected.

Nothing Beats Easy

Anbox is a wonderfully simple answer to being able to install Android apps on Linux. It was possible in the past with a bit of effort, but never as easily this.

If you’re interested in running the full Android operating system on your Linux device instead of only the apps, consider installing Android in VirtualBox.

RELATED: How to Install Android in VirtualBox