How to share standalone Android Wear App for testing? - android

What i am trying :
I am new to the WearOS development. I am trying to create standalone app (for 1.x and 2.0) and share it for testing.
As I mentioned standalone app, it's not dependent on any mobile devices, neither Android or Apple phone.
What i have tried :
I have tried releasing an app to PlayStore as an "Internal test" and as a tester, I tried to install the app by web PlayStore install button. The PlayStore shows "... will be installed on your device soon". But still, it's not installing the app. My wear is connected to the internet but no luck.
Manifest Entry:
<uses-feature android:name="android.hardware.type.watch"/>
<meta-data
android:name="com.google.android.wearable.standalone"
android:value="true" />
<uses-library
android:name="com.google.android.wearable"
android:required="false"/>
Question :
Is companion app is needed for standalone wear app? OR may be if you know and can share any suggestions to share standalone wear app.

From WearOS 2.0, PlayStore is available on wear. So, When we open app page on PlayStore and install from there by selecting wear device, wear 2.0 devices are able to get the app directly through the PlayStore without companion app.

Related

Amazon-appstore rejected Flutter app due to not installing on android virtual device 4.0

Amazon app store app rejected my app publishing because it is not installing on android virtual device 4.0
I need some help I am new on amazon app store, same app is running on play store and ios app store.
What should I do and how should I test, any help will be appreciated.
issue screenshot -
below is my APK file screenshot -
I have got the issue, we need to add min and max supported sdk versions in the main/AndroidManifest.xml file.
because amazon app store does not get it from build.gradle file.
<uses-sdk android:minSdkVersion="21"
android:targetSdkVersion="29"
android:maxSdkVersion="29" />

How to deploy phone app dependent android wear apps?

I want to deploy this App (https://github.com/pocmo/SensorDashboard) on my Phone and Wearable. Deploying the App on my Phone works fine. When I try to deploy the App on my watch like I deploy it on my Phone, I get the following Error: Error running wear: Default Activity not found.
I think that this Error is caused by the fact, that the App isn't a Standalone Wearable App and can't be deployed by selecting a deployment target as you would with a phone . When I look in the AndroidManifest.xml the meta-data tag looks like this:
<meta-data android:name="com.google.android.gms.version"
android:value="#integer/google_play_services_version" />
How can I deploy this App on my watch?
(I want to know how the deployment works manually and I don't want to download the App from the Play Store)
The project has no activity because it's a service. In such a Project one has to go in Android Studio under Run/Edit Configurations -> General -> Launch -> select the option "Nothing". After this the app can be deployed on the watch by selecting a deployment target as you would with a phone.

Android Wear Watch Face not being installed

I must be missing something simple. I have developed a watch face, but when I build the mobile apk it never makes it's way to the watch. If I build the wear apk, everything works as expected.
Things I have checked so far.
Permissions: I have set the permissions in both the wear and mobile AndroidManifest
<uses-permission android:name="com.google.android.permission.PROVIDE_BACKGROUND" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
Gradle build: The wear app is referenced in the build.gradle of the mobile app.
wearApp project(':wear')
Things to note, The mobile app does nothing other than be a carrier for the wear app. It does not have any Activities.
You have to generate a signed APK and install it manually on your phone with the Android Wear companion app.

Android wear packaging 1 compatible device

I had an app uploaded in google play, but now I have done a update with Android Wear. I have my project in Android Studio with the mobile and the wear APK in the same project and with the same package. It runs perfectly in debug mode. I can export the new update of my app with the Android Wear app embebed, but when I upload it with the Google developer console shows that there are only one compatible device.
Attached Images:
How can i make my wear app to be compatible with more than 1 device? :-)
You shouldn't have the permission android.hardware.type.WATCH in the Play Store permissions.
This is only required for the wear application.
Remove it from your AndroidManifest.xml mobile application, it looks like:
<uses-feature android:name="android.hardware.type.watch" />

"No, missing feature: WATCH" when I try to run my smartphone app with wear app?

I have a smartphone app with a wear app that has been packaged inside of it, similar to the first two steps of this section:
https://developer.android.com/training/wearables/apps/packaging.html#Studio
I was originally told that my smartphone wasn't running an SDK large enough to support the app (my phone was using KitKat, apparently I needed API 20), so now I am using my Nexus 7 with Android L preview, and this problem has appeared:
I have a smartwatch emulator and tablet running, and both are connected using the adb -d forward tcp:5601 tcp:5601 trick, so I have no idea how to fix this now!
How can I get the smartphone app to run and automatically allow the wear app to install onto the emulator?
Please look at this!
May be you should select the APP item before you launch your app.
In your project you have two applications:
Mobile
Wearable
Mobile app should be installed on mobile device (phone/tablet) and Wearable app should be installed on Android Wear device.
This message No, missing feature: WATCH means that you're trying to install Wearable app on mobile phone - you shouldn't do that, your mobile device is not a WATCH. So once again: just launch Mobile app on mobile and Wearable app on Android Wear.
I was originally told that my smartphone wasn't running an SDK large
enough to support the app (my phone was using KitKat, apparently I
needed API 20), so now I am using my Nexus 7 with Android L preview,
and this problem has appeared:
Only the Wearable app should require API level 20, but Mobile app can target any other SDK level (like 10, 14 etc.). You don't need to set higher SDK level for Mobile app only because it supports Wearable app.
How can I get the smartphone app to run and automatically allow the
wear app to install onto the emulator?
As described in the tutorial that you've linked:
If packaged properly, when users download the handheld app, the
system automatically pushes the wearable app to the paired wearable.
But please read the note at the top of this page:
Note: This feature doesn't work when you are signing your apps with a
debug key when developing. While developing, installing apps with adb
install or Android Studio directly to the wearable is required.
This means that automatically installing Wearable app after installing Mobile app (with Wearable app packaged inside) will only work after signing app with your publishing certificate (and not with the debug one - as is done during standard application Launch from Android Studio/Eclipse).
I had the same error when I tried running non wearable application on my device and the error was due to some Android Studio issue with misreading the uses-feature attribute in the Manifest (it reads required false as true):
<uses-feature
android:name="android.hardware.type.watch"
android:required="false"/>
If you remove it from the manifest the error will disappear. I think that it should be already fixed in Android Studio 1.4.1 or 1.5.
Check if you have not open any other android project. I also faced same issue which got solved after I closed android project which has target API greater than watch's.

Categories

Resources