[android-developers] Re: Activity.showDialog/dismissDialog BUG

2009-01-23 Thread blindfold

Not sure if it is related to your problem, but I'm reminded of the
progress dialog problem discussed earlier at
http://groups.google.com/group/android-developers/browse_thread/thread/1211b385358857b9/

On Jan 22, 11:30 pm, Stoyan Damov  wrote:
> Hi guys,
 ...
> Has anyone experienced that and does anyone knows if there's a
> workaround for this no matter how pervert it might be.
>
> Thanks,
> Stoyan
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Activity.showDialog/dismissDialog BUG

2009-01-22 Thread Dianne Hackborn
On Thu, Jan 22, 2009 at 4:36 PM, Stoyan Damov wrote:

> Hang on - my problem is not related to locking the entire surface, but
> only a part of it, passing a dirty rectangle. Locking the entire
> surface works, locking a part of it doesn't. I would assume that
> lockCanvas(dirtyRect) is widely used in the system but would
> appreciate you confirming that.


Yeah that's what I meant, for example it is used every time we are redrawing
a dirty part of the view hierarchy.

-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support.  All such questions should be posted on public
forums, where I and others can see and answer them.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Activity.showDialog/dismissDialog BUG

2009-01-22 Thread Stoyan Damov

Well, at least I found that this behavior is not 100% reproducible,
because I wrote that sample app which demonstrates the bug, and it
works as expected :(
My code, and the code in the sample app is pretty much the same, but I
guess I'll have to review it a few more times.

Thanks Romain - that actually helped ;)

Cheers,
Stoyan

On Fri, Jan 23, 2009 at 2:00 AM, Stoyan Damov  wrote:
> On Fri, Jan 23, 2009 at 1:49 AM, Romain Guy  wrote:
>>
>> Try with a longer sleep. If it still doesn't work, could you come up
>> with a small and simple reproducible case that we can run on our side
>> to see what's going? You can also file a bug at
>> code.google.com/p/android/issues.
>
> I put the thread to sleep 5 seconds - same story - I see the events
> logged but nothing is displayed on screen.
> I cannot possibly think of a smaller case than the one I described but
> if that'll help, I'll make the smallest possible app with single
> activity that demonstrates the issue.
>
> Cheers
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Activity.showDialog/dismissDialog BUG

2009-01-22 Thread Stoyan Damov

On Fri, Jan 23, 2009 at 1:57 AM, Dianne Hackborn  wrote:
> On Thu, Jan 22, 2009 at 2:40 PM, Stoyan Damov 
> wrote:
>>
>> I wish someone read my post about the
>> surfaceHolder.lockCanvas(dirtyRectangle) post too :)
>
> I read it, but lockCanvas() is used by the system fairly extensively and
> works in those cases.  Without having simple easy to run code that
> demonstrates the problem, there is not much help that can be offered.

Hang on - my problem is not related to locking the entire surface, but
only a part of it, passing a dirty rectangle. Locking the entire
surface works, locking a part of it doesn't. I would assume that
lockCanvas(dirtyRect) is widely used in the system but would
appreciate you confirming that.

Cheers,
Stoyan

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Activity.showDialog/dismissDialog BUG

2009-01-22 Thread Stoyan Damov

On Fri, Jan 23, 2009 at 1:49 AM, Romain Guy  wrote:
>
> Try with a longer sleep. If it still doesn't work, could you come up
> with a small and simple reproducible case that we can run on our side
> to see what's going? You can also file a bug at
> code.google.com/p/android/issues.

I put the thread to sleep 5 seconds - same story - I see the events
logged but nothing is displayed on screen.
I cannot possibly think of a smaller case than the one I described but
if that'll help, I'll make the smallest possible app with single
activity that demonstrates the issue.

Cheers

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Activity.showDialog/dismissDialog BUG

2009-01-22 Thread Dianne Hackborn
On Thu, Jan 22, 2009 at 2:40 PM, Stoyan Damov wrote:

> I wish someone read my post about the
> surfaceHolder.lockCanvas(dirtyRectangle) post too :)


I read it, but lockCanvas() is used by the system fairly extensively and
works in those cases.  Without having simple easy to run code that
demonstrates the problem, there is not much help that can be offered.

-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support.  All such questions should be posted on public
forums, where I and others can see and answer them.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Activity.showDialog/dismissDialog BUG

2009-01-22 Thread Romain Guy

Try with a longer sleep. If it still doesn't work, could you come up
with a small and simple reproducible case that we can run on our side
to see what's going? You can also file a bug at
code.google.com/p/android/issues.

On Thu, Jan 22, 2009 at 3:46 PM, Stoyan Damov  wrote:
>
> Any ideas?
>
> On Fri, Jan 23, 2009 at 12:40 AM, Stoyan Damov  wrote:
>> Hi Romain,
>>
>> Actually before I posted this I put a SystemClock.sleep(1000) between
>> the 2 calls and it didn't make any difference.
>> But thanks for asking me about this, it seems you guys at Google are
>> paying attention! I wish someone read my post about the
>> surfaceHolder.lockCanvas(dirtyRectangle) post too :)
>>
>> Cheers,
>> Stoyan
>>
>> On Fri, Jan 23, 2009 at 12:37 AM, Romain Guy  wrote:
>>>
 DIALOG 888: about to display: Blah
 // onCreateDialog is NOT called, which is what's expected, the dialog is 
 cached
 DIALOG 888: prepared with message: Blah
 DIALOG 888: dismissed
>>>
>>> How much time is spent between "prepared with message" and
>>> "dismissed."? It looks like you are simply dismissing the dialog
>>> immediately.
>>>
>>> --
>>> Romain Guy
>>> Android framework engineer
>>> romain...@android.com
>>>
>>> Note: please don't send private questions to me, as I don't have time
>>> to provide private support.  All such questions should be posted on
>>> public forums, where I and others can see and answer them
>>>
>>> >>
>>>
>>
>
> >
>



-- 
Romain Guy
Android framework engineer
romain...@android.com

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Activity.showDialog/dismissDialog BUG

2009-01-22 Thread Stoyan Damov

Any ideas?

On Fri, Jan 23, 2009 at 12:40 AM, Stoyan Damov  wrote:
> Hi Romain,
>
> Actually before I posted this I put a SystemClock.sleep(1000) between
> the 2 calls and it didn't make any difference.
> But thanks for asking me about this, it seems you guys at Google are
> paying attention! I wish someone read my post about the
> surfaceHolder.lockCanvas(dirtyRectangle) post too :)
>
> Cheers,
> Stoyan
>
> On Fri, Jan 23, 2009 at 12:37 AM, Romain Guy  wrote:
>>
>>> DIALOG 888: about to display: Blah
>>> // onCreateDialog is NOT called, which is what's expected, the dialog is 
>>> cached
>>> DIALOG 888: prepared with message: Blah
>>> DIALOG 888: dismissed
>>
>> How much time is spent between "prepared with message" and
>> "dismissed."? It looks like you are simply dismissing the dialog
>> immediately.
>>
>> --
>> Romain Guy
>> Android framework engineer
>> romain...@android.com
>>
>> Note: please don't send private questions to me, as I don't have time
>> to provide private support.  All such questions should be posted on
>> public forums, where I and others can see and answer them
>>
>> >>
>>
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Activity.showDialog/dismissDialog BUG

2009-01-22 Thread Stoyan Damov

Hi Romain,

Actually before I posted this I put a SystemClock.sleep(1000) between
the 2 calls and it didn't make any difference.
But thanks for asking me about this, it seems you guys at Google are
paying attention! I wish someone read my post about the
surfaceHolder.lockCanvas(dirtyRectangle) post too :)

Cheers,
Stoyan

On Fri, Jan 23, 2009 at 12:37 AM, Romain Guy  wrote:
>
>> DIALOG 888: about to display: Blah
>> // onCreateDialog is NOT called, which is what's expected, the dialog is 
>> cached
>> DIALOG 888: prepared with message: Blah
>> DIALOG 888: dismissed
>
> How much time is spent between "prepared with message" and
> "dismissed."? It looks like you are simply dismissing the dialog
> immediately.
>
> --
> Romain Guy
> Android framework engineer
> romain...@android.com
>
> Note: please don't send private questions to me, as I don't have time
> to provide private support.  All such questions should be posted on
> public forums, where I and others can see and answer them
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Activity.showDialog/dismissDialog BUG

2009-01-22 Thread Romain Guy

> DIALOG 888: about to display: Blah
> // onCreateDialog is NOT called, which is what's expected, the dialog is 
> cached
> DIALOG 888: prepared with message: Blah
> DIALOG 888: dismissed

How much time is spent between "prepared with message" and
"dismissed."? It looks like you are simply dismissing the dialog
immediately.

-- 
Romain Guy
Android framework engineer
romain...@android.com

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---