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. Problems with adding contacts data

I am trying to add contacts in my application, but I'm running into
some snags. Here's the code I have:

case R.id.bt_add_to_contacts_btn:
                  Intent intent1 = new Intent(Intent.ACTION_INSERT_OR_EDIT);
                  intent1.setType(ContactsContract.Contacts.CONTENT_ITEM_TYPE);
                intent1.putExtra(ContactsContract.Intents.Insert.PHONE,
"6363986200");
                  intent1.putExtra(ContactsContract.Intents.Insert.NAME, 
"Boone's
Trail Branch (BT)");
                  intent1.putExtra(ContactsContract.Intents.Insert.POSTAL, "#10
Fiddlecreek Plaza");

                                startActivity(intent1);
                                break;

How can you add the city, state, zip and get it into the right place?
Or,  is there a better way to do this?

-- 

2. design patterns to develop Android

Guys, good night!
I wonder if you know some material about design patterns to develop
Android?
I will make a final post-graduate course on the subject.
Thanks
Marcelo

-- 

3. how do you play MP3 file with command

4. Problem with getting GPS data when using Camera

5. Help with invoking Android Medfield Gingerbread to stop/exit Media Player with am command

6. Any Android Intent is broadcasted by System while launching any app(like Contacts, Gallery,..) from Home screen?

7. Apply tween animation to a drawable