Java script recipes to automate google android

467 views
363 views

Published on

Carl Farmer from Chrysalis Technologies gave us a fantastic introduction to on[x] a Microsoft experiment in automating an android device using javascript.

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
467
On SlideShare
0
From Embeds
0
Number of Embeds
30
Actions
Shares
0
Downloads
1
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Java script recipes to automate google android

  1. 1. JavaScript Recipes to Automate Google Android Front End Suffolk – February 2014
  2. 2. Who? • Me => Carl Farmer • What I do => Microsoft .Net Dev/Tech Consultant (12 years) • Where I do it => Chrysalis Technology • Other stuff I do => SyncIpswich (syncipswich.com)
  3. 3. Automation • If [this event] then [do this action] • If [I am at home] then [switch off mobile data] • If [it if after 8pm] then [switch off the ringer volume] • If [battery level < 10%] then [turn off mobile data, turn off wifi…] • Is anyone using an automation app?
  4. 4. How the..? 1.Scheduler App 2.Automation App 3.Browser + Facebook Login + App + JavaScript
  5. 5. What the..? • Microsoft on{x} • on{X} lets you control and extend the capabilities of your Android phone using a JavaScript API to remotely program it.
  6. 6. Demo
  7. 7. Why the..? • Very few restrictions • Only limited by imagination, patience and code skills • API exposes more than existing automation apps can do
  8. 8. Interesting namespaces in the API • • • • • • • • • • • • Applications – open other applications on device Calendar – search calendar for events (& details) Contacts – search contacts (& details) db – local database storage Gestures – flipup, flip down, nudgeleft, nudgeright Intents – sends an intent (action) to another application on the device localStorage – html5 web storage standard Microphone – monitor noise levels modeOfTransport – walking, cycling, driving Notifications – device notifications Proximity – proximity sensor Telephony – phone call info
  9. 9. That is it • Any questions? • www.onx.ms • @onx_ms • @carlfarmer • Thank you

×