Android App Development Certification Trainin ...
- 56k Enrolled Learners
- Live Class
So, you’ve heard that Android Development skills would help broaden your job prospects, and are wondering where to begin. Here is a step-wise guide to help you create Android apps (basic Drawing Brush Application) using Eclipse IDE.
Watch the following video to get a preview of the Drawing Brush application created in the tutorial:
The video above has probably taken care of that! :) This application is similar to Paint tool in windows, excluding the more advanced features. Here’s how it works:
Seems simple enough, right! Let’s begin.
1) Basic knowledge of Java
2) Eclipse IDE (Thanks to Eclipse IDE, creating Android apps is not quite the drag it could have been. It saves the developers a lot of time).
The application would run on Android version 2.3.3 (GingerBread) or above.
Download this free Android Installation Guide provided by Edureka to setup Eclipse and other Android Development tools.
Alright, now that we have seen the UI of the app, let’s move on to see what goes on behind the scenes.
We used the Paint class that holds the style and color information about how to draw geometries, text and bitmaps.
The Paint object represents the “brush” here.
A very important input method for Android devices. Touch events offer the ability to interpret finger activity on touchscreens.
It is used to report movement, and is thus the base class for Touch Events.
Used to get the current position.
You get a Canvas object which allows you to perform drawing operations on it, e.g. draw lines, circle, text and Bitmaps.
Finally the time to get those hands dirty! Here’s the code for the Drawing Brush application:
Step 2: Extract it using WinRAR or a similar tool.
Step 3: If you have an Android phone, simply install the .apk file which you can find in DrawingBrush_Circle_ClearScreenButtonin DrawingBrush_Circle_ClearScreenButton.apk
Step 4: To import it to Eclipse, just copy the folder into your Eclipse workspace.
1) Select File -> Import
2) Expand the general folder.
3) Select Existing Project into work space
4) Hit next and browse your work space where it asks for “select root directory”.
5) Click Finish.
All set, you can can run it in your emulator now.
Now scoot! :) It’s time for you to actually create Android apps, if you haven’t already. If you need more help, enroll now for a free session of Android Development Basics.