Well this code works perfectly on phones running 1.x and 2.x:
Intent intent = new Intent(Intent.ACTION_EDIT);
intent.setType("vnd.android.cursor.item/event");
intent.putExtra("title", "Some title");
intent.putExtra("description", "Some description");
intent.putExtra("beginTime", eventStartInMillis);
intent.putExtra("endTime", eventEndInMillis);
startActivity(intent);
In honeycomb, only beginTime and endTime are taken. title and
description are not honored.
Solution can be either expose the Calendar content provider API or
publish the acceptable parameters to the Calendar intent.
The worst is do something half-assed
2011/9/28 Kostya Vasilyev <[email protected]>:
> Could this be because there is no official, supported API for the
> device-local Calendar application? Which means any code based on reverse
> engineering can break at any time (besides probably being illegal)?
>
> There is a official, supported Web-based API for Google Calendar - use that
> instead.
>
> --
> Kostya Vasilyev
>
> 29.09.2011 9:42 пользователь "Hong" <[email protected]> написал:
>> same issue on galaxy tab... Google, what's up w/ broken APIs?
>>
>> On Fri, Sep 16, 2011 at 7:02 AM, Arno <[email protected]> wrote:
>>> Hi
>>> I have the same issue with an Asus Eeepad Transformer on Honeycomb 3.2
>>> for
>>> title and eventLocation fields. Did you find a solution for this ?
>>>
>>> --
>>> 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
>>
>> --
>> 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
>
> --
> 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
--
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