Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ERROR] starter-wearable-app #20

Open
pzxcvasd opened this issue Oct 24, 2024 · 10 comments
Open

[ERROR] starter-wearable-app #20

pzxcvasd opened this issue Oct 24, 2024 · 10 comments

Comments

@pzxcvasd
Copy link

Hi,
I downloaded all the files from GitHub, and I'm building them through Android Studio.
The mobile app(starter) builds fine, but the watch app does not build.
I'm following along with the Code Lab, but do you know when the official ResearchStack developer documentation will be uploaded? Currently, the documentation is still using backend-config-files v1. I hope a version using v2 will be uploaded. Thank you!

image

@deokjinkim
Copy link
Collaborator

@pzxcvasd @MIApark2355

Sorry for late response.
I think you need to do below task:
(1) Update submodule with below command after cloning app-sdk.

git submodule update --init --recursive

(2) Copy sensor SDK lib file to libs/privsdk directory.
Sensor SDK Download URL: https://developer.samsung.com/health/sensor/process.html

cp samsung-health-sensor-sdk_v1.3.0/1.3.0/libs/samsung-health-sensor-api-v1.3.0.aar libs/privsdk

(3) Install Health Connect on mobile phone's playstore.

And this link(https://developer.samsung.com/health/stack/developer-guide/installation/install-sdk.html) is oudated(v1).

@MIApark2355
Copy link

@deokjinkim

Thank you for the reply.

I followed the steps, and it fixed the error regarding starter-mobile-app, but still having error with starter-wearable-app.

I think it is referencing to the privileged SDK not the health sensor SDK.
It would be great if you can tell me how to fix this error.

Uploading Screenshot 2024-11-06 at 11.00.08 AM.png…

@deokjinkim
Copy link
Collaborator

@MIApark2355

Sorry for inconvenience. There was mismatch of artifact name of health sensor SDK.
To fix above issue, patch(#21) is submitted and landed.
For reference, privileged SDK is renamed to health sensor SDK recently.
Thank you~!!

@pzxcvasd
Copy link
Author

pzxcvasd commented Nov 7, 2024

I’ve fixed all errors and successfully built the web portal, smartphone app, and watch app. However, there’s an issue with the web portal’s functionality—in the StudyData category, file uploads aren’t working. Additionally, on the Dashboard, the timestamps for accelerometer data synced with the watch are incorrect.

On the CodeLab site, I noticed that only the backend-config-files are available for download, not the full backend-system. I’m wondering if it's okay not to install the backend-system (although I did install it).

@deokjinkim
Copy link
Collaborator

deokjinkim commented Nov 8, 2024

@pzxcvasd

  1. File upload
    For now, our backend only supports AWS S3 for file upload. You need to set environment variables(starting with AWS_) of backend after creating s3 bucket.

Refs: https://github.com/S-ResearchStack/backend-system?tab=readme-ov-file#list-of-environment-variable-in-applicationyml

  1. Incorrect timestamp
    Can you give me more detail explanation? For example, you measured at 8:00 AM, but timestamp is 11:00 PM.

  2. CodeLab
    AFAIK, backend-config-files is minimal version of backend for practice purpose. So you need to clone backend repo for production.

@pzxcvasd
Copy link
Author

pzxcvasd commented Nov 8, 2024

Thank you for your response. I’ve provided answers to your questions below, along with some additional questions of my own. I look forward to your reply.

  1. Actually I measured at 11/8 18:00 but timestamp is Oct 29 01:00.
  2. So, should I just follow the official development guide to deploy the backend? The guide mentions using backend config files v1, but should I use only v2 for this part?

@deokjinkim
Copy link
Collaborator

@pzxcvasd

As you might know, v2.0-beta was released recently. So I recommend you use v2.0-beta for your research.
And I didn't experience incorrect timestamp issue yet. Can you share screenshot of watch and web-portal?

@pzxcvasd
Copy link
Author

Sorry for late reply.
Where can I find the accelerometer data on the watch? Note that the accelerometer data has incorrect timestamps.

Additionally, no other data besides the accelerometer data can be retrieved. Although I configured the study to collect all available data types, only the accelerometer data is visible on the Dashboard.

@JWdori
Copy link

JWdori commented Jan 1, 2025

@deokjinkim
Hi,
The information you provided above was very helpful to me.
However, I have an additional error when running the starter-wearable-app and would like to ask a question.

I'm following the codelab.
Firstly, the mobile-app works properly, but the installation of the starter-wearable-app does not proceed correctly. An error like the attached screenshot occurs. To resolve this, I modified the manifest as follows:

<uses-library
      android:name="com.google.android.wearable"
      android:required="false" />

However, in this case, when installing the app, it appears as shown in the attached photo and does not function at all. The connected Wear device is a Watch4.

image image

@jimveloper
Copy link

Good Evening, I' having issues with the mobile app and standalone wearable. When you click on the mobile, it flashes up and disappears. If you click on it in the background, same behavior. The standalone wearable builds and deploys, but the display is blank. Any thoughts? or access to working repo? Thanks in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants