Monday, December 27, 2010

Freeware Android Paint with source code...

Here is one of my freeware android apps called AndroidPaint.


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:


Source Code:
https://gitlab.com/som.mukhopadhyay/AndroidPaint

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...

33 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.

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.

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.

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 code but i want to show the shape at the time of drawing so that customer can see that what he is drawing. I dont know how i can do this using your code. Thanks

Jobs at home said...

sir i have used your code but i want to show the shape at the time of drawing so that customer can see that what he is drawing. I dont know how i can do this using your code. Thanks

Jobs at home said...

sir i have used your code but i want to show the shape at the time of drawing so that customer can see that what he is drawing. I dont know how i can do this using your code. Thanks

Jobs at home said...

sir i have used your code but i want to show the shape at the time of drawing so that customer can see that what he is drawing. I dont know how i can do this using your code. Thanks

Jobs at home said...

sir i have used your code but i want to show the shape at the time of drawing so that customer can see that what he is drawing. I dont know how i can do this using your code. Thanks

Jobs at home said...

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

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...

Unknown said...

Thanks Sir , one thing more i need to ask how to connect to shapes using line like we do in flow chart it get connected automatically.

Unknown said...

Thanks a lot for sharing this with all folks you really recognise what you are talking about! In this complex environment business need to present there company data in meaningful way.So user easily understand it .Sqiar (http://www.sqiar.com/) which is in UK,provide services like Tableau and Data Warehousing etc .In these services sqiar experts convert company data into meaningful way.