String text = "<a href=\"http://directions/edit#Intent;scheme=http;package=com.digitalyou.android.directions;end\"> Get me to" + direction.getName() + " with Directions! </a>";
String html = "To get "
+ direction.getName()
+ " <a href=\"www.google.com\">Download Directions for Android</a> and click the below link from your phone:<br><br>" + text;
Intent shareIntent = new Intent(Intent.ACTION_SEND);
shareIntent.setType("text/html");
shareIntent.putExtra(Intent.EXTRA_SUBJECT, "How to get to " + direction.getName());
shareIntent.putExtra(Intent.EXTRA_TEXT, Html.fromHtml(html));
<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:host="directions" android:path="/edit" android:scheme="http"/></intent-filter>
Prova a posar el path sens la barra, i el scheme amb el ://
Has probado poniendo in hostname valido, "directions" no lo es. No hay ningun TLD. Algo Como "directions.com", la idea es so la app no esta instalado que el browser piece visualizarlo. Y filtar solo sobre el hostname para empezar.