android-calendar

Is there any way to dynamically change an app icon like Calendar app does?

…衆ロ難τιáo~ 提交于 2019-11-26 12:27:46
问题 I wanna create an Android application, and I want to dynamically and automatically update the app icon similarly to how the calendar icon updates on a user\'s homescreen. The calendar changes its icon for each day showing day of month\'s number. There is also an Alarm clock app which changes its icon setting the current time, in other words, changing every minute. That isn\'t a widget, but a real app icon. Then it must have a way to do so. How can I do it in my app? 回答1: Whatever your home

Add Weekly Event to Calendar

試著忘記壹切 提交于 2019-11-26 12:17:34
问题 I would like to add an event to native Calendar , here i want to repeat this event on every Tuesday until 31 December 2015 : btnWeekly.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { Calendar calendar = Calendar.getInstance(); Intent intent = new Intent(Intent.ACTION_INSERT) .setData(Events.CONTENT_URI) .setType(\"vnd.android.cursor.item/event\") .putExtra(Events.TITLE, \"Tuesdays\") .putExtra(Events.DESCRIPTION, \"Tuesday Specials\") .putExtra(Events.EVENT

Change CalendarView style

我怕爱的太早我们不能终老 提交于 2019-11-26 12:16:30
问题 I\'m trying to add a CalendarView in my application, which uses the Theme.Light theme. The problem is, the days numbers of this calendar are rendered in white, so while using a light theme, you can\'t see them. Right now, I have the following code in my XML layout file : <CalendarView android:id=\"@+id/calendar1\" android:layout_width=\"500dp\" android:layout_height=\"300dp\"/> I tried to force the calendar theme like this : <CalendarView android:id=\"@+id/calendar1\" android:layout_width=\

How to get national holidays of selected country

无人久伴 提交于 2019-11-26 10:25:41
问题 I\'m writing an app that allows the user to select a country from a list. When they pick a country, a list of national holidays of that country appears. I\'ve seen CalendarProvider and Google Calendar V3, but they seem to only provide the current user\'s calendar. How can I get the national holidays of a specific country? Any suggestion would help me. Update: I\'ve found this post which can get a list of holidays in JSON format. In this example, the country code is defined by calendar ID, for

How to read and edit Android calendar events using the new Android 4.0 Ice Cream Sandwich API?

本秂侑毒 提交于 2019-11-26 09:17:54
问题 We are trying to show user the Ice cream Sandwich calendar view, when they want to add a new event. We can only test this in emulator. The other problem is that we can\'t find any examples how to use CalendarProvider. This is the right class when it comes to dealing with Sandwich calendar? Would this be easier to do with Google Gdata API? [EDIT] So what we got working was adding an event to calendar but it was not through the API, we open the calendar in the correct view. But now the problem

Android CalendarView for Showing Events

£可爱£侵袭症+ 提交于 2019-11-26 03:57:44
问题 I want to show a calendar with events using different colors on the date similar to default Calendar application. But I don\'t see any such API on the default calendar view. Can anyone please direct me on right direction how to proceed with this? Should I extend default calendar and add my own functionality? Or should I use 5x5 text boxes with PageViewer and fragments? 回答1: The built in CalendarView widget doesn't expose the ability to change the color of the calendar cells in month view. See