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 <[email protected]> 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 <[email protected]> wrote:
> > Hi,
> >
> > If your Activity's onCreate() is called, then it's probably running :)
> >
> > On Mon, Jun 29, 2009 at 12:12 AM, [email protected]<[email protected]>
> 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
> > [email protected]
> >
> > 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
[email protected]

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.

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