I try to launch my wear app by Start voice command. I followed the documentation Adding Voice Capabilities. But when I try to launch the app by saying (OK Google) "Start my app" I receive the Google Now web search results back for the topics related to the "Start my app" instead of launching the app itself.
<activity android:label="my app" android:name=".MainActivityWear" android:theme="@android:style/Theme.DeviceDefault.Light"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity
My feeling is that the documentation is outdated and the Start command used to be in older versions of Android wear. (My version is 1.3.0 with OS 5.1.1.) I think so, because in my version of the wear to activate the Speak Now card I have to say "OK Google" or swipe the screen from left. The Settings/Launcher with the app list is 2 pages left from the Speak Now card, rather than at the bottom of the card as mentioned in this documentation: Wearable Applications Launch. Especially the part saying the following looks unfamiliar to my watch behaviour:
To manually launch the app, touch the watch face and scroll to the last action, which is “Start...”. Then select your app from the list of installed apps, in this case First_Wearable.
Is anyone able to launch apps in watch by START voice command? Am I doing something wrong?
Google on Thursday announced that its voice assistant can now open and search through some of the most popular apps available for Android phones. Google partnered with 30 apps for the launch like Walmart, Spotify, Snapchat, Twitter, Nike Run Club, Nike Adapt, Mint and Discord, and says more apps are coming soon.
Open an app already on your watch If your screen is dim, tap it to wake up the watch. To open your list of apps, press the Power button. Tap the app you want to open.
You need to create a custom activity command. See the docs
<application> <activity android:name="StartRunActivity" android:label="my app"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> </application>
Instead, you used:
<activity android:label="my app" android:name=".MainActivityWear" android:theme="@android:style/Theme.DeviceDefault.Light"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity>
You used ".MainActivityWear" -> instead of: "StartRunActivity"
That may be a keyword, I'm not sure, or maybe the dot in the name is causing the problem.
Also, try it without the theme.
And do you have everything under the tag?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With