I have the following intent filter:
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="content" android:host="my.company.name" />
</intent-filter>
But this does not correspond to the following Intent:
Uri uri = new Uri.Builder().scheme("content").authority("my.company.name").appendPath("names").build()
uri = Uri.withAppendedPath(uri, id1);
uri = Uri.withAppendedPath(uri, "data");
startActivity(new Intent(Intent.ACTION_VIEW, uri));
Why is this happening?
source
share