[android-developers] Re: Detect currently used home screen

2009-06-30 Thread toff...@gmail.com

My misstake... I want another application to know if MyHomeApp is
installed and currently used as home screen. I'm not sure how to do it
with the PackageManager... :/ Can someone please give me a hint (if
it's possible to do).

BR,
Toffer

On 29 Juni, 09:14, Romain Guy romain...@google.com wrote:
 Hi,

 If your Activity's onCreate() is called, then it's probably running :)

 On Mon, Jun 29, 2009 at 12:12 AM, toff...@gmail.comtoff...@gmail.com wrote:

  Hi,

  What is the best way to programmaticallydetectwhether my custom home
  screen app (let's call it MyHomeApp) is currently installed and
  running on the device I'm using, instead of the standard Android home
  screen app? It's not enough to know that it's installed, I need to
  know if it's used at the moment too.

  BR,
  Toffer

 --
 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: Detect currently used home screen

2009-06-30 Thread toff...@gmail.com

That did the trick! Thanks!

BR,
Toffer

On 29 Juni, 19:44, Dianne Hackborn hack...@android.com wrote:
 Just use Intent.resolveActivity() on an Intent for the home screen (MAIN
 action, HOME category).





 On Mon, Jun 29, 2009 at 4:27 AM, Peli peli0...@googlemail.com wrote:

  Would it be possible to determine whether the user set it as default
  home screen through the PackageManager?
  (Would PackageManager.getPreferredPackages() return that information?
  I haven't tried it yet.. )

  Peli
 www.openintents.org

  On Jun 29, 9:14 am, Romain Guy romain...@google.com wrote:
   Hi,

   If your Activity's onCreate() is called, then it's probably running :)

   On Mon, Jun 29, 2009 at 12:12 AM, toff...@gmail.comtoff...@gmail.com
  wrote:

Hi,

What is the best way to programmatically detect whether my custom home
screen app (let's call it MyHomeApp) is currently installed and
running on the device I'm using, instead of the standard Android home
screen app? It's not enough to know that it's installed, I need to
know if it's used at the moment too.

BR,
Toffer

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

 --
 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, and so won't reply to such e-mails.  All such
 questions should be posted on public forums, where I and others can see and
 answer them.- Dölj citerad text -

 - Visa citerad text -
--~--~-~--~~~---~--~~
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] Detect currently used home screen

2009-06-29 Thread toff...@gmail.com

Hi,

What is the best way to programmatically detect whether my custom home
screen app (let's call it MyHomeApp) is currently installed and
running on the device I'm using, instead of the standard Android home
screen app? It's not enough to know that it's installed, I need to
know if it's used at the moment too.


BR,
Toffer
--~--~-~--~~~---~--~~
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: Changing the application icon at runtime?

2009-06-10 Thread toff...@gmail.com

Hi,

I'm also trying to find out if this is possible to do. Anyone who
knows?


/ Toffer

On 9 Juni, 14:58, pehrlo pehr.hans...@gmail.com wrote:
 Does somebody know if this is possibly in 1.5?

 From: hackbod hack...@gmail.com
 Date: 19 Okt 2008, 20:06
 Subject: How can the app icon be changed at runtime
 To: Android Developers

 Sorry, application icons can't be changed dynamically in 1.0.

 On Oct 18, 8:10 am, omni dbk...@gmail.com wrote:



  I'd like to be able to change the applicationiconatruntime; either
  by providing a completely new image, or by applying badgest to the
  existingicon.
  Can't seem to find a way to do it that actually works, and group
  search only reveals posts about changing views in  an activity.- Dölj 
  citerad text -

 - Visa citerad text -

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