GPWiki.org
GPWiki.org
It is currently Sat May 25, 2013 6:36 pm

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: I'm new so i need help
PostPosted: Sat Apr 14, 2012 10:11 pm 
Novice

Joined: Wed Apr 11, 2012 2:11 am
Posts: 6
Hello Everyone,
Okay so i am fairly new to Java Programming and i have a small tiny game, the game is completely written in Eclipse and based on a computer application. What i am trying to say is that it is a basic application. I want to know how to turn that basic Java Application into an android application.

Long story short "I can play it on a computer, how can i play it on an android?"

DaSnipeKid-


Top
 Profile  
 
PostPosted: Sat Apr 14, 2012 11:05 pm 
Harmlessness does no harm
User avatar

Joined: Tue Sep 14, 2004 8:37 pm
Posts: 3810
Location: Ferriday, LA, US
Be forewarned that porting apps to Android can be, at times, frustrating even for experienced developers. Not to discourage you -- just to let you know that you should have your guard up, and be prepared to do some fiddling before getting it "right." :)

The main thing you will need is the Android SDK -- this is what will allow you to access the Android system libraries, as well as run apps within an emulator (though testing with an actual Android device handy is highly recommended). Link: http://developer.android.com/sdk/index.html

Note that you will need both the "starter" package; and at least one of the SDK "version" packages. (Note that OS versions are to some extent backwards-compatible, so if you want to write an Android app that will work on a device with Android OS 2.0 or higher, you would use the Android 2.0 package -- your app will work with Android 2.0, and still run on later versions of the OS, theoretically.)

There's also extra steps (and lots of good resources) listed on the page linked above, so I will refrain from reinventing that wheel any further (unless of course you have more questions or run into any problems -- in which case, the hammer and chisel will be put back into action). :)

_________________
What most people don't understand about "enlightenment" is that it is not an end-goal; but where you find yourself just before taking a new "first step."


Top
 Profile  
 
PostPosted: Sun Apr 15, 2012 11:08 am 
Bibliotherapist
User avatar

Joined: Wed Nov 03, 2004 1:28 pm
Posts: 6719
Location: Oxford, Englandshire
I haven't actually ported a Java app to Android, but I'd imagine that the core logic of the game should move across mostly intact. However, you'll probably need to look at taking a new approach to input and graphics. There's a TouchGLSurfaceView demo on the Android SDK site that should give you a good start with an OpenGL context that also handles touch events.
Sound management might need 'adjusting' too. There's a demo on the Wiki (http://content.gpwiki.org/index.php/And ... _SoundPool) that'll point you in the right direction.

Good luck!

_________________
10 PRINT "Bad Monkey ";
20 GOTO 10


Top
 Profile  
 
PostPosted: Mon Apr 23, 2012 3:53 am 
Rookie

Joined: Sun Apr 22, 2012 3:55 am
Posts: 4
Honestly the best bet would be to either read a book on android app development or youtube the New Boston on android development. knowing JAva will help u when programming in android but since android has many bugs and is heavily mixed in with graphical components it can get tricky when riding a code that works flawlessly written solely with java and then trying to make it run on Android..... dealing with GUI on android is easier and harder all at the same time.

P.S- Dont try to use the DYNAMIC HElP when using ECLIPSE and ANDROID, it will crash your current Project WITHOUT SAVING!!!!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group