Android :: Video Games - Graphics/SurfaceView Tutorial ?
Feb 23, 2010
I'm trying to learn how to make video games on Android, and therefore I'm needing to get some decent tutorials going on how to make graphics on Anroid using the SurfaceView object. However every single graphics tutorial I've tried (mainly SurfaceView stuff) has failed. Please note that I don't want to use XML, as it is out of my element, and Google just wants to sell that technique on the advertisement of neatness, which I can do programmatically.
One major problem I've run into is that there are many tutorials, both from Google and from third parties, with code that uses the import android.opengl.GLSurfaceView command, or either imports a subset GLSurfaceView, and that never works on my IDE. Every time I try to import either one of those, Eclipse wants to say that it basically doesn't recognize that package. The strange thing is that I CAN import android.opengl.*, although that still causes some of the code in those packages to be referring to unrecognized types and/or methods.
After trying to fool around with the first problem for a while, I noticed that the Lunar Lander example didn't try to import either one of those two problem libraries. So I pulled the code and referenced resources for that into one of my infant projects, leaving everything else in that project unused. Of course I did change which package the Lunar Lander code was in and changed the class name in LunarLander.java or whatever, but that should not matter. I was able to get the thing to build in Eclipse. However when I went to run it, it would do nothing but crash. Without showing any Lunar Lander graphics or anything, the emulator would just give me this error message basically saying that my App has stopped working unexpectedly and makes me close the App.
1) What's the deal with the issues with the opengl.GLSurfaceView package?
2) What's the deal with the Lunar Lander example?
3) Where's a good, firm tutorial on how to make video games for Android
View 2 Replies
Mar 31, 2009
I want to show off how good opengl es can display on my G1. Does anyone know a game with good 3D graphics that I should install for this?
View 13 Replies
View Related
Aug 2, 2010
I have got the following on my phone
Driver
Colin McRae
No Fear Downhill Mountainbiking
All work well, except sound issues but all 3 have pretty poor graphics. Which are the best psx games to try graphics wise? I want to see how well the desire can run. Im assuming ff7, any good racing games or 1st person shooters? as they are all massive files I dont want to waste time on tosh
View 12 Replies
View Related
Oct 31, 2009
The only thing I am disappointed with is the low quality graphics of the games. Other than asphalt3 I haven't found any good ones.
View 7 Replies
View Related
Oct 17, 2010
I am new to android .i want to develop 2d games in android.i searched for that i am not finding good tutorial on that please help with books and good tutorials.
View 2 Replies
View Related
Jul 26, 2010
I am currently working on the app in which my media player class is singleton, and i want to play the video files. I use surfaceView for the video display part. But the problem i m facing is when i change the orientation, the previous playback disappears (if was playing) and the new surface view is getting created ..but the callback method surface created is not getting called in which i want to take further action.
View 2 Replies
View Related
Mar 28, 2010
Can any one suggest the way by which i can resize the SurfecView while Playing the Video on it.actually I tried the onMeasure() method which is called by measure() .but it does not resized.
View 3 Replies
View Related
Mar 22, 2009
How can I place widgets such as buttons on top of a SurfaceView (Video). According to the reference this should be possible. But I have no idea how the xml file should look like.
View 2 Replies
View Related
Oct 22, 2010
It seems that on my HTC Hero not all of the landscape features are fully rendered. The foreground hills and such that the pigs are on are just plain white. This makes it very hard sometimes to really see what all the obstacles are. I noticed this in the beta version and assumed it would be fixed in the full version but I guess not.
Is this something that can be fixed with a re-install or is this just a bug with the Hero? I can't be the only one with this problem (I hope)
View 4 Replies
View Related
Nov 12, 2009
Anyone get this to work on their Droid? For some reason the " is not coming up properly for me once Frodo is loaded so I can not load games. Is there a good tutorial somewhere?
View 3 Replies
View Related
Aug 20, 2010
One using a Surfaceview, and the other using a custom view. According to the android SDK development guide, using a surface view is better because you can spawn a separate thread to handle graphics. Th SDK development guide claims that using a custom view with invalidate calls is only good for slower animations, less intense graphics.However, in my simple app, I can clearly see that using a custom view with calls to invalidate seems to render faster.What do you guys know/think about this?My touchEvent code is exactly the same, and my drawing code is exactly the same. The only difference is that one is all in the UI thread, and the other is using a tread to handle the drawing.
View 1 Replies
View Related
Mar 15, 2010
New Nexus One Android games montage by Androids. YouTube - 100 ANDROID GAMES IN TWO VIDEO
View 5 Replies
View Related
Feb 2, 2010
YouTube - 50 ANDROID GAMES IN ONE VIDEO
View 9 Replies
View Related
Oct 18, 2010
http://www.youtube.com/watch?v=zRqRRIWmDyo
View 3 Replies
View Related
Oct 29, 2010
I'm a developer, and you like some feedbacks on my new game 'Junker Pizza Delivery' I have a short video on YouTube to view (no words, just screenshots)
View 5 Replies
View Related
Jun 25, 2010
I've noticed since I have updated to firmware 1.5 on my HTC Magic that I've been losing all types of audio intermittently.Example: I would be watching video on my Magic then the audio would suddenly cut out. This includes all types of notifications, alarms or ringtones.This is very disturbing cause it makes my phone very unreliable.I miss calls and messages and one time or another I overslept cause the alarm went off but there was no audio.I know its not a hardware issue cause once I reboot everything is normal again. I don't like rebooting all the time to fix this problem and worse you dont realize that you lost audio notifications until you do check your phone to discover you did.I've read on google forums of several other accounts of this but so far no solid solution.
View 1 Replies
View Related
Aug 1, 2010
I was reading about them and it said aomthing bout roms so im not sure and my phone is not rooted and I don't plan on rooting.
View 3 Replies
View Related
Feb 26, 2010
I have rectangle white box. on cliking the rectangle I will draw a toolbar beneath the box and also call relayout to accomodate the toolbar ( size+100) ( i used surfaceview and in secondary thread i draw the toolbar) on click again on rectangle box it will disappear the toolbar and also has to resize the layout to original size (ie size-100) this is where I get stuck. I can disappear the toolbar however I cant call relayout either from secondary thread (says cant call from secondary thread). So I created a while loop in onlayout( this is where i create a thread to draw the toolbar) if i call requestlayout after while loop ends it doesnt do anything it doesnt call onmeasure etc.
View 4 Replies
View Related
Jan 14, 2010
I created a 2d game in java that runs as an applet, and i am now trying to translate this over to the android. As the android doesnt used paint() methods, i am thinking that i will have to import images of the game instead of drawing it, but i cannot find out how to do this. Anybody know how to add images to the folder and call them in the app? Also, how can i call a screen repaint() in the android?
View 2 Replies
View Related
May 16, 2009
I want use the methods in android.graphics to draw one board (board chess,)
View 2 Replies
View Related
Oct 27, 2010
Is there any way to add the x-graphics in the android Editbox like the of iPhone.So that by clicking on that x graphic it can clear all the values in the Editbox.Is there any way to listen weather i touch a specific part of an edit text
View 1 Replies
View Related
Sep 1, 2009
I want to do some programs using graphics can anyone send me sample programs about graphics package
View 5 Replies
View Related
Apr 26, 2009
I'd like to build an activity that is mixing layouts with 2D graphics. So for example, would like to introduce an edittext with an integer value and based on that value the size of a circle is dynamically adjusted and drawn. Any idea how to do this?
For plain graphics I am using this approach here - but how can it be expanded to cover Android layouts (buttons, editboxes, textviews, radiobuttons, etc.)?
CODE:..............
View 2 Replies
View Related
Aug 2, 2010
1. What size should graphics intended to promote your app in the Market be designed for?
2. What about the larger graphics that depict screenshots of the app in the Market?
3. What size should app icons for devices be?
View 2 Replies
View Related
Feb 2, 2010
I have doubts while doing some 2D Graphics and animation. Here is what i have done and what i want to do further: An application starts with a 2D object [ball] rotating and execising in a particular fashion, and after a particular point in time the object [ball] scrolls out of vision. After this point i want to invoke a new activity with a different UI. I m stuck up while trying to transit from this View to a new activity.
View 3 Replies
View Related
Mar 25, 2009
Im creating a simple game using a SurfaceView for drawing the Graphics. It works fine, but now I tried to add a title screen, which is (for now) only a LinearLayout and a Start-button, specified in XML. However, when I click this button and try to switch to my SurfaceView (By doing setContentView(R.layout.game), the screen turns black. But if I do setContentView(R.layout.game) immediatly in my Activity.onCreate it works. But not if I start with my Title-screen and then try to switch
View 3 Replies
View Related
Apr 30, 2009
I am finally testing my application on a G1 and even though it works fine on the emulator, it crashes on the G1
It crashes when it does:
CODE:.........
And the view is defined like this:
CODE:..............
View 3 Replies
View Related
Jun 16, 2009
I want to play 2 videos one after one minimizing delay between each video. so I created 2 mediaplayer, one playing the current video and the other preparing to play the following video.
The 1st video is played correctely but I couldn't get the video track of the second video. only sound without any error.
This is my source code : (note that here, I am using files on sdcard but the application will use files on a web server. that's why I need to prepare the second video while the 1st is playing)
CODE:...................................
View 5 Replies
View Related
Sep 4, 2010
My app fc when activity that's using SurfaceView as content view calls startActivityForResult(...) and activity that has been started calls finish()
This does not happen if I change content view to something else than SurfaceView.
This would be the requested logcat:
CODE:..................
View 1 Replies
View Related
Dec 16, 2009
Look at this: http://nhenze.net/?p=172
They show that it is possible to put an GLSurfaceview on top on a SurfaceView. I hope it would be useful.
View 2 Replies
View Related