Wear emulator shows manual activity start class

I am trying to sync my mobile device with android wear, the connection was successful, but when the emulator comes on, it starts the manual main activity.

My 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 manifest file is

  <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 is missing help me out thnx for help

+3


source to share


1 answer


Yes, it will show the portable MainActivity in Watch because you have installed the handheld apk in Watch. You have to change the module from app to wearable to install, for example

Use the following module to install,

enter image description here



Instead of the following,

enter image description here

0


source







All Articles