Merge pull request #621 from krabaey/feature-osmand-intent
osmand specific intents
This commit is contained in:
commit
098e1a6782
3 changed files with 4 additions and 2 deletions
|
@ -85,6 +85,7 @@
|
|||
<action android:name="android.intent.action.VIEW" />
|
||||
<category android:name="android.intent.category.DEFAULT" />
|
||||
<data android:scheme="google.navigation"/>
|
||||
<data android:scheme="osmand.navigation"/>
|
||||
</intent-filter>
|
||||
|
||||
<receiver android:name="net.osmand.plus.audionotes.MediaRemoteControlReceiver">
|
||||
|
@ -130,6 +131,7 @@
|
|||
<activity android:name="net.osmand.plus.activities.search.GeoIntentActivity">
|
||||
<intent-filter>
|
||||
<data android:scheme="geo" />
|
||||
<data android:scheme="osmand.geo" />
|
||||
<action android:name="android.intent.action.VIEW" />
|
||||
<category android:name="android.intent.category.DEFAULT" />
|
||||
</intent-filter>
|
||||
|
|
|
@ -342,7 +342,7 @@ public class MapActivity extends AccessibleActivity {
|
|||
{
|
||||
showImportedGpx(data.getPath());
|
||||
}
|
||||
else if("google.navigation".equals(scheme))
|
||||
else if("google.navigation".equals(scheme) || "osmand.navigation".equals(scheme))
|
||||
{
|
||||
final String schemeSpecificPart = data.getSchemeSpecificPart();
|
||||
|
||||
|
|
|
@ -276,7 +276,7 @@ public class GeoIntentActivity extends OsmandListActivity {
|
|||
return null;
|
||||
}
|
||||
}
|
||||
if ("geo".equals(scheme))
|
||||
if ("geo".equals(scheme) || "osmand.geo".equals(scheme))
|
||||
{
|
||||
//geo:
|
||||
final String schemeSpecific = data.getSchemeSpecificPart();
|
||||
|
|
Loading…
Reference in a new issue