On Sat, Jul 3, 2010 at 3:23 AM, YuviDroid <[email protected]> wrote:

> An example for the package and class name might be:
> packageName = "com.android.alarmclock";
> className = "com.android.alarmclock.AlarmClock";
> This intent would be used then to start the stock android clock (if it's
> present on the device).
>

Note that using explicit package and class names like this is using
implementation details.  Especially this kind of thing, these things will
vary all over the place: different manufacturers have their own apps, etc.
 And this is a great example because even in the standard platform the app
that actually handles the alarm clock has changed across releases -- in fact
the code here will not work on newer platforms that have replaced the alarm
clock app with the desk clock/dock.

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