Reputation: 14066
Trying to handle a http with a textview
Pattern httpMatcher = Pattern.compile("https?://.*");
String httpViewURL = "myhttp";
Linkify.addLinks(label, httpMatcher, httpViewURL);
manifest file:
<activity android:exported="false"
android:name="*****.URLClickedActivity">
<intent-filter>
<category android:name="android.intent.category.DEFAULT"/>
<action android:name="android.intent.action.VIEW" />
<data android:scheme="myhttp" />
</intent-filter>
</activity>
Anyway I get this:
No Activity found to handle Intent { act=android.intent.action.VIEW dat= (has extras) }*
Upvotes: 3
Views: 3567
Reputation: 6073
Scheme
String httpViewURL = "myhttp";
should read
String httpViewURL = "myhttp://";
Upvotes: 4