Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make ide in Android like AIDE to compile android project in android phone itself

Tags:

android

ide

As I know there is a Software (AIDE) in android that can compile android projects to APK in android phones. My question is how this works? Is it possible to make DEX file in android devices and pack it in APK?

like image 300
Shamshirsaz.Navid Avatar asked Sep 23 '16 15:09

Shamshirsaz.Navid


People also ask

What IDE do Android developers use?

Android Studio is the official Integrated Development Environment (IDE) for Android app development, based on IntelliJ IDEA .

Can I write Android apps without using an IDE?

01 and Android API 22 (5.1. 1). You still need an IDE to design the UI part. Yes of course, you can use design UI in XML, but you still need a preview how it looks like.

Is Android Studio for mobile?

Android Studio provides the fastest tools for building apps on every type of Android device.


1 Answers

Yes, you can create a basic level Java/Xml Android App using AIDE.

Step:1: Prerequisites

Install AIDE from Google Play on your Android device (all Android versions from 2.2 are supported) and start it. AIDE comes bundled with a mobile version of the Android SDK, so there is no need to install anything else.

Step:2: Creating the App Project

"When you start AIDE for the first time in expert mode you will see the "Create new Project" dialog. If you have already opened a project the dialog will not show, but you can invoke it from AIDE's integrated file browser by choosing "Create new Project here...". In the create app dialog you first choose the type of project you want to create. For your first app choose "Android App / Hello World" here. A dialog will popup where you can define the basic information about your new app: First, choose a name for your app. Second, choose a package name of your app. Your package name must be unique across all packages installed on the Android system. For this reason, it's generally best if you use a name that begins with the reverse domain name of your organization or publisher entity. Finally, tap "Create" to make AIDE generate your new app project. An app project contains all the files that comprise the source code for your Android app. AIDE will generate these files on your SD card. AIDE will also open two important files of your new app for editing: main.xml and MainActivity.java. By default, AIDE will create a Git repository for your new project. This behavior can be turned off in the settings. See the tutorial about Using the Git version control system for more info.

Have a look at Detailed Images while creating appliation

Step:3: Running the App Project

Running an app project with AIDE is easy. Just select "Run" from the menu. In order to run your app, AIDE will first build an Android application package file (APK) for your app. An APK file is used to distribute and install application software onto the Android operating system. The APK file contains all of your program's code, resources, assets, certificates, and manifest file. You will see a popup showing the progress of the build.

enter image description here

Finally, you can run!

enter image description here

For more details: Create a Simple app using AIDE. AIDE tutorial

Develop Android apps from within Android using AIDE (video)

like image 131
Zia Avatar answered Sep 20 '22 08:09

Zia