można użyć calendar view to zrobić ... użyć metody setDate(long date)
aby ustawić datę w kalendarzu z datą chcesz
można też zrobić to przez dodawanie zdarzeń do kalendarza jak tak
zamiarem utworzyć kalendarz
Intent calIntent = new Intent(Intent.ACTION_INSERT);
calIntent.setData(CalendarContract.Events.CONTENT_URI);
startActivity(calIntent)
Siew kalendarza dat i godzin
Intent calIntent = new Intent(Intent.ACTION_INSERT);
calIntent.setType("vnd.android.cursor.item/event");
calIntent.putExtra(Events.TITLE, "Title here");
calIntent.putExtra(Events.EVENT_LOCATION, "Location here");
calIntent.putExtra(Events.DESCRIPTION, "Description here");
GregorianCalendar calDate = new GregorianCalendar(2012, 7, 15);
calIntent.putExtra(CalendarContract.EXTRA_EVENT_ALL_DAY, true);
calIntent.putExtra(CalendarContract.EXTRA_EVENT_BEGIN_TIME,
calDate.getTimeInMillis());
calIntent.putExtra(CalendarContract.EXTRA_EVENT_END_TIME,
calDate.getTimeInMillis());
startActivity(calIntent);
Przykładem tego może być postrzegane here
Bardziej szczegółową pomoc tutaj:-http: //www.vogella. com/articles/AndroidCalendar/article.html –
Wielkie dzięki! :) – user1921193
z przyjemnością pomogę :) –