Programming Android on Linux with Eclipse

in #utopian-io7 years ago (edited)

Pemrograman Android Eclipse Petani Kode.png

Google originally used Eclipse as the IDE for Android app development. Then switch to Android Studio.

Eclipse is lighter than Android Studio, but Eclipse is no longer supported by Google.

That is, if there is a new feature or the latest API from Android, we (probably) will not be able to use it in Eclipse.

But there is no harm in using Eclipse to create Android applications.

If you want to give it a try, please follow the steps below to do the sourcing.

  1. Install JDK

JDK (Java Development Kit) is the basic equipment needed for Java programming.

Since Android app uses Java programming language, then we need to install JDK.

How to install JDK on Linux:

JDK version 7:

sudo apt-get install openjdk-7-jdk

JDK version 8:

sudo apt-get install openjdk-8-jdk

  • select one
    2.Install Eclipse

Please install Eclipse with the following command:

sudo apt-get install eclipse

3.Install Android SDK

Android SDK is an important tool that must be prepared in the Android programming. Because the Android SDK provides the API and tools we need for creating apps.

Please read How To Install Android SDK and NDK on Linux.
4.Update Android SDK

Once Android SDK is installed, update to get the latest version of API.

Use the following command to open the Android SDK update manager.

android update sdk
5.Create an Emulator

Once everything is updated, now create a new emulator.

Emulator function to run Android applications.

Use the following command to create the emulator:

android avd

6.Install ADT Plugin

ADT (Android Development Tool) is a necessary plug-in in Eclipse to be used for Android programming.

Here's how to install the ADT Plug-in in Eclipse:

  1. Open Eclipse
  2. Go to the Help menu> Install New Software
  3. Add ADT Repository Address: https://dl-ssl.google.com/android/eclipse/
    Tambahkan alamat repostitori plugin ADT.png
    4.Select all then click Next
    Detail instalasi plugin.png
    5.klik next
    adt 3 - detail instalasi.png
    6.Select "I accept the term ..", then click Next.adt 4 - Ketentuan dan persetujuan.png
    7.klik ok
    adt 5 - Konfirmasi keamanan.png
    8.Click OK to reopen Eclipse
    adt 6 - instalasi selesai.png
    *.Test Project
    Open Eclipse, create a new project.

After that, go to File menu> New> Other then select Android Application project.
proyek - Buat proyek baru.png
Then fill in the project data description
proyek - keterangan data proyek.png
Then, specify the location and application icon, then click Next.
proyek - konfigurasi proyek.png
Define the icon, then click Next.
proyek - konfigurasi ikon aplikasi.png
Create activity, just select blank activity. Then click Next.
proyek - membuat aktivity.png
Fill in the name of the activity, Just let its name is MainActivity. Then click Finish.
proyek - nama activity.png
The first project is finished.proyek - Proyek Sedang dikerjakan.png
Right click on Test Project> Select Run As> Android Application.
proyek - Run Proyek Android di Eclipse.png
The project successfully runs on the emulator.
Proyek Berhasil di run.png



Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

Your contribution cannot be approved because it does not follow the Utopian Rules.

It is in the wrong category correct category can be Tutorial. You should read the rules before submitting a contribution.

You can contact us on Discord.
[utopian-moderator]

thank you for the criticism @ms10398