Monday, December 27, 2010

Freeware Android Paint with source code...

Here is one of my freeware android apps called AndroidPaint. You can install it from the Google Play. Or you can download it from here or through

Using the Android Paint app, one can draw geometrical shapes and free hand drawing on an Android device. In the future version i will refine the app to give the user more drawing options and more regular shapes to draw.

To start with, one will have to choose from the menu options and then draw.

The screenshot of this application is as follows:


Here goes the source code of this application...

There are lots of scopes to re-factor this application... for example we can introduce a singleton factory class which will be responsible for creating different shapes... i thought of making the source code available to everyone after i did these kinds of refactoring... but i have lost the momentum... it will be really nice if someone works upon these...

22 comments:

James said...

Gread Post. I also have a android canvas example. Mine is to draw a bitmap from image. Share with u:

Android Canvas Example

unanimouse said...

you should be able to import the color app as a library so it doesn't have to be downloaded separately.

tu&2 said...

its goooood yaar

nikunj said...

please give me the without menu this application. i want to button this application

cm said...

how can set the background color to black? so that when i save it to external storage the png image will also have a white background?

Sujith said...

how can i add a button below that?

ابنه أدم said...

can you please post full source code for the paint as i found it un complete

Somenath said...

You may download it from
here

dont forget to download
Colorpicker

Unknown said...

How to install the "android paint" in eclipse? it only contains .metadata, sorry i'm kinda new to android

Unknown said...

Can any1 tell how to change the background of the working area to white? thanks

Jobs at home said...

Sir Please tell me when we are drawing shapes at the time of drawing i want to show also the shape. how it is possible.

Somenath said...

@Jobs at Home--- you need to fill up the code in the below block of @Override
public boolean onTouchEvent(MotionEvent event) {
if(event.getAction() == MotionEvent.ACTION_MOVE){ } }

hope this helps you.
}

Somenath said...

@Jobs at Home--- you need to fill up the code in the below block of @Override
public boolean onTouchEvent(MotionEvent event) {
if(event.getAction() == MotionEvent.ACTION_MOVE){ } }

hope this helps you.
}

Jobs at home said...

sir i have used your ode. But I also want to show the shape of drawing imag at the time of drawing so that user can see that what he is drawing

Unknown said...

hai,how can i integgrate the colorpicker into the project

Thanhs in advance

Unknown said...

How can i integrate the colorpicker into the project
Thanks in advance

Somenath said...

@Asif... in my works colorpicker is a different app. however, you can integrate it with the paint application by creating one more activity and putting the color picker's activity code in it. then call the activity through intent as usual at the Color menu handler...

Unknown said...

Thanks For This Source Code,This Will Help me to make my paint application.thanks again,nice work by you:)

Unknown said...

Som Sir,

Need Help regarding the "Freeware Android Paint" .
I got this "Freeware Android Paint " from internet.
I like this application.

But I need some help regarding the "Pinch Zoom In-Out" and "Panning" functionality.

Kindly Acknowledge.

Thanks
Poonam

Somenath said...

@Poonam... Thank you for your comment. I have updated the AndroidPaint App with a new option for viewing images with pinch-zoom facility. Get the latest version from Google Play. If you like AndroidPaint, please +1 it in the Google Play.

Unknown said...

Sir Please tell me when we are drawing shapes at the time of drawing i want the preview of the shape to be shown. how it is possible

Somenath said...

@aman.... to get the preview of the drawings you need to give functionality for drawings in the motionevent.ACTION_MOVE. like whatever you are doing at the ACTION-UP, you need to constantly do that whereever the mouse pointer goes at the ACTION_MOVE...