Orientation change and setRender

by qwesthead » Fri, 20 May 2011 15:38:29 GMT


Sponsored Links
 I've a region on an activity that uses GLSurfaceView. When the
Activity is resumed, I call the setRenderer and then the content of
the screen. They work fine. But, the problem arise when I change
orientation (configurationChange.) Upon orientation change, I need to
change the layout. After orientation change, surfaceChanged is getting
called. However, even when I call GLSurfaceview.requestrender,
Renderer.onDrawFrame is not getting called.
What are all the things I need to do when there is an orientation
change.

-- 



Other Threads

1. jpg images noisy on sdcard but fine in gallery, only on Android 1.6 (1.5 is fine)

In your  'public void onPictureTaken(byte[] data, Camera camera)'
method
You have to create a BMP out of the 'data'. The 'data' is not JPEG. It
is RGB data (if i'm not mistaken).

  Bitmap bmp = BitmapFactory.decodeByteArray(data, 0, data.length);

Then you compress the bitmap into jpeg.

  bmp.compress(...) to create a PNG or JPEG file.

A side note: If you want to avoid the MediaScanner to have to run
before your gallery can actually see the proper picture, supply the
DATA column in your insert statement (add it to the ContentValues).
The value of the DATA column is a string, it is the fully-qualified
path-name to your JPEG or PNG file.




-- 

2. Checkout Check: An Android interface to Google Checkout

I'm happy to announce the release of Checkout Check, a free, ad-
supported Android utility for generating simple reports from a Google
Checkout merchant account.

It's under Apps>Finance.

I developed the app because I was becoming increasing frustrated with
the web interface to Google Checkout. I didn't like the fact that I
couldn't sort orders by app name or export .xsl reports with app
names. Basically I just wanted to know how many of each app a day I
was selling, along with the gross and net revenue for each app.

This is a beta version. Right now it only reports transaction fees for
Android app merchants (30%). It's also generally good for short time
frames (1 day - 1 week), just to check snapshots of activity. If you
have feedback (bugs or feature requests), let me know at
polyclefsoftw...@gmail.com. I hope some of you find it useful.

--

3. wifi configuration

4. December 11th Update - Note to Android developers(?)

5. what is the exception

6. Network down issue

7. jpg images noisy on sdcard but fine in gallery, only on Android 1.6 (1.5 is fine)