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. A Widget that looks like a launcher icon?

Hi,

I would like to write a widget that emulates the look of an application
launcher shortcut. In particular I want the white font label on a black,
semi-transparent background. As it should look the same as the launcher
shortcut I wouldn't like too much to imitate the actual look, but to
re-use/copy it. Any idea where I can get that?

I checked the launcher app and found application-boxed.xml, but it doesn't
seem to do what I want and I am probably way off anyway.

Any ideas?

Btw. I know that this is like a shortcut, but on a shortcut I cannot render
the number of unread items.

Cheers,
Mariano

-- 

2. How to save a WiFi connection?

Hi,

I have written an app that programmatically scans for open WiFi
networks and connects to the one that has been hard-coded in the app
code. For e.g., I have a home network, SSID: Abhi and is secured as
WPA-Personal with a Passkey. The passkey for the above network has
been saved within the App, so when it looks for networks the first
time and comes across the SSID 'Abhi', it connects with the passkey.
However, the problem is, once I am done using the connection and
switch WiFi off and back on again, I don't get connected automatically
to 'Abhi' which would happen if I manually add the WiFi network going
into settings and so on.

Can someone help me figure this out?

Thanks,

Abhi

--

3. stay inside webview?!

4. fix parameters in macro cpufreq_exit_idl

5. from webview to activity

6. general design question

7. android floating point hardware support