We are trying to run an app on an android watch that sends data to a database. When we run the app from android studio on the watch it works well.
However, when we try to build the apk and manually install the app on the watch the data is not sending.
It seems it may be due to some tags not being saved to the apk but I'm not sure why this is happening.
Thanks for your reply!
I tried to logcat in adb and seems ok.
I did some further testing and I noticed when I hardcode the data, it is sending when I install the apk. When the data is not hardcoded, it is only sending when I run from android studio.
Can you add some print statements for debugging to the code in the apk so that the conditions when the apk are executed is printed to the logcat. Then download the logcats and see what the difference is between when the code works in Android Studio and when it does not work.
I unplugged my device, ran the app, replugged and went to logcat in android studio.
The Logs looked correct and normal, the only issue I had with logcat was once I plugged in the device it only started showing the logs from that point but since the device was no longer around my wrist the data stopped being collected so I couldn't see my println of the data.
But either way, while the device was on my wrist I could see data displayed on the watch but was not being sent to the database.