我有一个小部件可以切换到 tvout 我想通过“am start”命令手动启动该小部件。这是 manifest.xml:
<?xml version="1.0" encoding="utf-8"?>
<manifest android:versionCode="8" android:versionName="2.2.1" package="com.archos.tvoutwidget"
xmlns:android="http://schemas.android.com/apk/res/android">
<uses-sdk android:minSdkVersion="8" android:targetSdkVersion="8" />
<uses-feature android:name="android.hardware.tvout" />
<application android:label="@string/app_name" android:icon="@drawable/app_icon">
<activity android:label="@string/app_name" android:name=".TvOutWidget" android:screenOrientation="landscape" android:configChanges="orientation" />
<receiver android:label="@string/app_name" android:icon="@drawable/app_icon" android:name="TvOutWidgetProvider">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
<action android:name="archos.intent.action.ARCHOS_UPDATE_TVOUT_WIDGET" />
</intent-filter>
<meta-data android:name="android.appwidget.provider" android:resource="@xml/tvout_widget_info" />
</receiver>
</application>
</manifest>
这可能吗 ?