1 / 21

Outline 1/3 PHA Client

Outline 1/3 PHA Client. Overall Architecture Client PHA Setup Open ADT Edit Android Properties  Android 4.4.3 API 17 Setup Android Virtual Device (AVD) Restart ADT Run PHA as Android Application (up to 5 min first time) and enter account information. You many need to restart PHA.

Télécharger la présentation

Outline 1/3 PHA Client

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Outline 1/3PHA Client • Overall Architecture • Client PHA Setup • Open ADT • Edit Android Properties  Android 4.4.3 API 17 • Setup Android Virtual Device (AVD) • Restart ADT • Run PHA as Android Application (up to 5 min first time) and enter account information. • You many need to restart PHA.

  2. Overall Architecture. REST Client Tool Application Server REST Interface DB Client (Android Application) HTTP Request Microsoft HealthVault (MSHV) http://cicats9.engr.uconn.edu:14080/Help/

  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 • Install Google REST Client into your browser • Sign in to MSHV to get public and record ID • In headers add Content-Type: application/json • Request method: POST • 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 • Requirements • Activity Sequence • Code Review

  13. Requirements • Internet connection • Within the engineering network (vpn.uconn.edu)

  14. Activity Sequence • Login Activity (only one time) • Splash Activity (get data from MSHV) • Tabs Activity (load tabs layout into activity) • Press Medication  RXOTC Activity • Press Add  RXOTC-Form Activity • Add meds and press Save RXOTC Activity • OnActivityResult() • 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: • Your PHA application • https://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/ • Server model is in add-on v3 (sent today)

More Related