How to draw in Android???

Problems with Canvas, OpenGL, etc...

How to draw in Android???

Postby rjuy » Mon Nov 15, 2010 11:03 pm

Hello!

Good day!

My school project is somehow difficult, I want my app that can draw on a textView just like "Paint". like it can draw anything: lines, circle, and so on.

Is this possible in Android?

thanks a lot..

-jason
rjuy
Experienced Developer
Experienced Developer
 
Posts: 52
Joined: Mon Oct 25, 2010 2:38 am

Top

Re: How to draw in Android???

Postby merdini » Wed Nov 17, 2010 12:56 pm

Yes, it is possible. Im no expert, but I can say for sure that it would take a long time for someone new to java.
merdini
Freshman
Freshman
 
Posts: 2
Joined: Wed Nov 17, 2010 12:40 pm

Re: How to draw in Android???

Postby seed » Wed Nov 17, 2010 5:00 pm

Challenging project. Sure it is possible. Well, maybe all of it other than the "anything" wording:)

There might be some sample code out there that does some simple drawing application. Did you try a web search.
Visit Exit 4 Gaming - http://www.exit4games.com/
Home of LavaBall - http://exit4games.com/?page_id=3
Home of Rebound - http://exit4games.com/?page_id=138
Home of Tap Crazy - http://exit4games.com/?page_id=219
Download "Caveman Pool" From the Market Today!
seed
Senior Developer
Senior Developer
 
Posts: 103
Joined: Mon Mar 15, 2010 3:22 pm

Re: How to draw in Android???

Postby rjuy » Wed Nov 17, 2010 6:20 pm

Hello Seed!

Yes, I tried to browse on the web for sample codes, but can't find any...

Do you have any idea then?

Thanks a lot!

-jason
rjuy
Experienced Developer
Experienced Developer
 
Posts: 52
Joined: Mon Oct 25, 2010 2:38 am

Re: How to draw in Android???

Postby Tage Nielsen » Thu Nov 18, 2010 1:56 am

The Android SDK comes with sample files, take a look at the ApiDemos sample project, which includes the painting demo Fingerpaint.java.
Tage Nielsen
Junior Developer
Junior Developer
 
Posts: 17
Joined: Wed Oct 13, 2010 8:02 pm

Re: How to draw in Android???

Postby rjuy » Thu Nov 18, 2010 4:06 am

thanks a lot Tage
rjuy
Experienced Developer
Experienced Developer
 
Posts: 52
Joined: Mon Oct 25, 2010 2:38 am

Top

Re: How to draw in Android???

Postby rjuy » Thu Nov 18, 2010 4:16 am

Hello Tage

I tried to import the said folder "ApiDemos" but eclipse generated and error "No projects are found to import".

Why is that so???

thanks a lot!

jason
rjuy
Experienced Developer
Experienced Developer
 
Posts: 52
Joined: Mon Oct 25, 2010 2:38 am

Re: How to draw in Android???

Postby Schermvlieger » Thu Nov 18, 2010 9:30 am

Hi rjuy,

I recommend that you go to the Android Developer website: http://developer.android.com/index.html and go through the tutorial sections before you start coding your own app. This is going to save you a lot of time, trust me!
Schermvlieger
Senior Developer
Senior Developer
 
Posts: 159
Joined: Fri Feb 26, 2010 1:37 pm

Re: How to draw in Android???

Postby seed » Thu Nov 18, 2010 3:50 pm

Agree. With no Java experience, no eclipse experience, and no mobile phone experience, the google developer site got me up and coding Android applications in no time. It is a waste to do anything without first going to that site and doing following their guides.
Visit Exit 4 Gaming - http://www.exit4games.com/
Home of LavaBall - http://exit4games.com/?page_id=3
Home of Rebound - http://exit4games.com/?page_id=138
Home of Tap Crazy - http://exit4games.com/?page_id=219
Download "Caveman Pool" From the Market Today!
seed
Senior Developer
Senior Developer
 
Posts: 103
Joined: Mon Mar 15, 2010 3:22 pm

Re: How to draw in Android???

Postby rjuy » Thu Nov 18, 2010 5:20 pm

@All

Thanks a lot guys...... : )

I'll take your advice...
rjuy
Experienced Developer
Experienced Developer
 
Posts: 52
Joined: Mon Oct 25, 2010 2:38 am

Re: How to draw in Android???

Postby bobN » Wed Dec 15, 2010 10:50 pm

the project will not import into Eclipse. you need to create it: new -->android project-->create project from existing source
bobN
Freshman
Freshman
 
Posts: 2
Joined: Tue Dec 14, 2010 5:21 pm

Top

Return to Android 2D/3D Graphics - OpenGL Problems

Who is online

Users browsing this forum: No registered users and 4 guests