Merge pull request #621 from krabaey/feature-osmand-intent

osmand specific intents
This commit is contained in:
vshcherb 2014-05-03 18:21:23 +02:00
commit 098e1a6782
3 changed files with 4 additions and 2 deletions

View file

@ -85,6 +85,7 @@
<action android:name="android.intent.action.VIEW" /> <action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.DEFAULT" />
<data android:scheme="google.navigation"/> <data android:scheme="google.navigation"/>
<data android:scheme="osmand.navigation"/>
</intent-filter> </intent-filter>
<receiver android:name="net.osmand.plus.audionotes.MediaRemoteControlReceiver"> <receiver android:name="net.osmand.plus.audionotes.MediaRemoteControlReceiver">
@ -130,6 +131,7 @@
<activity android:name="net.osmand.plus.activities.search.GeoIntentActivity"> <activity android:name="net.osmand.plus.activities.search.GeoIntentActivity">
<intent-filter> <intent-filter>
<data android:scheme="geo" /> <data android:scheme="geo" />
<data android:scheme="osmand.geo" />
<action android:name="android.intent.action.VIEW" /> <action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.DEFAULT" />
</intent-filter> </intent-filter>

View file

@ -342,7 +342,7 @@ public class MapActivity extends AccessibleActivity {
{ {
showImportedGpx(data.getPath()); showImportedGpx(data.getPath());
} }
else if("google.navigation".equals(scheme)) else if("google.navigation".equals(scheme) || "osmand.navigation".equals(scheme))
{ {
final String schemeSpecificPart = data.getSchemeSpecificPart(); final String schemeSpecificPart = data.getSchemeSpecificPart();

View file

@ -276,7 +276,7 @@ public class GeoIntentActivity extends OsmandListActivity {
return null; return null;
} }
} }
if ("geo".equals(scheme)) if ("geo".equals(scheme) || "osmand.geo".equals(scheme))
{ {
//geo: //geo:
final String schemeSpecific = data.getSchemeSpecificPart(); final String schemeSpecific = data.getSchemeSpecificPart();