NFC on Android

Attached below is a document containing a description of how to enable NFC on an Android device and how to create an Android application using NFC:

Using NFC in Android

Note that you must still have an Android device that supports NFC and physical NFC tags.

Advertisements

NFC on Android

It is possible to enable for NFC support in Android applications on Android devices which support Bluetooth. There is documentation on the NFC section under Connectivity at http://developer.android.com/guide/topics/connectivity/nfc/index.html. It gives details on how NFC works with Android and how it can be used with it. It also shows code samples in which NFC is used in an application.

Withings Smart Body Analyzer

I started to use the Withings Smart Body Analyzer and was figuring out how to set it up and use it, and I realized you must follow the following process:

  1. Physically setup the weight scale as per the Quick Installation Guide that comes in the box.
  2. Pair the weight scale to your smartphone and also install the Withings Health Mate app as per the Quick Installation Guide.
  3. When the app finishes installing, open it log in to your Withings account or create one if you do not already have one. Note that you can also log in to your account by going to withings.com then clicking My Account at the top-right corner of the page.
  4. Once you have registered/logged into your account, tap the menu button on the top-left corner of the app, then go to Account -> Settings. Tap “Withings Scales” then “Install a new scale”. Follow the instructions on the screen to install the weight scale.
  5. The next thing that should be done is using the weight scale and having the data pushed to the phone. Unfortunately, I cannot get this process to work yet even after following help documentation on the Withings website. The process I attempted to follow was to first step on the weight scale once the pairing and installation are complete. Once the reading finished, it should have been pushed to the phone automatically although it did not.

Simple Data Uploader App Update

I made changes to the design of the Simple Data Uploader App so that the screens look more generic and the application also retrieves the list of paired devices. The blood pressure monitor screen has one of the devices selected below (which happens to be the blood pressure monitor) and also has text within a scrolling view underneath that list (not a ScrollView). Notice how the text for instructing the developer how to connect devices at the top of the scrolling view is chopped (I scrolled in such in a way that it would be visible in the screenshot).

Updated Version

The other screens also look very similar and all of them will also eventually connect to MyOSCAR.

Simple Data Uploader App

I have started designing the UI for the Simple Data Uploader App and I have managed to come up with a design using the graphical XML tool on ADT Eclipse. Here are some screenshots below:

A&D Weight Scale

A&D Blood Pressure Monitor

BluGlu Bluetooth Dongle

Polytel Bluetooth Dongle

This application will in the future be able to take any medical device readings and push it to MyOSCAR.

Demo MMDI – Migration to Java Update

Managed to populate the list of paired devices. Here is what I had to do:

  • Copied the Bluetooth classes into this project.
  • Removed files that are no longer required. For example command files are used to call Java from JavaScript.
  • Added the BluGlu JAR file.
  • Removed references to Cordova. However, some of the methods have to be modified accordingly. All of these have been marked with a todo.
  • Added Bluetooth security permission to the manifest file.
  • Populated list of paired devices with the device names.

This code has been checked into the following repository: https://aminassian@bitbucket.org/aminassian/demommdijava