i developed a app something like appointment where user will enter some details along with date and time he wants. Then i want to display that appointment details in calendar for particular date and time that was selected by user.
i have used following link to add event to calendar. here
In this i am adding all my details to ContentValues using put().Through this code i am able to add event to current date only since i am adding cal.getTimeInMillis().
how can add my appointment to particular date?
can anybody solve my issue?
please help me, thanks in advance.
you can set event to particular time by adding time in milliseconds. Example use
cal.getTimeInMillis()+60*60*1000instaed ofcal.getTimeInMillis()to get any particular dateExample