use recommended intent filtering to allow Crosswords to launch in

response to http URLs, removing need for custom scheme and one step
from the invitation process.
This commit is contained in:
Eric House 2012-11-26 05:41:42 -08:00
parent 6f3881d53d
commit 302ad04ef9
2 changed files with 11 additions and 4 deletions

View file

@ -115,15 +115,22 @@
</intent-filter>
</receiver>
<activity android:name="DispatchNotify"
>
<activity android:name="DispatchNotify">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<action android:name="android.intent.action.EDIT" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="newxwgame"/>
</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="eehouse.org" android:pathPrefix="/and" />
</intent-filter>
</activity>
<!-- downloading dicts -->

View file

@ -104,7 +104,7 @@
<!-- <string name="default_host">10.0.2.2</string> -->
<string name="dict_url">http://eehouse.org/and_wordlists</string>
<string name="game_url_pathf">//%1$s/newgame.php</string>
<string name="game_url_pathf">//%1$s/and</string>
<string name="expl_update_url">Update checks URL</string>
<string name="default_update_url">http://eehouse.org/xw4/info.py</string>