Giter Club home page Giter Club logo

android-calendarservice's Introduction

Calendar Service for Android

This Calendar Service is used for retrieving calendar events in a specified time range.

You can either copy the content to your own working directory, or export them to a .JAR file.

Please do not delete the references.

Basic use

For accessing the data, simply use CalendarService.readCalendar(class.this); this is the basic constructor which provides events for +/- 1 day time range in the calendar.

Please note that you can also simply use the context (instead of class.this) if you are, for instance, using fragments.

If you wish, you can also apply specific parameters based on the following constructor:

CalendarService.readCalendar(class.this, int days, int hours)

An example would look like the following:

CalendarService.readCalendar(class.this, 2, 5)

This would provide you +/- 2 days and +/- 5 hours respectively.

Constraints

Due to the changes in the API in Android 4.0 (Ice Cream Sandwich), this service can only be utilised by using a different cursor for API 4.0+. The cursor has been commented, but can simply be used by uncommenting the code block in the CalendarService.java class.

Credits

Thanks to SLEEPLisNight for finding a solution for the API 4.0 issue.

License

Licensed under the [Apache License, Version 2.0] (http://www.apache.org/licenses/LICENSE-2.0.html)

Authors

Created by David Laundav and contributed by Christian Orthmann.

android-calendarservice's People

Contributors

david-laundav avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.