SlideShare une entreprise Scribd logo
1  sur  28
Cross-Development for
  Android & Other
   Mobile Platforms
                Prof. Jeff Sonstein
  Dept. of Information Sciences & Technologies
       Rochester Institute of Technology
                  jxsast@rit.edu
Why This Talk

• Coding is easy, design is hard
• Maintaining multiple development teams &
  codebases is costly & error-prone
• Users appreciate a reasonably consistent
  experience across platforms
Designing for Mobile
1.     design for One Web

2.     rely on standards

3.     avoid known hazards

4.     be cautious of device limitations

5.     optimize navigation

6.     check graphics and colors

7.     keep it small

8.     use network sparingly

9.     help & guide user input

10. think of users on-the-go

     http://www.w3.org/2007/02/mwbp_flip_cards.html
WebApps, Native Apps,
& Cross-Compilation
• WebApps: browser context, served over
  Web, written in HTML/CSS/JavaScript
• Native Apps: written in higher-level
  language specific to that platform
• Cross-compilers: advantages of WebApps
  but install as native apps
Phonegap & Mobile
             Devices
•   PhoneGap is a tool which allows you to compose
    once (using HTML/CSS/JavaScript) then cross-
    compile and deploy to many different target
    platforms:
    •   iOs

    •   Android

    •   Blackberry

    •   webOS

    •   Windows Mobile

    •   Symbian
Installing Phonegap

•   see http://www.ist.rit.edu/~jxs/classes/2010_Winter/MobileFoundations/01_week/
    phonegapStart.html for more details

•   download and install Android SDKs

•   download PhoneGap

•   unarchive it into an arbitrary directory

•   make sure Android tools directory is in your $PATH (on my system: /Users/
    jeffs/development/android/tools)
Compiling & Deploying
  Phonegap Apps
•   open a terminal window and navigate to appropriate PhoneGap directory
    (on my system: /Users/jeffs/development/phonegap/phonegap-android/)

•   compile with droidgap tool (see details page on previous slide)

•   open second terminal window and start Android emulator or plug in
    Android device

•   change directory to wherever you told droidgap to put the generated code

•   issue command ant debug install
Demo


• exit to live demo
Phonegap Docs &
      Materials Online
•   common functionality: http://docs.phonegap.com/

•   tutorials: http://wiki.phonegap.com/w/page/
    16494772/FrontPage

•   google group: http://groups.google.com/group/
    phonegap

•   source repository: https://github.com/phonegap

•   development tools: http://www.phonegap.com/tools/
Phonegap API
            Capabilities

•   High-level common mobile functionality API

•   Support for HTML5 & CSS3
Common Functionality:
   Accelerometer
• Captures device motion in X/Y/Z
  directions
• Methods:
 • getCurrentAcceleration
 • watchAcceleration
 • clearWatch
Common Functionality:
     Camera

• Provides access to default camera
• Method:
 • getPicture
Common Functionality:
    Compass

• Obtains direction device is pointing
• Methods:
 • getCurrentHeading
 • watchHeading
 • clearWatch
Common Functionality:
    Contacts

• Provides access to device contacts database
• Methods:
 • create
 • find
Common Functionality:
     Device
• Gather device hardware/software info
• Properties:
 • name
 • phonegap (gets version)
 • platform
 • uuid
 • version
Common Functionality:
     Events

• Fires when Phonegap has loaded
• Event:
 • deviceready
Common Functionality:
    File System
• Provides access to the device file system
• Objects:
 • FileReader
 • FileWriter
 • FileError
Common Functionality:
   Geolocation

• Provides access to the GPS sensor
• Methods:
 • getCurrentPosition
 • watchPosition
 • clearWatch
Common Functionality:
     Media
• Provides ability to record and play back
  audio
• Methods:
  •   getCurrentPosition

  •   getDuration

  •   play/pause

  •   release

  •   start/stop record

  •   stop
Common Functionality:
    Network

• Access both cellular & wifi connection info
• Method:
 • isReachable
Common Functionality:
   Notifications
• Visual, audible, & tactile device notifications
• Methods:
 • alert
 • confirm
 • beep
 • vibrate
Common Functionality:
     Storage
• Access device database implementation
• Method:
 • openDatabase
 • Database object manipulation sub-
    methods
HTML5 localStorage

• name/value pairs (think associative array)
• persists between sessions
• example:
  •   http://www.ist.rit.edu/~jxs/classes/2010_Winter/
      MobileFoundations/05_week/storage.html
CSS3 & Webkit

• Support table:
  •   http://westciv.com/wiki/
      Experimental_CSS_compatibility_table

• Tutorial:
  •   http://www.cardeo.ca/css3-handbook/
Major CSS
Summary

• Design design design, then code once
• Maintaining a single design team and one
  codebase and having a unified UX across
  platforms is generally more efficient
• Leveraging your Web developer’s skills is
  generally A Good Idea
Exercise
• Download and install Android development
  tools
• Download and install PhoneGap
• Compile & test/deploy example app from
  PhoneGap directory
• Write, compile, & test/deploy your own
  HelloWorld app
Cross-Development for
  Android & Other
   Mobile Platforms
                Prof. Jeff Sonstein
  Dept. of Information Sciences & Technologies
       Rochester Institute of Technology
                  jxsast@rit.edu

Contenu connexe

Similaire à Android development workshop

Mobile Devices
Mobile DevicesMobile Devices
Mobile Devices
Ynon Perek
 
HTML5 is the Future of Mobile, PhoneGap Takes You There Today
HTML5 is the Future of Mobile, PhoneGap Takes You There TodayHTML5 is the Future of Mobile, PhoneGap Takes You There Today
HTML5 is the Future of Mobile, PhoneGap Takes You There Today
davyjones
 
Mobeers waterloo-2011
Mobeers waterloo-2011Mobeers waterloo-2011
Mobeers waterloo-2011
Brian LeRoux
 
An overview of mobile html + java script frameworks
An overview of mobile html + java script frameworksAn overview of mobile html + java script frameworks
An overview of mobile html + java script frameworks
Sasha dos Santos
 
Phonegap facebook- plugin
Phonegap facebook- pluginPhonegap facebook- plugin
Phonegap facebook- plugin
Steve Gill
 
Building Mobile Cross-Platform Apps with HTML5, jQuery Mobile & PhoneGap
Building Mobile Cross-Platform Apps with HTML5, jQuery Mobile & PhoneGapBuilding Mobile Cross-Platform Apps with HTML5, jQuery Mobile & PhoneGap
Building Mobile Cross-Platform Apps with HTML5, jQuery Mobile & PhoneGap
Nick Landry
 
Phoenix Emulator PPT
Phoenix Emulator PPTPhoenix Emulator PPT
Phoenix Emulator PPT
Vineet Kumar
 

Similaire à Android development workshop (20)

The Mobile Web Revealed For The Java Developer
The Mobile Web Revealed For The Java DeveloperThe Mobile Web Revealed For The Java Developer
The Mobile Web Revealed For The Java Developer
 
Hybrid Mobile Development with Apache Cordova and Java EE 7 (JavaOne 2014)
Hybrid Mobile Development with Apache Cordova and Java EE 7 (JavaOne 2014)Hybrid Mobile Development with Apache Cordova and Java EE 7 (JavaOne 2014)
Hybrid Mobile Development with Apache Cordova and Java EE 7 (JavaOne 2014)
 
PhoneGap at Facebook Mobile Hack
PhoneGap at Facebook Mobile HackPhoneGap at Facebook Mobile Hack
PhoneGap at Facebook Mobile Hack
 
Developing Windows Phone 8 apps using PhoneGap
Developing Windows Phone 8 apps using PhoneGapDeveloping Windows Phone 8 apps using PhoneGap
Developing Windows Phone 8 apps using PhoneGap
 
PhoneGap/Cordova
PhoneGap/CordovaPhoneGap/Cordova
PhoneGap/Cordova
 
Mobile Devices
Mobile DevicesMobile Devices
Mobile Devices
 
HTML5 is the Future of Mobile, PhoneGap Takes You There Today
HTML5 is the Future of Mobile, PhoneGap Takes You There TodayHTML5 is the Future of Mobile, PhoneGap Takes You There Today
HTML5 is the Future of Mobile, PhoneGap Takes You There Today
 
Mobeers waterloo-2011
Mobeers waterloo-2011Mobeers waterloo-2011
Mobeers waterloo-2011
 
Txjs
TxjsTxjs
Txjs
 
[2015/2016] Apache Cordova
[2015/2016] Apache Cordova[2015/2016] Apache Cordova
[2015/2016] Apache Cordova
 
#Code2Create:: Introduction to App Development in Flutter with Dart
#Code2Create:: Introduction to App Development in Flutter with Dart#Code2Create:: Introduction to App Development in Flutter with Dart
#Code2Create:: Introduction to App Development in Flutter with Dart
 
Future of Mobile
Future of MobileFuture of Mobile
Future of Mobile
 
Anatomy of an HTML 5 mobile web app
Anatomy of an HTML 5 mobile web app Anatomy of an HTML 5 mobile web app
Anatomy of an HTML 5 mobile web app
 
Introduction to Phonegap
Introduction to PhonegapIntroduction to Phonegap
Introduction to Phonegap
 
1. course introduction
1. course introduction1. course introduction
1. course introduction
 
An overview of mobile html + java script frameworks
An overview of mobile html + java script frameworksAn overview of mobile html + java script frameworks
An overview of mobile html + java script frameworks
 
Phonegap facebook- plugin
Phonegap facebook- pluginPhonegap facebook- plugin
Phonegap facebook- plugin
 
Using Javascript in today's world
Using Javascript in today's worldUsing Javascript in today's world
Using Javascript in today's world
 
Building Mobile Cross-Platform Apps with HTML5, jQuery Mobile & PhoneGap
Building Mobile Cross-Platform Apps with HTML5, jQuery Mobile & PhoneGapBuilding Mobile Cross-Platform Apps with HTML5, jQuery Mobile & PhoneGap
Building Mobile Cross-Platform Apps with HTML5, jQuery Mobile & PhoneGap
 
Phoenix Emulator PPT
Phoenix Emulator PPTPhoenix Emulator PPT
Phoenix Emulator PPT
 

Dernier

Nisha Yadav Escorts Service Ernakulam ❣️ 7014168258 ❣️ High Cost Unlimited Ha...
Nisha Yadav Escorts Service Ernakulam ❣️ 7014168258 ❣️ High Cost Unlimited Ha...Nisha Yadav Escorts Service Ernakulam ❣️ 7014168258 ❣️ High Cost Unlimited Ha...
Nisha Yadav Escorts Service Ernakulam ❣️ 7014168258 ❣️ High Cost Unlimited Ha...
nirzagarg
 
➥🔝 7737669865 🔝▻ dehradun Call-girls in Women Seeking Men 🔝dehradun🔝 Escor...
➥🔝 7737669865 🔝▻ dehradun Call-girls in Women Seeking Men  🔝dehradun🔝   Escor...➥🔝 7737669865 🔝▻ dehradun Call-girls in Women Seeking Men  🔝dehradun🔝   Escor...
➥🔝 7737669865 🔝▻ dehradun Call-girls in Women Seeking Men 🔝dehradun🔝 Escor...
amitlee9823
 
Escorts Service Nagavara ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Escorts Service Nagavara ☎ 7737669865☎ Book Your One night Stand (Bangalore)Escorts Service Nagavara ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Escorts Service Nagavara ☎ 7737669865☎ Book Your One night Stand (Bangalore)
amitlee9823
 
Vip Mumbai Call Girls Borivali Call On 9920725232 With Body to body massage w...
Vip Mumbai Call Girls Borivali Call On 9920725232 With Body to body massage w...Vip Mumbai Call Girls Borivali Call On 9920725232 With Body to body massage w...
Vip Mumbai Call Girls Borivali Call On 9920725232 With Body to body massage w...
amitlee9823
 
RT Nagar Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bang...
RT Nagar Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bang...RT Nagar Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bang...
RT Nagar Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bang...
amitlee9823
 
Just Call Vip call girls Etawah Escorts ☎️9352988975 Two shot with one girl (...
Just Call Vip call girls Etawah Escorts ☎️9352988975 Two shot with one girl (...Just Call Vip call girls Etawah Escorts ☎️9352988975 Two shot with one girl (...
Just Call Vip call girls Etawah Escorts ☎️9352988975 Two shot with one girl (...
gajnagarg
 
Abortion Pills in Oman (+918133066128) Cytotec clinic buy Oman Muscat
Abortion Pills in Oman (+918133066128) Cytotec clinic buy Oman MuscatAbortion Pills in Oman (+918133066128) Cytotec clinic buy Oman Muscat
Abortion Pills in Oman (+918133066128) Cytotec clinic buy Oman Muscat
Abortion pills in Kuwait Cytotec pills in Kuwait
 
Anamika Escorts Service Darbhanga ❣️ 7014168258 ❣️ High Cost Unlimited Hard ...
Anamika Escorts Service Darbhanga ❣️ 7014168258 ❣️ High Cost Unlimited Hard  ...Anamika Escorts Service Darbhanga ❣️ 7014168258 ❣️ High Cost Unlimited Hard  ...
Anamika Escorts Service Darbhanga ❣️ 7014168258 ❣️ High Cost Unlimited Hard ...
nirzagarg
 
Just Call Vip call girls diu Escorts ☎️9352988975 Two shot with one girl (diu )
Just Call Vip call girls diu Escorts ☎️9352988975 Two shot with one girl (diu )Just Call Vip call girls diu Escorts ☎️9352988975 Two shot with one girl (diu )
Just Call Vip call girls diu Escorts ☎️9352988975 Two shot with one girl (diu )
gajnagarg
 

Dernier (20)

Gamestore case study UI UX by Amgad Ibrahim
Gamestore case study UI UX by Amgad IbrahimGamestore case study UI UX by Amgad Ibrahim
Gamestore case study UI UX by Amgad Ibrahim
 
Nisha Yadav Escorts Service Ernakulam ❣️ 7014168258 ❣️ High Cost Unlimited Ha...
Nisha Yadav Escorts Service Ernakulam ❣️ 7014168258 ❣️ High Cost Unlimited Ha...Nisha Yadav Escorts Service Ernakulam ❣️ 7014168258 ❣️ High Cost Unlimited Ha...
Nisha Yadav Escorts Service Ernakulam ❣️ 7014168258 ❣️ High Cost Unlimited Ha...
 
➥🔝 7737669865 🔝▻ dehradun Call-girls in Women Seeking Men 🔝dehradun🔝 Escor...
➥🔝 7737669865 🔝▻ dehradun Call-girls in Women Seeking Men  🔝dehradun🔝   Escor...➥🔝 7737669865 🔝▻ dehradun Call-girls in Women Seeking Men  🔝dehradun🔝   Escor...
➥🔝 7737669865 🔝▻ dehradun Call-girls in Women Seeking Men 🔝dehradun🔝 Escor...
 
Escorts Service Nagavara ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Escorts Service Nagavara ☎ 7737669865☎ Book Your One night Stand (Bangalore)Escorts Service Nagavara ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Escorts Service Nagavara ☎ 7737669865☎ Book Your One night Stand (Bangalore)
 
Lecture 01 Introduction To Multimedia.pptx
Lecture 01 Introduction To Multimedia.pptxLecture 01 Introduction To Multimedia.pptx
Lecture 01 Introduction To Multimedia.pptx
 
Sector 105, Noida Call girls :8448380779 Model Escorts | 100% verified
Sector 105, Noida Call girls :8448380779 Model Escorts | 100% verifiedSector 105, Noida Call girls :8448380779 Model Escorts | 100% verified
Sector 105, Noida Call girls :8448380779 Model Escorts | 100% verified
 
Sweety Planet Packaging Design Process Book.pptx
Sweety Planet Packaging Design Process Book.pptxSweety Planet Packaging Design Process Book.pptx
Sweety Planet Packaging Design Process Book.pptx
 
Vip Mumbai Call Girls Borivali Call On 9920725232 With Body to body massage w...
Vip Mumbai Call Girls Borivali Call On 9920725232 With Body to body massage w...Vip Mumbai Call Girls Borivali Call On 9920725232 With Body to body massage w...
Vip Mumbai Call Girls Borivali Call On 9920725232 With Body to body massage w...
 
Jordan_Amanda_DMBS202404_PB1_2024-04.pdf
Jordan_Amanda_DMBS202404_PB1_2024-04.pdfJordan_Amanda_DMBS202404_PB1_2024-04.pdf
Jordan_Amanda_DMBS202404_PB1_2024-04.pdf
 
RT Nagar Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bang...
RT Nagar Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bang...RT Nagar Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bang...
RT Nagar Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bang...
 
💫✅jodhpur 24×7 BEST GENUINE PERSON LOW PRICE CALL GIRL SERVICE FULL SATISFACT...
💫✅jodhpur 24×7 BEST GENUINE PERSON LOW PRICE CALL GIRL SERVICE FULL SATISFACT...💫✅jodhpur 24×7 BEST GENUINE PERSON LOW PRICE CALL GIRL SERVICE FULL SATISFACT...
💫✅jodhpur 24×7 BEST GENUINE PERSON LOW PRICE CALL GIRL SERVICE FULL SATISFACT...
 
Just Call Vip call girls Etawah Escorts ☎️9352988975 Two shot with one girl (...
Just Call Vip call girls Etawah Escorts ☎️9352988975 Two shot with one girl (...Just Call Vip call girls Etawah Escorts ☎️9352988975 Two shot with one girl (...
Just Call Vip call girls Etawah Escorts ☎️9352988975 Two shot with one girl (...
 
High Profile Escorts Nerul WhatsApp +91-9930687706, Best Service
High Profile Escorts Nerul WhatsApp +91-9930687706, Best ServiceHigh Profile Escorts Nerul WhatsApp +91-9930687706, Best Service
High Profile Escorts Nerul WhatsApp +91-9930687706, Best Service
 
WhatsApp Chat: 📞 8617697112 Call Girl Baran is experienced
WhatsApp Chat: 📞 8617697112 Call Girl Baran is experiencedWhatsApp Chat: 📞 8617697112 Call Girl Baran is experienced
WhatsApp Chat: 📞 8617697112 Call Girl Baran is experienced
 
Abortion Pills in Oman (+918133066128) Cytotec clinic buy Oman Muscat
Abortion Pills in Oman (+918133066128) Cytotec clinic buy Oman MuscatAbortion Pills in Oman (+918133066128) Cytotec clinic buy Oman Muscat
Abortion Pills in Oman (+918133066128) Cytotec clinic buy Oman Muscat
 
Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Gi...
Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Gi...Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Gi...
Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Gi...
 
Anamika Escorts Service Darbhanga ❣️ 7014168258 ❣️ High Cost Unlimited Hard ...
Anamika Escorts Service Darbhanga ❣️ 7014168258 ❣️ High Cost Unlimited Hard  ...Anamika Escorts Service Darbhanga ❣️ 7014168258 ❣️ High Cost Unlimited Hard  ...
Anamika Escorts Service Darbhanga ❣️ 7014168258 ❣️ High Cost Unlimited Hard ...
 
Just Call Vip call girls Nagpur Escorts ☎️8617370543 Starting From 5K to 25K ...
Just Call Vip call girls Nagpur Escorts ☎️8617370543 Starting From 5K to 25K ...Just Call Vip call girls Nagpur Escorts ☎️8617370543 Starting From 5K to 25K ...
Just Call Vip call girls Nagpur Escorts ☎️8617370543 Starting From 5K to 25K ...
 
call girls in Kaushambi (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝...
call girls in Kaushambi (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝...call girls in Kaushambi (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝...
call girls in Kaushambi (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝...
 
Just Call Vip call girls diu Escorts ☎️9352988975 Two shot with one girl (diu )
Just Call Vip call girls diu Escorts ☎️9352988975 Two shot with one girl (diu )Just Call Vip call girls diu Escorts ☎️9352988975 Two shot with one girl (diu )
Just Call Vip call girls diu Escorts ☎️9352988975 Two shot with one girl (diu )
 

Android development workshop

  • 1. Cross-Development for Android & Other Mobile Platforms Prof. Jeff Sonstein Dept. of Information Sciences & Technologies Rochester Institute of Technology jxsast@rit.edu
  • 2. Why This Talk • Coding is easy, design is hard • Maintaining multiple development teams & codebases is costly & error-prone • Users appreciate a reasonably consistent experience across platforms
  • 3. Designing for Mobile 1. design for One Web 2. rely on standards 3. avoid known hazards 4. be cautious of device limitations 5. optimize navigation 6. check graphics and colors 7. keep it small 8. use network sparingly 9. help & guide user input 10. think of users on-the-go http://www.w3.org/2007/02/mwbp_flip_cards.html
  • 4. WebApps, Native Apps, & Cross-Compilation • WebApps: browser context, served over Web, written in HTML/CSS/JavaScript • Native Apps: written in higher-level language specific to that platform • Cross-compilers: advantages of WebApps but install as native apps
  • 5. Phonegap & Mobile Devices • PhoneGap is a tool which allows you to compose once (using HTML/CSS/JavaScript) then cross- compile and deploy to many different target platforms: • iOs • Android • Blackberry • webOS • Windows Mobile • Symbian
  • 6. Installing Phonegap • see http://www.ist.rit.edu/~jxs/classes/2010_Winter/MobileFoundations/01_week/ phonegapStart.html for more details • download and install Android SDKs • download PhoneGap • unarchive it into an arbitrary directory • make sure Android tools directory is in your $PATH (on my system: /Users/ jeffs/development/android/tools)
  • 7. Compiling & Deploying Phonegap Apps • open a terminal window and navigate to appropriate PhoneGap directory (on my system: /Users/jeffs/development/phonegap/phonegap-android/) • compile with droidgap tool (see details page on previous slide) • open second terminal window and start Android emulator or plug in Android device • change directory to wherever you told droidgap to put the generated code • issue command ant debug install
  • 8. Demo • exit to live demo
  • 9. Phonegap Docs & Materials Online • common functionality: http://docs.phonegap.com/ • tutorials: http://wiki.phonegap.com/w/page/ 16494772/FrontPage • google group: http://groups.google.com/group/ phonegap • source repository: https://github.com/phonegap • development tools: http://www.phonegap.com/tools/
  • 10. Phonegap API Capabilities • High-level common mobile functionality API • Support for HTML5 & CSS3
  • 11. Common Functionality: Accelerometer • Captures device motion in X/Y/Z directions • Methods: • getCurrentAcceleration • watchAcceleration • clearWatch
  • 12. Common Functionality: Camera • Provides access to default camera • Method: • getPicture
  • 13. Common Functionality: Compass • Obtains direction device is pointing • Methods: • getCurrentHeading • watchHeading • clearWatch
  • 14. Common Functionality: Contacts • Provides access to device contacts database • Methods: • create • find
  • 15. Common Functionality: Device • Gather device hardware/software info • Properties: • name • phonegap (gets version) • platform • uuid • version
  • 16. Common Functionality: Events • Fires when Phonegap has loaded • Event: • deviceready
  • 17. Common Functionality: File System • Provides access to the device file system • Objects: • FileReader • FileWriter • FileError
  • 18. Common Functionality: Geolocation • Provides access to the GPS sensor • Methods: • getCurrentPosition • watchPosition • clearWatch
  • 19. Common Functionality: Media • Provides ability to record and play back audio • Methods: • getCurrentPosition • getDuration • play/pause • release • start/stop record • stop
  • 20. Common Functionality: Network • Access both cellular & wifi connection info • Method: • isReachable
  • 21. Common Functionality: Notifications • Visual, audible, & tactile device notifications • Methods: • alert • confirm • beep • vibrate
  • 22. Common Functionality: Storage • Access device database implementation • Method: • openDatabase • Database object manipulation sub- methods
  • 23. HTML5 localStorage • name/value pairs (think associative array) • persists between sessions • example: • http://www.ist.rit.edu/~jxs/classes/2010_Winter/ MobileFoundations/05_week/storage.html
  • 24. CSS3 & Webkit • Support table: • http://westciv.com/wiki/ Experimental_CSS_compatibility_table • Tutorial: • http://www.cardeo.ca/css3-handbook/
  • 26. Summary • Design design design, then code once • Maintaining a single design team and one codebase and having a unified UX across platforms is generally more efficient • Leveraging your Web developer’s skills is generally A Good Idea
  • 27. Exercise • Download and install Android development tools • Download and install PhoneGap • Compile & test/deploy example app from PhoneGap directory • Write, compile, & test/deploy your own HelloWorld app
  • 28. Cross-Development for Android & Other Mobile Platforms Prof. Jeff Sonstein Dept. of Information Sciences & Technologies Rochester Institute of Technology jxsast@rit.edu