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, Rajiv <[email protected]> wrote:

> 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 <[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]<android-developers%[email protected]>
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
>  --
> 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]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
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

Reply via email to