[android-developers] Re: Track the moment when an activity is actually visible

2010-09-15 Thread avigadl
Apperently not enough :)

Will try it.

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


Re: [android-developers] Re: Track the moment when an activity is actually visible

2010-09-15 Thread TreKing
On Wed, Sep 15, 2010 at 10:40 AM, avigadl  wrote:

> Any other ideas ?


Take some time to read the docs?

It took less then a minute to find this:
 public void onWindowFocusChanged (boolean hasFocus)
Since: API Level
1
Called when the current
Windowof
the activity gains or loses focus.
*This is the best indicator of whether this activity is visible to the user.
*

-
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 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: Track the moment when an activity is actually visible

2010-09-15 Thread avigadl
The onResume()  is almost adequate.
The problem is that it is called before the animation of the entering
activity starts.
Practically speaking that's not the time when the activity is actually
visible.
Any other ideas ?

-- 
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: Track the moment when an activity is actually visible

2010-09-15 Thread Kumar Bibek
onStart??

On Sep 15, 12:18 am, TreKing  wrote:
> On Tue, Sep 14, 2010 at 2:13 PM, avigadl  wrote:
> > How can I track this moment?
>
> onResume?
>
> -
> 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 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