2

私は数週間、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>
4

2 に答える 2

1

SmartWatch ホスト プロセスはデバイス自体で実行されるため、APK は電話自体にインストールされます。

これを機能させて SmartWatch に表示するための簡単なチェックリストを次に示します。

  • Google PLAY から SmartConnect (Liveware Mgr) アプリをダウンロードします。https://play.google.com/store/apps/details?id=com.sonyericsson.extras.liveware
  • スマートウォッチを Bluetooth 経由でデバイスに接続します。
  • スマートウォッチ ホスト アプリケーションをダウンロードします ( https://play.google.com/store/apps/details?id=com.sonyericsson.extras.smartwatch ) - 接続時にスマートウォッチによってプロンプトが表示されます
  • その後、Smartconnect アプリに移動して、デバイス上のどのアプリケーション (おそらく作成したもの) がスマートウォッチ用にインストールされているかを確認したり、Google PLAY ストアで新しいアプリケーションを見つけたりすることもできます。

これが明確でない場合はお知らせください。お気軽に詳細をお尋ねください。

于 2013-02-05T22:19:01.363 に答える