Alibabacloud.com offers a wide variety of articles about icloud calendar on android, easily find your icloud calendar on android information here online.
Turn: http://clip.artchiu.org/2010/09/21/android-google-calendar-%E6%97%A5%E6%9B%86%E5%90%8C%E6%AD%A5%E8%88%8A%E8%B3%87%E6%96%99/
Original article: [Share] Android Google Calendar daily synchronization of metadata-mobile01 discussion group
I don't know if anyone has found that using the
1) API interfaceAndroid.content.ContentProviderAndroid.content.ContentResolverAndroid.provider.CalendarContractIn addition, when creating a calendar account (inserting a piece of data into the system's calendars table), you need to set the adapter mode to view Calendarcontract help.2) Periodic rule string RruleThe specific composition of rrule can be referred to RFC5545, but it should be noted that the Android
(Calendar.month)) +1; //days of the current month: Current day intDay_of_month = Cal.Get(Calendar.day_of_month); //Current time: Hour_of_day-24 hour system; HOUR-12 hour system inthour = Cal.Get(Calendar.hour_of_day); //Current points intminute = Cal.Get(Calendar.minute); //Current seconds intSecond = Cal.Get(Calendar.second); //0-morning; 1-PM intAMPM = Cal.Get(CALENDAR.AM_PM); //the first week of the current year intWeek_of_year = Cal.Get(calendar.week
2015 Android Case tour case eight: Registration calendar knowledge Points:
Use of the GridView
Use of SQLite
Documents involved:
Res->layout->activity_main.xml Main layout file
Res->layout->date.xml Layout file
Src->db->dbhelper.javajava file
Src->db->signdao.javajava file
Src->activity->mainactivity.javajava file
Activity_main.xmlDate.xml Mainactivity.javap
See the number on the iphone calendar icon will change with the date changes, recently on the Android platform also studied, the implementation method is as follows:directly on the sourceChanged it in the launcher.First, in the Iconcache.java file, find the method private CacheEntry cachelocked (componentname componentname, ResolveInfo info,HashmapIn Entry.icon = Utilities.createiconbitmap (icon, mcontext);
To create a calendar:
Calendar cal = Calendar.getinstance ();Intent Intent = new Intent (intent.action_edit);Intent.settype ("Vnd.android.cursor.item/event");Intent.putextra ("BeginTime", Cal.gettimeinmillis ());Intent.putextra ("AllDay", true);Intent.putextra ("Rrule", "freq=yearly");Intent.putextra ("Endtime", Cal.gettimeinmillis () +60*60*1000);Intent.putextra ("title", "A Test Event from
1. Add 1 for monthCanlendar.month + 1Because the Roman calendar is used, the value returned by Calendar.month is not the month of the year, but the difference from the first month in the current month.For example: The current month is September, distance January, the difference is 8, so canlendar.month returns 8 instead of 92. When to get a week minus 1Calendar.day_of_week-1Getting the current date is the day of the week when it's time to think about
1. A few days ago someone asked me to remember when she washed the hair, and then remember to remind her, so complex things, I had to think of something to help me, and then this is 2. Just look at the effect.Initial situationClick on one as a markerClick once again to delete3. Here also to thank the predecessors of the Code as a reference, after all, have not written about the calendar aspects of things, others did write well, I added on the original
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.