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

Winapi c++: DialogBox hangs when breaking a loop -

vb.net - Font adding using PDFsharp -

javascript - jQuery iScroll clickable list elements while retaining scroll? -