How to Build Native Android Applications powered by Lotus Notes Domino A Domino Developers guide to retooling yourself for...
Use Existing Skills <ul><li>Not necessary to learn Java </li></ul><ul><li>Create Native Android Applications using: </li><...
Android Native Features <ul><li>Geolocation </li></ul><ul><li>Camera </li></ul><ul><li>Signature Capture – using a Finger ...
Setting up your Environment <ul><li>Domino </li></ul><ul><li>Eclipse  </li></ul><ul><li>Android SDK </li></ul><ul><li>Phon...
Install the Tools <ul><li>Download and Install Eclipse </li></ul><ul><li>Download Phone Gap 9.02  </li></ul><ul><li>Instal...
Phone Gap / Domino  Design Pattern <ul><li>Build your Application in Domino </li></ul><ul><li>Preview in a Browser (Chrome...
Running Application on Android Phone <ul><li>Click on the Green Triangle in Eclipse </li></ul><ul><li>I used a Motorola Dr...
Data Transfer <ul><li>How do I get my Domino Data to my Android phone? </li></ul><ul><li>HTML5 & JSON is your Answer </li>...
Consuming JSON <ul><li>Use AJAX call from Application to request the data </li></ul><ul><li>In the Callback function you w...
Writing back to the Server <ul><li>USE AJAX Post Command </li></ul><ul><li>Fields need to match the fields on the Domino F...
Authenticating to Domino <ul><li>I use LocalStorage to store credentials on Phone </li></ul><ul><li>Read Credentials and t...
Capture a Photo <ul><li>Take a Photo on your Android Phone </li></ul><ul><li>Store it on Phone in WebSQL Database </li></u...
Capture a Signature <ul><li>Add Touch Events to Form </li></ul><ul><li>Use HTML5 Canavas Tag </li></ul><ul><li>Context.str...
Where Am I GPS <ul><li>Use the Phones GPS to capture coordinates </li></ul><ul><li>Fine (Cellular) vs. Coarse (Wireless)  ...
Upcoming SlideShare
Loading in …5
×

Build native android applications with domino

1,859 views

Published on

I have spent the past year developing a Domino / Android Application. Here are some of my discoveries

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,859
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
24
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Build native android applications with domino

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

×