I need simple calendar for my android application, in which I can pick a date from it, and read data from database based on picked date. I'm having trouble finding good and simple example of calendar. Does anybody have a source code of simple calendar? Thanks!
相关问题
- How can I create this custom Bottom Navigation on
- Bottom Navigation View gets Shrink Down
- How to make that the snackbar action button be sho
- Listening to outgoing sms not working android
- How to create Circular view on android wear?
相关文章
- android开发 怎么把图片放入drawable的文件夹下
- android上如何获取/storage/emulated/下的文件列表
- androidStudio有个箭头不认识
- SQLite不能创建表
- Windows - Android SDK manager not listing any plat
- Animate Recycler View grid when number of columns
- Why is the app closing suddenly without showing an
- Android OverlayItem.setMarker(): Change the marker
You should use a DatePicker... Because that's the only simple way through which users can pick a date and read data from a database based on that date... But hey you should also show your effort...
Checkout these links with source code example, you'll get an idea about it:
Android-Calendar-Widget
Android-Calendar-GridView-Adapter
android-calendar-provider-tests
Here is a sample calendar app you can go through. http://droidwalk.blogspot.in/2012/11/android-calendar-sample.html#more
The Calendar API is available as of Android 4.0.
Creating new events is done via Intents and does not require any permission. Setting properties of the event is done via Intent extras. The user will be prompted if the event should be created.
For example the following will prompt the user if an event should be created with certain details.
You can also add dates and time, if this event is repeated and the like. See the comments in the coding for examples.
More about this article
and more calendar api tutorials
Mobile tut plus tutorials
Official Calender Documentation
Here is another good simple calender example tutorials.