Download presentation
Presentation is loading. Please wait.
Published byAnahi Skiffington Modified over 10 years ago
1
Outline 1/3 PHA Client 1.Overall Architecture 2.Client PHA Setup 1.Open ADT 2.Edit Android Properties Android 4.4.3 API 17 3.Setup Android Virtual Device (AVD) 4.Restart ADT 5.Run PHA as Android Application (up to 5 min first time) and enter account information. 6.You many need to restart PHA.
2
Overall Architecture. Client (Android Application) Application Server DB REST Interface Microsoft HealthVault (MSHV) HTTP Request http://cicats9.engr.uconn.edu:14080/Help/ REST Client Tool
3
Edit Android Properties Android 4.2.2 API 17
4
Setup Android Virtual Device (AVD)
5
Sign-In Page
6
PHA Home Screen
7
Outline (2/3) REST Client Tool 1.Install Google REST Client into your browser 2.Sign in to MSHV to get public and record ID 3.In headers add Content-Type: application/json 4.Request method: POST 5.Copy JSON string into the body
8
Install Google REST Client
9
Sign into MSHV
10
Add Content-Type to HEADER Content-Type: application/json Content-Type: application/xml
11
REST Client Tool
12
Outline (3/3) PHA Code 1.Requirements 2.Activity Sequence 3.Code Review
13
Requirements Internet connection Within the engineering network (vpn.uconn.edu)
14
Activity Sequence 1.Login Activity (only one time) 2.Splash Activity (get data from MSHV) 3.Tabs Activity (load tabs layout into activity) 4.Press Medication RXOTC Activity 5.Press Add RXOTC-Form Activity 6.Add meds and press Save RXOTC Activity 1.OnActivityResult() 7.Async Task MedicationPostRequest()
15
RxOtcFormActivity.java
16
RxOtcActivity.java You have to edit other classes and add/edit methods for each health item.
17
ServerConnection.java Reuse or make this method generic for usage for other health items.
18
ServerConnectionHelper.java You have to edit this class and add/edit methods for each health item.
19
MedicationPostRequest.java Reuse or make this class generic for usage for other health items.
20
Result can be check at: 1.Your PHA application 2.https://account.healthvault-ppe.comhttps://account.healthvault-ppe.com
21
General comments. Ask early, errors can occur on all different tiers (while MHSV is less likely). When you use intents, the keys have to be consistent! – MedicationName != medicationname When doing a REST Service the method name http://cicats9.engr.uconn.edu:14080/Help/ http://cicats9.engr.uconn.edu:14080/Help/ Server model is in add-on v3 (sent today)
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.