Well I have some kind of a Drawing view in the second tab, and that view is
being drawn from outside, which works...even if that View is not in focus.

Now, On the first tab, I have a button which when clicked, tries to save the
Drawing view's content to a file as an image. At this point, when I call
getDrawingCache to get the bitmap, it always returns null.

But, if I just, for once, switch over to the second tab, I always get a
valid bitmap of that drawing view.

Kumar Bibek
http://techdroid.kbeanie.com
http://www.kbeanie.com



On Wed, May 18, 2011 at 12:26 AM, TreKing <[email protected]> wrote:

> On Tue, May 17, 2011 at 1:42 PM, Kumar Bibek <[email protected]> wrote:
>
>> I have a situation where, I need to do something on the View2 (that
>> is under the 2nd tab) on some event of the first tab without switching the
>> tabs. But since the View2 hasn't been drawn, I can't do that right now.
>>
>
> Why would you need to redraw the second view if it's not visible?
> What are you trying to do that requires the view to first have been drawn?
>
> Without knowing more, my first guess would be at invalidate().
>
>
> -------------------------------------------------------------------------------------------------
> TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
> transit tracking app for Android-powered devices
>
>  --
> 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

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