アクティビティを起動する私の TestApp には、次のコードがあります。
public void startOperaView() {
Intent browserIntent = new Intent("org.droidtv.nettvbrowser.VIEW");
Uri luri = Uri.parse("connectedplanet.tv/olvs/test");
//browserIntent.setClass(getApplicationContext(), Browser.class);
//browserIntent.setAction("org.droidtv.nettvbrowser.VIEW");
browserIntent.setType("application/vnd.droidtv.sta");
browserIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK
| Intent.FLAG_INCLUDE_STOPPED_PACKAGES);
browserIntent.setData(luri);
startActivity(browserIntent);
}
また、パッケージ「org.droidtv.nettvbrowser」には、次の AndroidManifest.xml ファイルがあります。
<activity
android:name="org.droidtv.nettvbrowser.Browser"
android:configChanges="locale"
android:label="@string/app_name" >
<intent-filter>
<action android:name="org.droidtv.nettvbrowser.VIEW" />
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="application/vnd.droidtv.sta" />
</intent-filter>
</activity>
奇妙な部分は、インテントで実際のパッケージ名を指定すると、正常に動作するように見えることです。アクション インテントのみがこれらのエラーをスローしています。