开发者

How to get calendar event info in Android when specific event is clicked?

开发者 https://www.devze.com 2023-02-08 05:20 出处:网络
It is possible to get the events within a time range but is it possible to get the event info when user clicks any part in certain events.

It is possible to get the events within a time range but is it possible to get the event info when user clicks any part in certain events.

For example if Event contains a UR开发者_运维百科I which is linkified is it possible for application to know the source event which was clicked?


You can try this:

`long end = now + search //in millis

Uri uri = Uri.withAppendedPath(Instances.CONTENT_URI, String.format("%d/%d", now, end));

Cursor c = resolver.query(uri, PROJECTION, selection, null, SORT_ORDER);`

0

精彩评论

暂无评论...
验证码 换一张
取 消