You didn't mention if you've defined separate layout-land and layout- port for your activity.
On Jun 3, 9:11 am, Jeff <[email protected]> wrote: > 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); > > When the camera starts, it makes sense to use landscape mode, so the > user naturally turns the phone on its side. After the user takes a > picture, control returns to my launching Activity (actually, my > Acitivity gets restarted because it usually gets destroyed to free up > memory for the camera on my Moto Droid). When my WebView gets > recreated, I restore its state from the Bundle I saved in > onSaveInstanceState(). > > Now everything looks ok, except the phone is still in landscape mode. > However, when the user turns the phone upright bringing back into > portrait mode, my WebView takes up only half of the screen. Somewhere > along the way, the scale of my WebView got lost. This seems like such > a minor issue, but it is driving me crazy. > > Does anyone have an idea why this might be happening? What is the > correct way to preserve the scale of my WebView? I am hesitant to hard > code any scale factors because what looks good on my device may not be > the same for another. > > Thanks, > Jeff -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

