diff options
author | Michael Chan <mchan@android.com> | 2009-07-07 13:39:33 -0700 |
---|---|---|
committer | Michael Chan <mchan@android.com> | 2009-07-07 16:41:23 -0700 |
commit | b84a151490b03c7083b8f517b83366bb11f17f51 (patch) | |
tree | f6bba531df2d452d06501da425ae716938d25554 /AndroidManifest.xml | |
parent | b12ecbb90d06018fa092a2ac8253767fb62ed092 (diff) | |
download | android_packages_apps_Calendar-b84a151490b03c7083b8f517b83366bb11f17f51.tar.gz android_packages_apps_Calendar-b84a151490b03c7083b8f517b83366bb11f17f51.tar.bz2 android_packages_apps_Calendar-b84a151490b03c7083b8f517b83366bb11f17f51.zip |
Modified Calendar app to intercept calendar weblinks
Added intent-filter to intercept http[s]://www.google.com/calendar/[hosted/.*/]event.*
and show the EventInfoActivity if the event is known. Otherwise, resend the intent
and have thebrowser handle the link.
modified: AndroidManifest.xml
modified: src/com/android/calendar/EventInfoActivity.java
new file: src/com/android/calendar/GoogleCalendarUriIntentFilter.java
Diffstat (limited to 'AndroidManifest.xml')
-rw-r--r-- | AndroidManifest.xml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 80bb31db..87a5f12b 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -77,6 +77,22 @@ <data android:mimeType="vnd.android.cursor.item/event" /> </intent-filter> </activity> + + <activity android:name="GoogleCalendarUriIntentFilter" android:label="@string/event_info_title" + android:theme="@android:style/Theme.Light" + android:configChanges="orientation|keyboardHidden"> + + <intent-filter> + <action android:name="android.intent.action.VIEW" /> + <category android:name="android.intent.category.DEFAULT" /> + <category android:name="android.intent.category.BROWSABLE" /> + <data android:scheme="http" android:host="www.google.com" android:pathPrefix="/calendar/event" /> + <data android:scheme="https" android:host="www.google.com" android:pathPrefix="/calendar/event" /> + <data android:scheme="http" android:host="www.google.com" android:pathPattern="/calendar/hosted/.*/event" /> + <data android:scheme="https" android:host="www.google.com" android:pathPattern="/calendar/hosted/.*/event" /> + </intent-filter> + </activity> + <activity android:name="SelectCalendarsActivity" android:label="@string/calendars_title" /> <activity android:name="CalendarPreferenceActivity" android:label="@string/preferences_title" /> <activity android:name="AlertActivity" android:launchMode="singleInstance" |