[android-developers] App crashes when the keyboard is slided

2010-12-18 Thread Eyvind Almqvist
X10 Mini pro has a sliding QUERTY keyboard. I got a report from SonyEricsson, which says that my app crashes when this keyboard is slided. This only happens on X10 Mini pro. I don't understand why this is happening, because the app is locked to portrait mode. I pasted the log that I got from them

[android-developers] App crashes when the keyboard is slided

2010-12-17 Thread Eyvind Almqvist
X10 Mini pro has a sliding QUERTY keyboard. I got a report from SonyEricsson, which says that my app crashes when this keyboard is slided. This only happens on X10 Mini pro. I don't understand why this is happening, because the app is locked to portrait mode. I pasted the log that I got from them

[android-developers] Re: How to make a trial version which starts a limited amount of times?

2010-12-11 Thread Eyvind Almqvist
I got a mail from Android market, where they wrote: We will be reducing the purchase refund window to 15 minutes. So I assume that 24 hour refund is no longer available? That makes it more important to have a trial version. On 23 Nov, 09:44, Eyvind Almqvist eyv...@mobile-visuals.com wrote: Yes

[android-developers] Re: App freezes when the power key is pressed

2010-12-06 Thread Eyvind Almqvist
I will lock the screen to portrait mode now. I got another mail from Sonyericsson, where they said that the app still freezed sometimes when it rotated. The freezing does not happen on any other devices than those from SonyEricsson, so it seems to be a problem that they should solve, related to

[android-developers] Re: App freezes when the power key is pressed

2010-12-06 Thread Eyvind Almqvist
I have already searched this forum and others about double buffering and I am already using SurfaceView. This is the info that I found: The idea of a double buffer is to hide the current drawing while it's happening and then flip to the entire drawn frame (back buffer / front buffer). When I use

[android-developers] Re: App freezes when the power key is pressed

2010-12-06 Thread Eyvind Almqvist
easy - provided they are willing to do this. Maybe you can convince them? -- Kostya 06.12.2010 12:37, Eyvind Almqvist пишет: I have already searched this forum and others about double buffering and I am already using SurfaceView. This is the info that I found: The idea of a double

[android-developers] Re: App freezes when the power key is pressed

2010-12-06 Thread Eyvind Almqvist
Yes, I have 2 threads. One is for the GUI and the other application tasks. The other is for drawing the visual effects. The 2 visuals that flicker, like Polar lotus, are based on your first alternative. The patterns for each new frame form a pattern. That is idea behind Polar lotus, to not paint

[android-developers] Re: App freezes when the power key is pressed

2010-12-04 Thread Eyvind Almqvist
redrawn everytime. Justmylast two cents :) Yahel On Dec 3, 6:01 pm, Eyvind Almqvist eyv...@mobile-visuals.com wrote: I think I have fixed it now. I discovered that lots of objects were created over and over again for every screen turn in the view constructor. I fixed this by making

[android-developers] Re: App freezes when the power key is pressed

2010-12-03 Thread Eyvind Almqvist
, 10:23, Eyvind Almqvist eyv...@mobile-visuals.com wrote: I got this test result from SonyEricsson: We have tested your latest version which you send to me.  The rotation issue still can reproduce on both android 1.6 and 2.1. And the reproducibility of this issue is much higher than before. On 1.6

[android-developers] Re: App freezes when the power key is pressed

2010-12-03 Thread Eyvind Almqvist
more than 2 times. This is very strange. I thougth that I fixed the rotation problem and they say that it is worse now... On 2 Dec, 20:38, Eyvind Almqvist eyv...@mobile-visuals.com wrote: Thanks, I read the article. Then I saw that I had a global reference to a context, which I didn't need. I

[android-developers] Re: App freezes when the power key is pressed

2010-12-02 Thread Eyvind Almqvist
? On 30 Nov, 20:25, Eyvind Almqvist eyv...@mobile-visuals.com wrote: The only object I create in onCreate() is the view. I do this with  mView = (MView) findViewById(R.id.mid); I found one thing with the drawing loop and the setRunning() method that maybe causes the  problem. I can't test

[android-developers] Re: App freezes when the power key is pressed

2010-12-02 Thread Eyvind Almqvist
I forgot to write that this only happens when the screen is rotated many times. It doesn't happen if I just switch from portrait to landscape mode one or two times. On 2 Dec, 10:11, Eyvind Almqvist eyv...@mobile-visuals.com wrote: Thanks Yahel! I removed the  call to setRunning(false) from

[android-developers] Re: App freezes when the power key is pressed

2010-12-02 Thread Eyvind Almqvist
Thanks, I read the article. Then I saw that I had a global reference to a context, which I didn't need. I removed it and then it worked much smoother. I think this fixed the leak. I don't have any reference to a context at all now. I mailed you my app. Hope it works like it should on your HTC! On

[android-developers] Re: App freezes when the power key is pressed

2010-11-30 Thread Eyvind Almqvist
freezes?  This is not a typical failure case when pressing the power button. :} On Mon, Nov 29, 2010 at 10:05 AM, Eyvind Almqvist eyv...@mobile-visuals.com wrote: My app freezes when the power key is pressed. This happens on SonyEricsson X10 and X8, but not on Samsung Galaxy S

[android-developers] Re: App freezes when the power key is pressed

2010-11-30 Thread Eyvind Almqvist
apps looses focus and that are never recreated again because onCreate is only called the very first time you launch your activity. First thing would be to Log.e(drawing,I'm drawing) in your thread drawing loop. Yahel On Nov 30, 10:50 am, Eyvind Almqvist eyv...@mobile-visuals.com wrote

[android-developers] App freezes when the power key is pressed

2010-11-29 Thread Eyvind Almqvist
My app freezes when the power key is pressed. This happens on SonyEricsson X10 and X8, but not on Samsung Galaxy S. This is what happens: 1)Launch the application-Press power key- Press power key again to active app-App freeze. The app also freezes when the USB cable is inserted, like this:

[android-developers] Why does my polygon animation flicker?

2010-11-29 Thread Eyvind Almqvist
I am painting polygons with the Paint class in an animation. New polygon shapes are created for every new frame. These are painting over parts of the screen. The problem is that the parts of the screen which is not painted over flicker. I am using lockCanvas(null); and unlockCanvasAndPost(c).

[android-developers] Re: How to build a 2d GUI to an OpenGL ES app?

2010-11-27 Thread Eyvind Almqvist
regular2Dcontrols/widgets that come with Android. On Thu, Nov 25, 2010 at 3:11 AM, Eyvind Almqvist eyv...@mobile-visuals.com wrote: Do you mean mixing Java and C++ in an Android project? SurfaceView and theGUIin Java and GLSurfaceView and the visual effects in OpenGLC+ +? On 25 Nov, 01

[android-developers] How to implement 3D morphing in Open GL ES?

2010-11-26 Thread Eyvind Almqvist
3D morphing is easy to implement in M3G. You can just morph different 3d meshes with the Morph class. It is much more difficult to implement this in Open GL ES, because there are no classes for morphing here. Does anyone know how to implement 3D morphing in Open GL ES? -- You received this

[android-developers] Re: How to build a 2d GUI to an OpenGL ES app?

2010-11-25 Thread Eyvind Almqvist
orGUIelements you want using the regular Android widgets. On Wed, Nov 24, 2010 at 5:43 AM, Eyvind Almqvist eyv...@mobile-visuals.com wrote: I want to make anOpenGLESversion of my M3GappAstral 3d worlds. Theapphas a2dGUI, from which you can start 10 visual effects. I can port the  visual

[android-developers] How to implement 3D morphing in Open GL ES?

2010-11-25 Thread Eyvind Almqvist
My company has released the M3G product Astral 3D worlds. It is a visual stimulation tool with lots of 3d effects like shapeshifting objects and mystical tunnels. These were conctructed by morphing different 3d meshes. These were easy to build, because M3G has classes for morphing. It is much

[android-developers] How to build a 2d GUI to an OpenGL ES app?

2010-11-24 Thread Eyvind Almqvist
I want to make an OpenGL ES version of my M3G app Astral 3d worlds. The app has a 2d GUI, from which you can start 10 visual effects. I can port the visual effects to OpenGL ES, but how can I build the 2d GUI? Should I really use OpenGL ES for that? -- You received this message because you are

[android-developers] Re: How to make a trial version which starts a limited amount of times?

2010-11-23 Thread Eyvind Almqvist
Yes, I see now that they write Products that cannot be previewed by the buyer (such as applications): You authorize Google to give the buyer a full refund of the Product price if the buyer requests the refund within 48 hours after purchase. I have released a trial like I described on OVI and I