How to Build Native Android Applications powered by Lotus Notes Domino A Domino Developers guide to retooling yourself for the Android Mobile Marketplace. By Michael J. Butcher
Use Existing Skills Not necessary to learn Java Create Native Android Applications using: HTML5 Javascript JSON JQuery PhoneGap
Android Native Features Geolocation Camera Signature Capture – using a Finger Addressbook  Accelerometer Beep / Vibrate Offline Database (Web SQL)
Setting up your Environment Domino Eclipse  Android SDK Phone Gap Phone Gap Eclipse Plug-in h ttp://www.mobiledevelopersolutions.com/home/download/pluginfilecabinet
Install the Tools Download and Install Eclipse Download Phone Gap 9.02  Install PhoneGap Plugin found  Here You are ready to Develop
Phone Gap / Domino  Design Pattern Build your Application in Domino Preview in a Browser (Chrome ) Export the source files to your local machine Place the Html Files and Javascript files in your PhoneGap Project Index.html – starting page
Running Application on Android Phone Click on the Green Triangle in Eclipse I used a Motorola Droid X  Launches application on the Phone PhoneGap magically transforms the application to a Native Android Application
Data Transfer How do I get my Domino Data to my Android phone? HTML5 & JSON is your Answer Use a Domino View – JSON output www.yourserver.com/database.nsf/view?readviewentries&outputformat=json
Consuming JSON Use AJAX call from Application to request the data In the Callback function you write the data to a Local WebSQL database on your Android phone WebSQL DB–  A Lightweight SQL Database on your Phone created with javascript commands
Writing back to the Server USE AJAX Post Command Fields need to match the fields on the Domino Form on the Server WQS Agent can return DocID and User Roles that can be parsed in the Ajax response.Text  Now you can UPDATE a doc since you know its DocUnid via Ajax
Authenticating to Domino I use LocalStorage to store credentials on Phone Read Credentials and then use them 1 command before making the call to interact with the Domino Server SSO from Android
Capture a Photo Take a Photo on your Android Phone Store it on Phone in WebSQL Database Send Image Data to Domino via AJAX Save Document WQS Agent – Convert Image Data to Image Attachment  (stored in $File)
Capture a Signature Add Touch Events to Form Use HTML5 Canavas Tag Context.stroke to draw on screen Convert to bmp image Send image to Domino via Ajax
Where Am I GPS Use the Phones GPS to capture coordinates Fine (Cellular) vs. Coarse (Wireless)  Send coordinates to Domino via Ajax JSON

Build native android applications with domino

  • 1.
    How to BuildNative Android Applications powered by Lotus Notes Domino A Domino Developers guide to retooling yourself for the Android Mobile Marketplace. By Michael J. Butcher
  • 2.
    Use Existing SkillsNot necessary to learn Java Create Native Android Applications using: HTML5 Javascript JSON JQuery PhoneGap
  • 3.
    Android Native FeaturesGeolocation Camera Signature Capture – using a Finger Addressbook Accelerometer Beep / Vibrate Offline Database (Web SQL)
  • 4.
    Setting up yourEnvironment Domino Eclipse Android SDK Phone Gap Phone Gap Eclipse Plug-in h ttp://www.mobiledevelopersolutions.com/home/download/pluginfilecabinet
  • 5.
    Install the ToolsDownload and Install Eclipse Download Phone Gap 9.02 Install PhoneGap Plugin found Here You are ready to Develop
  • 6.
    Phone Gap /Domino Design Pattern Build your Application in Domino Preview in a Browser (Chrome ) Export the source files to your local machine Place the Html Files and Javascript files in your PhoneGap Project Index.html – starting page
  • 7.
    Running Application onAndroid Phone Click on the Green Triangle in Eclipse I used a Motorola Droid X Launches application on the Phone PhoneGap magically transforms the application to a Native Android Application
  • 8.
    Data Transfer Howdo I get my Domino Data to my Android phone? HTML5 & JSON is your Answer Use a Domino View – JSON output www.yourserver.com/database.nsf/view?readviewentries&outputformat=json
  • 9.
    Consuming JSON UseAJAX call from Application to request the data In the Callback function you write the data to a Local WebSQL database on your Android phone WebSQL DB– A Lightweight SQL Database on your Phone created with javascript commands
  • 10.
    Writing back tothe Server USE AJAX Post Command Fields need to match the fields on the Domino Form on the Server WQS Agent can return DocID and User Roles that can be parsed in the Ajax response.Text Now you can UPDATE a doc since you know its DocUnid via Ajax
  • 11.
    Authenticating to DominoI use LocalStorage to store credentials on Phone Read Credentials and then use them 1 command before making the call to interact with the Domino Server SSO from Android
  • 12.
    Capture a PhotoTake a Photo on your Android Phone Store it on Phone in WebSQL Database Send Image Data to Domino via AJAX Save Document WQS Agent – Convert Image Data to Image Attachment (stored in $File)
  • 13.
    Capture a SignatureAdd Touch Events to Form Use HTML5 Canavas Tag Context.stroke to draw on screen Convert to bmp image Send image to Domino via Ajax
  • 14.
    Where Am IGPS Use the Phones GPS to capture coordinates Fine (Cellular) vs. Coarse (Wireless) Send coordinates to Domino via Ajax JSON