Android 未找到smartatch的启动程序活动
我正在尝试运行索尼网站的样本 我附加了SmartExtensionAPI和SmartExtensionUtils。我使用了Android 未找到smartatch的启动程序活动,android,sony,sony-smartwatch,Android,Sony,Sony Smartwatch,我正在尝试运行索尼网站的样本 我附加了SmartExtensionAPI和SmartExtensionUtils。我使用了Properties->Android->Library,并选中了is Library 当我在Eclipse上运行一个示例(例如HelloWidget)时,我在控制台上遇到以下错误: HelloWidget] No Launcher activity found! HelloWidget] The launch will only sync the application p
Properties->Android->Library
,并选中了is Library
当我在Eclipse上运行一个示例(例如HelloWidget)时,我在控制台上遇到以下错误:
HelloWidget] No Launcher activity found!
HelloWidget] The launch will only sync the application package on the device!
但是安装完成了。。。我可以看到应用程序安装在我的智能手机上,我也可以看到SmartConnect上的应用程序,但不能看到smartwatch上的应用程序
有人知道我做错了什么吗
编辑:
AndroidManifest.xml
<activity android:name="com.example.sonymobile.smartextension.hellowidget.HelloWidgetPreferenceActivity"
android:label="@string/preference_activity_title" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
这是因为没有活动被设置为在应用程序启动时运行的启动器
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
代码清单中没有意图筛选器,请检查它。谢谢,我没有任何错误,但我在smartwatch上看不到应用。@user2202087共享您的清单,您在清单中声明了您的
活动
s。您确定HelloWidgetPreferenceActivity
在正确的包中,例如com.example.sonymobile.smartextension.hellowidget.HelloWidgetPreferenceActivity
?您是否可以尝试(从设备)卸载该应用程序,清理(从Eclipse)版本,然后(从Eclipse)在您的设备上运行/安装它。