Android Wireless deepdive

Every Story start from the beginning

Moving a seven years old app from Windows Mobile devices to Android

...with zero budget.

Cheap

Where do we start?

  • Current application is a WebApp running in a custom Hybrid container
  • Manage to survive off-line getting pieces of information about WiFi coverage
  • Identify devices using the Registry
  • Control barcode scanner through custom <META> tags

MC55

What do they need?

  • Barcode scanning
  • Realtime WiFi data (RSSI, IP Address, etc.)
  • Univocally identify every device (with no additional configuration)
  • Nothing complicated to use

Easy

Proposed solution

  • Hybrid container based on RhoMobile to reuse current WebApp
  • Custom API to fill-in the gaps
  • Samples pages to address some HTML changes

QuestionMark

Getting real

"In God we trust, all others must bring data"

W. Edwards Deming

android.net.wifi.WifiEnterpriseConfig

Enterprise configuration details for Wi-Fi. Stores details about the EAP method and any associated credentials.

Added in API level 18

Available in previous version but EnterpriseField is annotated with @hide

android.net.wifi.WifiEnterpriseConfig

WifiEnterpriseConfig * Android 4.1.2_r1

Java Reflection at the rescue

The name reflection is used to describe code which is able to inspect other code in the same system (or itself).

getClasses();
getFields();
getMethods();

Plan for resolution

  • Build an Android app as proof-of-concept
  • Build a RhoMobile's native Extension for Android
  • Write some demo code and document it.

Execution

RhoElements Hybrid Container app on Github

Major Pain Points

Questions?

Questions?

Thank you

Images from Flickr users:

/