我已经学习了几个星期的Sony Smartwatch MN2。我仍然不知道如何使用他们的SDK来安装新的apk文件。 apk文件由我编程。它可以在Android手机上运行。如果有人知道如何并且愿意帮助我。我将非常感谢。

这是我的清单代码。

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.samplepreferenceactivity2"
android:versionCode="1"
android:versionName="1.0" >

<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="17" />
<uses-permission
android:name="com.sonyericsson.extras.liveware.aef.EXTENSION_PERMISSION"/>
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/BaseStyle" >
<activity
android:name="SamplePreferenceActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<service android:name="SampleExtensionService" />
<receiver             android:name="com.sonyericsson.extras.liveware.extension.sensorsample.ExtensionReceiver"     android:exported="false">
<intent-filter>
<!-- Generic extension intents. -->
<action android:name="com.sonyericsson.extras.liveware.aef.registration.EXTENSION_REGISTER_REQUEST" />
<action android:name="com.sonyericsson.extras.liveware.aef.registration.ACCESSORY_CONNECTION"/>
<action android:name="android.intent.action.LOCALE_CHANGED" />
<!-- Notification intents -->
<action     android:name="com.sonyericsson.extras.liveware.aef.notification.VIEW_EVENT_DETAIL"/>
<action android:name="com.sonyericsson.extras.liveware.aef.notification.REFRESH_REQUEST"/>
<!-- Widget intents -->
<action android:name="com.sonyericsson.extras.aef.widget.START_REFRESH_IMAGE_REQUEST"/>
<action android:name="com.sonyericsson.extras.aef.widget.STOP_REFRESH_IMAGE_REQUEST"/>
<action android:name="com.sonyericsson.extras.aef.widget.ONTOUCH"/>
<action android:name="com.sonyericsson.extras.liveware.extension.util.widget.scheduled.refresh"/>

<!-- Control intents -->
<action android:name="com.sonyericsson.extras.aef.control.START"/>
<action android:name="com.sonyericsson.extras.aef.control.STOP"/>
<action android:name="com.sonyericsson.extras.aef.control.PAUSE"/>
<action android:name="com.sonyericsson.extras.aef.control.RESUME"/>
<action android:name="com.sonyericsson.extras.aef.control.ERROR"/>
<action android:name="com.sonyericsson.extras.aef.control.KEY_EVENT"/>
<action android:name="com.sonyericsson.extras.aef.control.TOUCH_EVENT"/>
<action android:name="com.sonyericsson.extras.aef.control.SWIPE_EVENT"/>
</intent-filter>
</receiver>
</application>
</manifest>

最佳答案

由于SmartWatch主机进程在设备本身上运行,因此APK已安装在手机本身上。

这是一个快速清单,可以使其正常运行并在SmartWatch上显示:


从Google PLAY下载SmartConnect(Liveware Mgr)应用程序。 https://play.google.com/store/apps/details?id=com.sonyericsson.extras.liveware
通过蓝牙将Smartwatch与设备连接。
下载Smartwatch主机应用程序(https://play.google.com/store/apps/details?id=com.sonyericsson.extras.smartwatch)-Smartwatch在连接时会提示
然后,您可以进入Smartconnect应用并检查设备上为Smartwatch安装了哪些应用(可能是您创建的应用),甚至可以在Google PLAY商店中发现新的应用


如果不清楚,请告诉我,随时询问更多解释。

10-07 22:18