Have you ever thought about making an Android app that would blow everyone’s mind? An app that would solve people’s needs?
It doesn’t matter if you’re a pro or not, anyone can build an app if they really put their minds into it, plus there are a lot of applications that make creating Android apps super easy for beginners.
Truth is there’s a lot of money to be made from making apps. According to an analyst firm App Annie, the app economy will be worth $6.3trillion by 2021.
So, if you’re interested in making Android apps and you have no idea where to start from, this post will tell you everything you need to know.
4 Things to Know Before Building Your First Android App:
There’s a lot involved in making an Android app and these are the things you need to know before getting started.
1. You need to learn Java:
You need to have a basic understanding of Java before you can start making Android apps. You can watch YouTube videos and you can also read books.
2. Use an IDE:
IDEs or Integrated Development Environments compile and run your code with the touch of a button. It doesn’t require you to write a code to compile and another to run. For this post, we’ll be using Eclipse.
3. Building an Android app is time-consuming:
If you’re looking for a project with a fast result, then this is absolutely not for you. Building an app takes time and a lot of patience and dedication.
4. Use Stack Overflow or Android Subreddit when you’re stuck on a problem:
How to Create an Android App Using Eclipse:
Step 1: Set up the environment for Android development
Before you begin to create your app, you have to set up the environment for the app development.
Before you begin, you will need to download Eclipse on your system. Eclipse is the tool we’ll be using.
When downloading, make sure you download the file that works with your operating system.
You can run eclipse directly from the Eclipse folder. Eclipse does not require installation
Click here to download Eclipse
Install ADT for Eclipse:
ADT is a plugin and was made specifically for Eclipse to increase productivity and integration with your Android work environment.
To make use of the Android Development Tool, you must first add the eclipse plugin repository so it knows where to find it along with updates.
Once you install the ADT Plugin, be sure to restart Eclipse.
How to install ADT:
- From the Eclipse Application menu, click on “install new software”
- Click on the “Add” button
- A window will appear after clicking the “add” button, give the repository a name.
- Click OK
- Select the repository you just created with “work with” selector on the “install Software screen”.
- Click on the Developers tools option
- Click next and accept the agreements
- Click finish and wait for it to install.
How to set up the ADT Plugin:
- Select browse on the right side of the screen
- Select Android SDK from its folder
- Hit the apply button on the Preference screen
- Make sure your folder contains the build tools, platform and extras.
- Click OK and restart the app.
Step 2: Creating an Android app with Eclipse:
By now, you should have installed Eclipse on your system. Click on the icon to start Eclipse
Click on Android Application Project:
To do this, go to your eclipse toolbar and click on New. A window will apply, once that window appears, open the Android folder and select “Android Application Project”.
Complete the required form:
You might meet a lot of unknown words while filling the form so here’s what those words mean.
- The application name is the name seen by the end users
- The project name is the name of your project
- The package name is the namespace of your application
- Minimum Required SDK is the lowest Android Version that your application is going to support
- Target SDK is the highest Android version your application will support
- The theme is the theme for your Android application. According to wikihow, you can select “Holo light with a dark action bar for beginner applications”
- Compile with is the platform version which you will compile your applications
Once you’re done filling the form that pops up, click on next and proceed to configure your project.
Select an Icon:
Once you’re done configuring your project, the next thing is for you to select a launcher icon for your application. Make sure you give this a lot of thought.
Once you’re done, click on next.
Pick an activity:
Once you are able to choose an icon, select “blank activity” to build your Android app. Once you click on blank activity, you will be asked to provide details for the activity. You can leave it blank if you wish.
By default, you have developed a basic Hello World Application in your settings.
Step 3: Run your Android app on Android emulator:
Launch AVD manager:
Before you can run Android applications from Eclipse ADT, you need to create an Android Virtual Device.
To do that, you need to:
- Click on Android Virtual Device Manager from the toolbar
- Click on new
- Fill in the details on Android Virtual Device Manager
- Click on create Android Virtual Device Manager
- Select the newly created AVD and click on start
- Unlock the emulator screen
- Click on your project in Eclipse, this will open a list of options
- Click on “Run as”
- Select Android application
- Click on OK
Eclipse will install the newly created app in your Android Virtual Device and launch it as well.
Do yourself a favour and build that app today, you never know, your app might be the next big thing.