Android Wear app debugging with mobile application connectivity issue - Wear OS Q&A, Help & Troubleshooting

Hey guys
I've created an android application with a wearos module contained within it. This might be a rookie issue given that I'm new to android development (I'm from a web dev background) but I'm struggling to get my wear and mobile apps to communicate, when they are in debug mode.
Basically, I have written some code in the mobile application to detect if the wearOS app exists on a connected watch, and if it does, allow the user to monitor the sensor activity on the watch.
When I run the mobile application debugger on a physical device through USB, I see it doesn't package the wear application with it and so I cannot install the linked watch application on my watch (which is linked to android studio through ADB over wi-fi). While the mobile device debugger is running, I run the debugger for the watch app too and the app then runs on the watch, but it doesn't look like the code in the app is actually detecting the watch. This functionality does work though when downloading the published app through the play store, and then installing it on the watch through the play store too using the 'apps on your phone' menu on my watch.
How can I achieve the connectivity between the watch and phone apps through the debugger? This is a massive pain point for me and I can't seem to find anything online that addresses this and that describes how best to set up debug environments so that these apps are linked on the 2 devices and can communicate in debug mode. My mobile device app is heavily dependent on detecting watch sensors and interacting with them and so I need an efficient way to test this.
Thanks!

Related

Want a free Android emulator and mobile browser emulator

Hello you all,
I am using Netbeans to develop Android app using HTML5 technologies. I have SDK installed etc, but one thing I can say I cannot even test my app in the Android emulator nor in the Android mobile browser.
The Android emulator is really slow. It just stuck on the boot screen where there is the flashing Android logo. I waited for hours but in vain. I restarted, deleted AVD and created new again but no luck. I am fed up with this. I saw may persons encounter this. Moreover, I have also downloaded other emulators like Genymotion but it lacks many things.
On the Android browser emulator in Netbeans, I do not know why it does not work. I have USB Debugging tool enabled on my phone, and even installed Chrome on PC. It asks to enable debugger tool on Chrome mobile as well, but there is no such thing. I went on Chrome desktop and enable it on "about:inspect", but no luck again. It does not connect. So I dropped it.
What I want is a good free Android emulator and also a free mobile browser emulator to test my app in display on different screen sizes. Do you know some?
Thank!

[Q] Alternative to Android Wear, using a wear device without Play Services

Hi, I recently got a Moto 360 as a present. But sadly, I soon came to the realization that you can't run Android Wear without GAPPS installed (I'm running CM10.2). I'm not going to install Google's spyware just so I can use a watch.
Are there other Apps that work with AndroIid Wear Devices? My smartphone does support Bluethooth 4 and BLE. A little bit digging showed me that some dedicated people got some functionality to work on their Iphone without Google Services. Alos when I install the Pebble App it recognzes my phone (but can not connect)
I really just want to get notifications to my watch, control music , set an alarm and maybe get my pulse data on my phone. Are there third party apps that can do that?
The person who ported the Android Wear functionality to Iphone has a Github repository of his Iphone app under shiitakeo/android_wear_for_ios . If there is no option I will have to write my own app and I'm going to orient myself on what he did there.
So you are looking for an app to connect your android phone to the iOS wear connect app on moto360? And not android wear app?
I'm looking for a third party android app that lets me connect my Moto 360 with my Phone aCyanogenmod 10.2 without gapps installed.
Without gapps I can't install the offical Android Wear app. Taking a peak in the IOS world shows me that it' s possible to do that with a device that supports Bluethooth 4.0 and BLE. The Pebbles app also recognizes my watch but does not let me connect it, this tells me that they must use a similiar protocol or maybe even the same. My question is, if someebody already did write such an App, that lets you connect your Android phone with your smart watch (without installing gapps!), or if I have to do this on my own. (I'm a software developer but never did anything with Bluethooth or much in Android.)
I'd also like to find a non-gapps solution for this. Have you found one?
Apple spies for Facebook. You'll sell your integrity no matter what.

[Q&A] How to debug Android apps loaded on Windows 10 Mobile

My local public library uses an app to distribute its eBooks and Audiobook. The app is called Hoopla digital. I have contacted them about their plans to port the app to W10. They said they have no plans to do so.
I downloaded the APK of the app and installed it onto my phone. It launches, initializes, and then immediately crashes.
I'm a pretty decent developer, however, I know next to nothing about android. Is there any way to capture the crash and investigate if it's something Windows related or if it's simply relying on Google Play APIs? Are there any resources available to do some basic troubleshooting of the crash? It would be great to not have to buy a cheap android in order to listen to my Audiobooks in the car.
Thanks for any guidance
Do:
Open Settings enable debug mode, and pairing, then on the computer load wconnect.exe usb in a command prompt (you need the Project Astoria PC zip found in another post.) and then debug like normal: adb logcat
Perfect. I'll take a crack at it. Hopefully it's something easily fixable!
Thanks!
donot install apk to your phone,use the stores app
dugu1248 said:
donot install apk to your phone,use the stores app
Click to expand...
Click to collapse
Stores app does not work with APKs yet

map showing gray on an Android Wear Emulator

i am using Android Studio, i created a wear AVD with API 22, Activated debugging on the device an obtained the google map API key, i used the example provided by google for a simple Wear application using Google Maps API :
https://developers.google.com/maps/documentation/android-api/wear
project's files are provided here :
https://github.com/googlemaps/android-samples/tree/master/AndroidWearMap
the application start but show a gray map without changes.
i think it is a problem of connectivity since the wear AVD is not connected to the internet like a Handled AVD so it can't download the map files.
i didn't try to connect the wear AVD with my Android Phone because the Android version it is using is not compatible with the Android Wear application required to connect a wear to Handled devices and and it doesn"t support higher versions.
is there a solution to let the wear AVD use my computer internet, or another way to use Google Maps on wear AVD ?
can i show the map correctly if i connect my wear AVD to a Handled Device ?
thanks for your suggestions.

Are not-standalone (companion) Wear OS apps still allowed for submission on the Play Store, or are they always rejected?

Hello.
Our Wear OS application, which is not a standalone application (it is a companion app of our smartphone app, it cannot be used without the smartphone app) keeps getting rejected by Google Play Policy team for the following reason : "Your application requires phone interaction for the watch version to function." even if we have clearly explained in our Play Store description that it is not a standalone application and cannot work when the smartphone app is not available.
Our application was previously accepted and published on the Play Store but we suspect a Google policy change even if we haven't found it clearly anywhere (we have only found recommendations which encourage standalone apps).
=> Are not-standalone Wear OS apps still allowed for Play Store submission or must our Wear OS app include at least a standalone feature ?
Thanks in advance for your help.
Best regards
I am not sure, but I know there are some apps that are embedded in the phone app to deploy to a WearOS watch (like the Hyundai Blue Link App and the Genesis Intelligent Connect App). If your phone is paired with a WearOS watch, it loads the app onto the phone. Maybe you can try something like that.
Funny thing is the apps right now do not load the app to the Watch4. I think it is because the Watch4 is on WearOS4. I had a different watch at one time that was plain Jane WearOS and the app loaded just fine. I am looking for Hyundai/Genesis to correct this issue. I hope.
I also got a wear os companion app update reject on 6.Jul. My last update was successful on 30.May.2022. Did not see any policy regarding to the companion app issue. It is just weird and I have also appealed to get more info. Did you appeal the reject?

Categories

Resources