[android-developers] Re: Still searching for HOME screen, and more question about ActivityManager

2009-06-05 Thread Max Salley

What do you mean by 'detect home screen'?

On Jun 5, 2:18 pm, sherry syang...@gmail.com wrote:
 I've asked how to detect home screen before. I'm still searching...

 I noticed when I press home button on Android emulator, I got this
 statement in catlog:

 INFO/ActivityManager(584):
  Starting activity: Intent { action=android.intent.action.MAIN
 categories={android.intent.category.HOME} flags=0x1020 comp=
 {com.android.launcher/com.android.launcher.Launcher} }

 so I went to ActivityManager to see if I can find a clue there. Here
 is my findings:

 1. I can not instantiate ActivityManager because it's constructor is
 not public, and it's not a singleton
 2. it has a function called: getRunningAppProcesses sounds promising
 -- would it give me all the running processes?
 3. since I can not instantiate ActivityManager I tried to use one of
 the derived class: RunningAppProcesseInfo to see if I can use it's
 parent methods: getRunningAppProcesses. Nope.

 Am I on the right track or totally lost?

 Thanks,

 Sherry
--~--~-~--~~~---~--~~
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: Still searching for HOME screen, and more question about ActivityManager

2009-06-05 Thread sherry

my app would like to know if the phone or emulator's HOME screen is
displayed either by a way to detect (check some status or so) or
someone notify me (notification to interested parties).

In BREW, registered apps used to receive notifications if the HOME
(idle) screen is displayed. Based on that, apps may act differently.

Cheers,

Sherry

On Jun 5, 2:10 pm, Max Salley msalley@gmail.com wrote:
 What do you mean by 'detect home screen'?

 On Jun 5, 2:18 pm, sherry syang...@gmail.com wrote:

  I've asked how to detect home screen before. I'm still searching...

  I noticed when I press home button on Android emulator, I got this
  statement in catlog:

  INFO/ActivityManager(584):
   Starting activity: Intent { action=android.intent.action.MAIN
  categories={android.intent.category.HOME} flags=0x1020 comp=
  {com.android.launcher/com.android.launcher.Launcher} }

  so I went to ActivityManager to see if I can find a clue there. Here
  is my findings:

  1. I can not instantiate ActivityManager because it's constructor is
  not public, and it's not a singleton
  2. it has a function called: getRunningAppProcesses sounds promising
  -- would it give me all the running processes?
  3. since I can not instantiate ActivityManager I tried to use one of
  the derived class: RunningAppProcesseInfo to see if I can use it's
  parent methods: getRunningAppProcesses. Nope.

  Am I on the right track or totally lost?

  Thanks,

  Sherry
--~--~-~--~~~---~--~~
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: Still searching for HOME screen, and more question about ActivityManager

2009-06-05 Thread Romain Guy

Home is an application like any other, it does not notify other apps
about when it comes to the front.

On Fri, Jun 5, 2009 at 3:09 PM, sherrysyang...@gmail.com wrote:

 my app would like to know if the phone or emulator's HOME screen is
 displayed either by a way to detect (check some status or so) or
 someone notify me (notification to interested parties).

 In BREW, registered apps used to receive notifications if the HOME
 (idle) screen is displayed. Based on that, apps may act differently.

 Cheers,

 Sherry

 On Jun 5, 2:10 pm, Max Salley msalley@gmail.com wrote:
 What do you mean by 'detect home screen'?

 On Jun 5, 2:18 pm, sherry syang...@gmail.com wrote:

  I've asked how to detect home screen before. I'm still searching...

  I noticed when I press home button on Android emulator, I got this
  statement in catlog:

  INFO/ActivityManager(584):
   Starting activity: Intent { action=android.intent.action.MAIN
  categories={android.intent.category.HOME} flags=0x1020 comp=
  {com.android.launcher/com.android.launcher.Launcher} }

  so I went to ActivityManager to see if I can find a clue there. Here
  is my findings:

  1. I can not instantiate ActivityManager because it's constructor is
  not public, and it's not a singleton
  2. it has a function called: getRunningAppProcesses sounds promising
  -- would it give me all the running processes?
  3. since I can not instantiate ActivityManager I tried to use one of
  the derived class: RunningAppProcesseInfo to see if I can use it's
  parent methods: getRunningAppProcesses. Nope.

  Am I on the right track or totally lost?

  Thanks,

  Sherry
 




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