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

V4.2.x upstream #110

Merged
merged 11 commits into from
Jul 1, 2023
Merged

Conversation

AroonPro
Copy link

@AroonPro AroonPro commented Jul 1, 2023

Request to pull in state until 230701.
Includes to check for closure of reported issues.

…tent to wearReciever.

Entered debug phase of connection
here most fore change is checking broadcast receiver up to registered  intend for sd server receiving end.
Tracking mToneGenerator in onDestroy of SdServer to be nonNull and then release
The Same for mNetworkBroadcastReceiver.
Further building test; using Junit5 (jupiter)
Again shifting shared preferencest to Androidx in SdServer
Rejecting null aWIntentBase in SdDataSourceAw.onStartReceived
setting mSdData.mHRAlarmActive in SdDataSource on condition Source is not Phone
Further building test; using Junit5 (jupiter)
Again shifting shared preferencest to Androidx in SdServer
Rejecting null aWIntentBase in SdDataSourceAw.onStartReceived
setting mSdData.mHRAlarmActive in SdDataSource on condition Source is not Phone
Connecting PowerUpdate into SdDataSourcePhone. Attempt in closing issue.
@jones139 jones139 merged commit 51d8b5c into OpenSeizureDetector:V4.2.x Jul 1, 2023
@jones139
Copy link
Member

jones139 commented Jul 1, 2023

Thanks - I'll merge it and try it out.

@jones139
Copy link
Member

jones139 commented Jul 1, 2023

Well, it is running without crashing on the emulator using the Phone data source, which is good :)
StartUpActivity seems to work correctly (it seemed to take longer to receive data than I thought it should, but that could be an emulator issue).
...but once StartUpActivity exits and MainActivity starts, SdServer shuts down for some reason. MainActivity still says Server Running OK, but the task bar notification disappears and I can see it has called onDestroy in logcat.

@AroonPro
Copy link
Author

AroonPro commented Jul 2, 2023 via email

@AroonPro
Copy link
Author

AroonPro commented Jul 2, 2023 via email

@jones139
Copy link
Member

jones139 commented Jul 2, 2023

It might be a race condition doing the connection to the server.
I wonder if my waitForConnection works properly - if that did not really wait, what would happen?
(https://github.com/OpenSeizureDetector/Android_Pebble_SD/blob/V4.2.x/app/src/main/java/uk/org/openseizuredetector/MainActivity.java#L483)

@AroonPro
Copy link
Author

AroonPro commented Jul 2, 2023 via email

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

Successfully merging this pull request may close these issues.

None yet

2 participants