[android-developers] Handling Orientation Changes that occur in another Activity

2010-06-03 Thread Jeff
I am having an interesting problem and would appreciate any advice. My app uses WebView as its primary view. Using a javascript hook, it can launch the camera so the user can take a picture. The camera is launched using Intent i = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);

Re: [android-developers] Handling Orientation Changes that occur in another Activity

2010-06-03 Thread Rajiv
Hi Jeff, I think your Browser won't get refressed. You need to make changes in *onConfigurationChanged* in that Activity. Regards, Rajiv On Thu, Jun 3, 2010 at 6:41 PM, Jeff jeff.th...@gmail.com wrote: I am having an interesting problem and would appreciate any advice. My app uses WebView

Re: [android-developers] Handling Orientation Changes that occur in another Activity

2010-06-03 Thread Jeff Thorn
Hi Rajiv, What changes should I make? I am saving the state in onSaveInstanceState and I am restoring the state in onCreate. I would think that the Bundle I saved the state to should preserve all the WebView settings, but that does not appear to be the case. Jeff On Thu, Jun 3, 2010 at 9:19 AM,

Re: [android-developers] Handling Orientation Changes that occur in another Activity

2010-06-03 Thread Rajiv
Hi Jeff, When you change the Phones orientations Activity onConfigurationChanged method got called, so you need to make changes in there. for ex. public void onConfigurationChanged(Configuration newConfig) { super.onConfigurationChanged(newConfig); //get Instance of the Browser say browser

Re: [android-developers] Handling Orientation Changes that occur in another Activity

2010-06-03 Thread Jeff Thorn
Yes, I understand that. But my problem is that I don't want to make any changes! :) Yet somehow, the scale is changing somewhere along the line between and I don't know the correct way to set it back. I don't want to hard code any scale settings. On Thu, Jun 3, 2010 at 9:39 AM, Rajiv