Difficulties with showing android calendar in different versions -


i trying open user's calendar. wrote following code:

startmillis = calendar.getinstance().gettimeinmillis(); uri.builder builder = uri.parse("content://com.android.calendar").buildupon(); builder.appendpath("time"); contenturis.appendid(builder, startmillis); intent intent = new intent(intent.action_view).setdata(builder.build());  startactivity(intent); 

the problem works in version 4.0 not in 2.2, target version.

what doing wrong?

after trying different things, installed different calendar on avd , workes now.


Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -