Last active
October 27, 2015 18:12
-
-
Save drmercer/67302c7ccd2b4454fb07 to your computer and use it in GitHub Desktop.
Revisions
-
drmercer revised this gist
Oct 27, 2015 . No changes.There are no files selected for viewing
-
drmercer renamed this gist
Oct 27, 2015 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,4 @@ <!-- This is a mock AndroidManifest.xml file, to show you the general context of this intent filter --> <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="net.danmercer.ponderizer" > -
drmercer created this gist
Oct 27, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,24 @@ <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="net.danmercer.ponderizer" > <application ... > ... <!-- Accept text via ACTION_SEND only from the Github Android app ("com.github.mobile") --> <activity android:name=".MyShareTextActivity" android:label="Add text to MyApp" > <intent-filter android:label="Share to MyApp"> <action android:name="android.intent.action.SEND" /> <category android:name="com.github.mobile" /> <!-- This ^ makes it only accept intents from package "com.github.mobile" --> <data android:mimeType="text/plain" /> </intent-filter> </activity> ... </application> </manifest>