Android :: Differences And Advantages Of SurfaceView Vs GLSurfaceView On Android
Aug 2, 2010
I'm currently playing around with 2D graphics in android and have been using a plain old SurfaceView to draw Drawables and Bitmaps to the screen. This has been working alright, but there's a little stutter in the sprite movement, and I'm wondering the feasibility to do a real time (but not terrible fast) game with this.
I know GLSurfaceView exists which uses OpenGL, but I'm curious as to the extent to which this makes a difference. Is a plain SurfaceView hardware accelerated, or do I need to use OpenGL? What type of speed difference could I expect from switching to OpenGL, and how much altering of code would it require to switch (the game logic is all in a separate object that provides an ordered array of drawables to the SurfaceView)?
View 1 Replies
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
Apr 27, 2010
Is there anyone who knows how to overlay a GLSurfaceview on a Surfaceview? The Surfaceview is used for the camera preview..
View 4 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
Jun 18, 2010
I'm currently using stock browser. What are the main advantages to using Dolphin? Is it worth downloading. Stock browser seems to do all I need.
View 4 Replies
View Related
Aug 14, 2009
I was reading on ListActivity and Activity and wanted to know which is better? I only need to display one listview. Would I see great improvements? Does ListActivity handle screen rotation better or it's the same?
View 2 Replies
View Related
Dec 11, 2009
What are the relative advantages of using 3G vs. Wi-Fi for transferring data? Which uses more batter power? Which is faster? I have access to Wi-Fi networks at home and at work. I'll take advantage of them if I understand the value of doing so.
View 6 Replies
View Related
Aug 9, 2010
It turns out that if you are synching Outlook with a server, not all servers can handle Adroid phones. I don't know if an app like Touchdown would fix this, so if you need to synch with a server, check this out. Because I wanted to go with AT&T anyway for tethering reasons (a fairly unique situation), I went with an Iphone and have been quite happy with it, though the jury is still out on the touch keypad. An advantage of the Iphone is that the world has adapted to it. My Ford Escape synch system will not recognize all phones, but does recognize the Iphone, given how popular it is. This also may be an issue for some people, not for others.
View 4 Replies
View Related
Feb 17, 2010
I have read through a nuber of posts but cannot seem to find an answer to this question:
Is there a way to disable the haptic feedback (vibration) from the HOME keys - I have successfully stoped this function for the touchpad.:
1. My phone will access YouTube but does not play all videos. It plays about 30 % of the ones I select - is this a phone problem? Is than an update?
2. I charge my phone each night, 11p to 7a and plug it in to the car charger for longer trips (use a bluetooth while driving) - am I killing my battery?
3. What will be the major advantages of an upgrade to Android 2.0 which I hear is rumored for the Eris in 1stQ 2010>
Love the phone...can't wait to try the GPS 'Where Am I' app on a local golf course (can it identify the bar also?)
View 2 Replies
View Related
Jun 12, 2009
i want to start programming in OpenGL on Android, but Eclipse can't find the GLSurfaceView. I'm using the 1.5 SDK. Do I have to set specific entries in the build path?
View 2 Replies
View Related
Nov 30, 2009
Following the samples and examples, I've successfully been able to load a model on screen and rotate it with the DPAD keys and overriding the onKeyDown method of the GLSurfaceView. Trying to use a letter though, causes a small box to appear at the bottom accepting the text that is being typed. What I'm not entirely clear on, is since I don't have a listener defined in the main Activity, why those key letter key presses are being intercepted by some other inherent listener(?). I setup an OnKeyListener for the view to call my own method and that does work... but I'm wondering if there is perhaps a better way to handle it.
View 3 Replies
View Related
Sep 3, 2010
I am a lazybones using GLSurfaceView and loving it. But now that my code is running too darn fast (heh), I would like to slow it down via setting eglSwapInterval to 2 or something. Just to be nice to the battery. But, being a lazybones, I can find no way of doing this when using GLSurfaceView. (and hacking an early return from onDrawFrame() was very unsatisfying).
View 2 Replies
View Related
Mar 31, 2010
currently GLSurfaceView is not supported in app widget .can we make changes to framework to make it support? is there any limitation? if possible what framework change is required?
View 12 Replies
View Related
Jul 27, 2009
We are developing an application that uses a GLSurfaceView to display 3D objects. We regularly get the "Application Not Responding" dialog. Inspection of the dumped threads reveals something that looks suspiciously like a deadlock. I have added the three thread dumps involved below. The first thread is the main application event thread, and it is waiting on a join with a GLThread.
The second thread is a brand new GLThread that is waiting for a semaphore lock presumably so it knows it has exclusive access to the graphics hardware. The third thread is probably a previous GLThread (the one the main thread is waiting for to finish), that is waiting to be notified. The strange thing is that the main application thread has just done a "mDone=true; notify();" prior to calling "wait()", so the third thread should have been awaken? .........................
View 3 Replies
View Related
Mar 18, 2010
I'm using GLSurfaceView to create a simple OpenGL drawing application. Since the elements drawn in each frame must remain on screen in order to be composed into the whole drawing, I don't use gl.glClear(GL10.GL_COLOR_BUFFER_BIT) at the beginning of each frame. But not clearing the color buffer leads to substantial flickering. Is there any way to eliminate flickering while still not clearing the screen at the beginning of each frame?
View 7 Replies
View Related
May 12, 2010
I am able to get a GLSurfaceView to have a transparent background with:
CODE:............
when I set the Activity's window background to transparent and the GLSurfaceView is the contentView of the Activity.
But, let's say my GLSurfaceview is parented by a ViewGroup and I want GLSurfaceView bg to be transparent to see the Viewgroup's background - I am not able to do so with the code above. Is this a limitation or am I missing something?
View 2 Replies
View Related
Nov 4, 2009
I have an application that uses GLSurfaceView to draw OpenGL ES graphics. This is all working (mostly) how I would expect.
Now, I would like to implement a screenshot feature. For normal views, it seems that the standard practice is to create a new Canvas with a Bitmap and then draw to that Canvas using View.onDraw(Canvas).
I've tried using SurfaceView.draw(Canvas) in a similar fashion, but it always results in a blank (black) image.
I've also tried using the drawing cache with the exact same result.
View 3 Replies
View Related
Apr 12, 2010
how to draw text on GLSurfaceView in Android?
View 5 Replies
View Related
Jul 22, 2009
How can one use a GLSurfaceView similar to a ViewGroup, in the sense of adding Views(CustomViews) over it? Is there any means to make the GLSurfaceView be the canvas on which the view draws its contents?
View 5 Replies
View Related
Mar 23, 2010
I'd like to display some 3d object on top of the normal 2d ui layout screen. The 2d ui screen has background image, and GLSurfaceView is child of the content layout. I tried the same technique of the Translucent GLSurfaceView in ApiDemos sample, but GLSurfaceView clears all and shows black background. Code...
View 2 Replies
View Related
May 13, 2010
I want to create a simple Map based application in android ,where i can display my current position.Instead of overlaying a simple Image on the MapView to represent the position, i want to overlay the GLSurfaceView on the MapView. But i don't know how to achieve this. Is there any way to do that?. Please anybody knows the solution help me.
View 1 Replies
View Related
Sep 22, 2010
I am trying to merge two examples from the ApiDemos so one overlay over the other. 1. CameraPreview.java 2. TranslucentGLSurfaceViewActivity.java I guess GLSurfaceView is not really necessary, I saw demos that uses a GL layer as a Camera PreviewCallback, but since I am such a noob at OpenGL, I am kind of lost. Can someone points me toward the light (figuratively speaking)?
View 1 Replies
View Related
Oct 2, 2010
I have a GLSurfaceView with a drawable as background, however only the background is visible when rendered without surfaceView.setZOrderOnTop(true)I need to avoid using setZOrderOnTop(true) because there are static TextView's being used on top of the GLSurfaceView. Any suggestions for getting this to work?
View 2 Replies
View Related
Nov 8, 2010
I started an Android OpenGL application and I have the following classes: class A extends Activity class B extends GlSurfaceView implements Renderer When class A's onCreate is called, it creates an object of type class B and calls: How should I use my custom class that extends glSurfaceView in my XML file/Activity? Code...
View 2 Replies
View Related
Aug 10, 2009
I would like to use GLSurfaceView for my new cool application. But I am still hestitating because Android 1.1 and Android 1.0 do not have GLSurfaceView class. And another question, If I don't use GLSurfaceView, how can I use OpenGL with SurfaceView class?
View 2 Replies
View Related
Jul 20, 2009
I want to load a bitmap on a GLSurfaceView.. I do it like this: Code...
But the bitmap repeats itself on the surface and is also inverted.. why is this.. How do i make it appear only once...kindly help!
View 6 Replies
View Related
Mar 5, 2010
I am currently porting a 3D app on Android. This app consists of a 3D view (embedded in a GLSurfaceView) and of menu screens (for settings, search , etc.).
My main activity is the one containing the GLSurfaceView. It's always the root of it's task. The problem is that my GLSurface gets destroyed whenever I launch another activity and all the GL objects (VBOs, textures) that I created in the GL context get deleted/invalidated along. So whenever my users go in the menu, the 3D scene has to be fully reloaded. Wouldn't there be a way to prevent the surface's destruction ?
View 2 Replies
View Related
Apr 7, 2010
Basically, I am looking at two phones right now. The Nexus One and the HTC Incredible and I like both, the question I have is that is there a difference in the ability to root/rom these phones? I saw a few posts of people saying the Incredible would have a locked /system folder that would not allow the sort of modding freedom the Nexus One would provide. Is this true or would the phones be equally moddable (so I could remove Sense UI and play around with Cyanogen and other goodies)?
View 6 Replies
View Related
Nov 27, 2009
as there's a GLSurfaceView in use, no other views receive any KeyEvents. MotionEvents however, are still working as expected. Is there a way to prevent GLSurfaceView from swallowing all KeyEvents?
View 4 Replies
View Related
Dec 2, 2009
what puzzle me so much is that i can't destroy a GLSurfaceView while i don't want to exit the activity.
the fact is when i destroy a GLSurfaceView which had show in the screen (that means it has binded to the activity's SurfaceHolder), the activity exits without any prompting. Perhaps ,the Context which provided in the Construction of GLSurfaceView joins the two things together. so my conclusion is that a GLSurfaceView can only be destroyed when exit the activity. is there anyway to destroy a GLSurfaceView without exit activity? is there someone can provide a clue?
View 2 Replies
View Related