androidemulationwear-oshandhelddevice

Wear emulator shows handheld activity launcher class


I am trying to sync Mobile handheld device to android wear, connection was done successfully but when comes to wear emulator it launches handheld main activity

My handheld manifest file:

  <activity
        android:name=".MainActivity"
        android:label="@string/app_name" >

        <intent-filter>
            <action android:name="android.intent.action.MAIN"></action>
            <category android:name="android.intent.category.LAUNCHER" ></category>

        </intent-filter>
    </activity>

my wear manifest manifest file

  <activity
        android:name=".WearActivity"
        android:label="@string/app_name" >
        <intent-filter>
            <action android:name="android.intent.action.MAIN"></action>
            <category android:name="android.intent.category.LAUNCHER" ></category>

        </intent-filter>
    </activity>

What am i forgetting or something missing help me out thnx in advance for help


Solution

  • Yes, It will show handheld device's MainActivity in Watch because you have installed handheld device's apk in Watch. You have to change module from app to wearable for installing like,

    Use following module to install,

    enter image description here

    Instead of following one,

    enter image description here