【问题标题】:Sony Xperia Smartwatch MN2 how to install an Apk file on it?索尼 Xperia Smartwatch MN2 怎么安装 Apk 文件就可以了?
【发布时间】:2013-02-05 08:19:19
【问题描述】:

我已经研究了几个星期的 Sony Smartwatch MN2。我仍然不知道如何使用他们的 SDK 安装新的 apk 文件。 apk 文件是我自己编写的。它可以在安卓手机上运行。如果有人知道如何并愿意帮助我。我会很感激的。

这是我的清单代码。

<?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>

【问题讨论】:

    标签: android sdk apk sony sony-smartwatch


    【解决方案1】:

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

    这里有一个快速清单,可以让它工作并在 SmartWatch 上显示:

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

    【讨论】:

    • 我按照您的步骤进行操作,但我创建的应用程序没有出现在 Smartconnect 应用程序中。
    • 您能否通过屏幕截图解释一下您在 Smartconnect 中的哪些应用程序?
    • 我的声誉不足以发布图片。我把它放在 ImageShack 上。 imageshack.us/photo/my-images/443/img0743t.jpg
    • 您是否尝试安装其中一个示例应用程序(随 SDK 提供)并检查是否显示?也发布你的 android manifest 代码。
    • 是的,我安装了 SampleSensorExtension。它没有出现。清单代码已发布在我的问题中。
    【解决方案2】:

    行不通,你必须让手表误以为它正在与应用程序对话,因为当手机安装智能手表应用程序(第一代,我仍然使用索尼 MN2)时,它会检查应用程序是否受您的特定手表支持,如果不是不安装,如果是,它会自动安装,但我花了 3 年才走到这一步,我仍然只能安装几乎无法运行的通用音乐播放器,最好买一些使用新磨损操作系统的东西,因为它在制作自制软件时更容易处理

    【讨论】:

      猜你喜欢
      • 2011-12-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-10-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多