Skip to content

Instantly share code, notes, and snippets.

View anilthummar's full-sized avatar
🏠
Working from home

Anil Thummar anilthummar

🏠
Working from home
  • BrainvireInfotech.pvt.ltd
  • Ahmadabad
View GitHub Profile
@anilthummar
anilthummar / carousel.dart
Created May 3, 2023 06:46 — forked from IshanFx/carousel.dart
Flutter Carousel
@anilthummar
anilthummar / gist:b5b0753da854a0684d07e098a06b3441
Created January 25, 2018 04:06 — forked from brandhill/gist:5883253
Android : Add a reminder/event in calendar
if (Build.VERSION.SDK_INT >= 14) {
Intent intent = new Intent(Intent.ACTION_INSERT)
.setData(Events.CONTENT_URI)
.putExtra(CalendarContract.EXTRA_EVENT_BEGIN_TIME, beginTime.getTimeInMillis())
.putExtra(CalendarContract.EXTRA_EVENT_END_TIME, endTime.getTimeInMillis())
.putExtra(Events.TITLE, "Yoga")
.putExtra(Events.DESCRIPTION, "Group class")
.putExtra(Events.EVENT_LOCATION, "The gym")
.putExtra(Events.AVAILABILITY, Events.AVAILABILITY_BUSY)
.putExtra(Intent.EXTRA_EMAIL, "rowan@example.com,trevor@example.com");