-
Notifications
You must be signed in to change notification settings - Fork 58
/
AndroidManifest.xml
93 lines (90 loc) · 4.91 KB
/
AndroidManifest.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.mikedg.android.glass.launchy"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="14"
android:targetSdkVersion="14" />
<!-- For custom voice command showing up in the Ok, Glass menu -->
<uses-permission android:name="com.google.android.glass.permission.DEVELOPMENT" />
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/GlassTheme" >
<!-- <activity
android:name="com.mikedg.android.glass.launchy.MainActivity"
android:label="@string/app_name" android:clearTaskOnLaunch="true" android:launchMode="singleInstance">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
<action android:name="com.google.glass.action.ACTION_GO_TO_SETTINGS" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity> -->
<!-- Think this needs to be a seperate activity from other filters? -->
<activity
android:name="com.mikedg.android.glass.launchy.MainActivity"
android:label="@string/app_name" android:clearTaskOnLaunch="true" android:launchMode="singleInstance">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
<action android:name="com.google.glass.action.ACTION_GO_TO_SETTINGS" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<intent-filter>
<action
android:name="com.google.android.glass.action.VOICE_TRIGGER" />
</intent-filter>
<meta-data android:name="com.google.android.glass.VoiceTrigger"
android:resource="@xml/voice_trigger" />
</activity>
<!--<receiver android:name=".LongPressBroadcastReceiver" >-->
<!--<intent-filter android:priority="1000" >-->
<!-- Replaces normal, long press to Google, if this is a launcher, it's basically a system app -->
<!-- broke in XE11 -->
<!--<action android:name="com.google.glass.action.LONG_PRESS" />-->
<!--</intent-filter>-->
<!--</receiver>-->
<activity android:name="com.mikedg.android.glass.launchy.LaunchActivity" android:clearTaskOnLaunch="true" android:launchMode="singleInstance">
<intent-filter>
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.BROWSABLE"/>
<category android:name="android.intent.category.DEFAULT"/>
<data android:scheme="launchy"/>
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.BROWSABLE"/>
<category android:name="android.intent.category.DEFAULT"/>
<data android:scheme="youtube"/>
</intent-filter>
<!--<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="*.youtube.com" android:pathPrefix="/watch" />-->
<!--<data android:scheme="https" android:host="*.youtube.com" android:pathPrefix="/watch" />-->
<!--</intent-filter>-->
<!-- above, works, at least via command line specifying all pieces of browsable and default -->
<!-- cant ever get below working so tried to change it a bit -->
<!--<intent-filter>-->
<!--<action android:name="android.intent.action.VIEW" />-->
<!--<data android:scheme="http" android:host="*.youtube.com" android:pathPrefix="/watch" />-->
<!--<data android:scheme="https" android:host="*.youtube.com" android:pathPrefix="/watch" />-->
<!--</intent-filter>-->
<intent-filter android:priority="100">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="http" />
<data android:scheme="https" />
<data android:scheme="sausage" />
</intent-filter>
</activity>
</application>
</manifest>