On the HTC hero you can launch a calendar with this intent:
Intent i = new Intent(Intent.ACTION_MAIN);
i.setComponent(new ComponentName("com.htc.calendar",
"com.htc.calendar.MonthActivity"));
startActivity(i);
To get to the add-calendaritem-screen use:
Intent i = new Intent(Intent.ACTION_EDIT);
i.setComponent(new ComponentName("com.htc.calendar",
"com.htc.calendar.EditEvent"));
startActivity(i);
On Sep 14, 2:47 am, Dianne Hackborn <[email protected]> wrote:
> Sorry I don't believe there is a way. There is little calendar stuff in the
> SDK because most of it is not yet ready to be supported.
>
>
>
> On Sun, Sep 13, 2009 at 4:48 PM, drasticp <[email protected]> wrote:
>
> > There's seemingly no way to launch the calendar app in a generic way.
> > I've written a widget which allows you to launch the calendar. I use
> > the following Intent:
>
> > Intent intent = new Intent(Intent.ACTION_VIEW);
> > intent.setClassName("com.android.calendar",
> > "com.android.calendar.LaunchActivity");
> > startActivity(i);
>
> > However, this doesn't work on the Hero because HTC has apparently
> > replaced the calendar in their Sense UI. I'm looking for a "standard"
> > way to reach the calendar. I'd like for something like this to be
> > standardized:
>
> > Intent i = new Intent(Intent.ACTION_VIEW);
> > i.setType("text/calendar");
> > startActivity(i);
>
> > Does anyone think it would be worth trying to add this to the source?
> > It seems like there is a missing chunk of standards around calendar
> > events and/or iCal / vCal support. Does anyone know why?
>
> --
> 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