SlideShare a Scribd company logo
Building Android Using
PhoneGap




         By – Mr.Prajyot Mainkar (@prajyotm)
SO WHAT’s IN PLATE
KEY TOPICS

            Topics            Time Duration
         Introduction            15 mins
    About PhoneGap and Libs      30 mins
       PhoneGap Demo             30 mins
About Me

                                                       C.E.O & Founder
                                                   SPM Softwares & Designers


                             Project Management
                                 Professional               Mentor,
                                                     Google Developer Group




                                                         Head Maven,
Head, Startup Saturday Goa   Developer Advocate,    Goa Android User Group
                                Androcid.com
About Me
TYPES OF APPS
CHOOSE WHICH SUITS
  NATIVE APPLICATION                           MOBILE WEB
  App Designed Using Local Resources           Integrating app functionality
                                               APPLICATION                     with web
  and is mobile os centric                     development techniques




  CROSS PLATFORM DEV TOOLS                     NATIVE & WEB APPLICATION
  Using the respective model to create cross   Writing minimal native UI and loading web
  native apps that works on all intended       services for data transmission over server
  targets
Native Apps Are PRESENT
But Hybrid Apps are The Future

                 Native App   Web App   Hybrid App
Cross Platform
Linkable
Discoverable
Device API
What is PhoneGap?
•An Open Source Platform to
create native apps using web
technologies

•A JavaScript library/wrapper

•A Native Library for every
platform ( Multi Platform
Support)

•Compilation helper/builder
API’s In PhoneGap
Building Hybrid Applications using PhoneGap
Case Study Apps - PhoneGap
WHAT CAN YOU DO WITH PHONEGAP?
              Moby is designed by GPS and
              location-based services applications
              expert Contigo. It’s a private location-
              sharing app for the people who matter
              most to you. The mobile app, built
              using the PhoneGap framework,
              answers the question, "Where are
              you?" by sharing users' coordinates
              with family and friends. Unlike similar
              services, Moby only shares your
              location with the people you choose,
              for the length of time you want. Moby
              also acts as a personal safety app
              allowing users to request help from
              family and friends at the touch of a
              button.
WHAT CAN YOU DO WITH PHONEGAP?
              HealthTap is the best way to quickly find,
              trusted, reputable doctor answers to
              health questions anytime, anywhere for
              free!

              ✓ Get fast, free, trustworthy health
              answers on any symptom, condition,
              medication or health concern from over
              14,000 of the best U.S. doctors

              ✓ Connect with doctors by starting
              private conversations in a safe, HIPAA-
              secure environment
Titanium V/s PhoneGap
•JavaScript API that provides access to Native Functions
•Supports HTML5/CSS3
•Supports Web Standards & Re-use Across Enterprise Apps
•Supports DOM based JavaScript Libraries/Frameworks
•Supports the most platforms




•JavaScript API that provides access to Native Functions
•Compiles to Native Code
•Could provide better performance.
A Simple Hybrid Application
 •Take advantage of the strengths of PhoneGap.
 •Support multiple platforms.
 •Works Together.
 •Easy Compilation.
 •Smart Share among your network.
And yes!
There would be
codes
Getting Started with Android
Step 1 : Create a New Project
Step 2 : PhoneGap Processing
In the root directory of your project, create two new directories:

1./libs
2.assets/www

•Copy cordova-2.0.0.js from your Cordova download earlier to assets/www
•Copy cordova-2.0.0.jar from your Cordova download earlier to /libs
•Copy xml folder from your Cordova download earlier to /res

•Verify that cordova-2.0.0.jar is listed in the Build Path for your project.
•Right click on the /libs folder and go to Build Paths/ > Configure Build Path.
•Then, in the Libraries tab, add cordova-2.0.0.jar to the project.
•Refresh the project
Step 2 : PhoneGap Processing
Step 3 : Class File Processing
Edit your project's main Java file found in the src folder in Eclipse:

1.Add import org.apache.cordova.*;
2.Change the class's extend from Activity to DroidGap
3.Replace the setContentView() line with super.loadUrl("file:///android_asset/www/index.html");
Step 4: Android Manifest
Use the following permissions between the <uses-sdk.../>
and <application.../> tags.




android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale"
Step 5 : Hello World
Create and open a new file named index.html in the
assets/www directory. Paste the following code:




                Deploy and Run the Code
Extending Power of PhoneGap
Plugins in PhoneGap

Adobe® PhoneGap™ Build
supports a curated selection
of PhoneGap Plugins, to
extend the native
functionality exposed by the
PhoneGap native-app
container.



        https://github.com/phonegap/phonegap-plugins
What Tools Are Available?
Building Hybrid Applications using PhoneGap
What Libraries Are Available ?
Building Hybrid Applications using PhoneGap
Debugging PhoneGap
http:// Debug.phonegap.com




    What about Device API'? using WebView, Line-by-Line
                 Debugging could be pain

Weinre lets us to debug and manipulate the DOM from our PCs
Challenges in PhoneGap
1. How safe is it to use embedded
   Webview?
2. HTMl5 and CSS3 support
3. Debugging and profiling
4. Performance and Memory Usage
5. Screen Sizes and Orientation
6. DPI's
7. User Interface - or just use the
   Native Look
8. Performance and Optimization
What is NOT PhoneGap ?
1. PhoneGap is NOT a UI Framework
2. PhoneGap Doesn't include a
   browser and/or a rendering engine
3. PhoneGap Doesn't compile
4. Every Platform needs its own
   compilation
5. HTML5/CSS3 Compatibility
Check – http://www.mobilehtml5.org
GET IN TOUCH
CONTACT US                        Address:
                                  SPM Softwares & Designers
f   facebook.com/prajyotmainkar
                                  Zarina Towers,St.Inez,Panaji Goa

t   twitter.com/prajyotm
                                  Phone:
                                  +91-9822987513
     linkedin.com/in/prajyotm
                                  Email:
                                  prajyotm@msn.com

More Related Content

PDF
Introduction to PhoneGap
PPTX
All About Phonegap
PPTX
Phone gap
PPTX
PhoneGap: a brief history and apologia
KEY
From mobile browser to mobile app
PPTX
Building mobile apps using Phonegap
PDF
PhoneGap: Building Mobile Applications with HTML/JS
PDF
Developing with Phonegap - Adobe Refresh 2012
Introduction to PhoneGap
All About Phonegap
Phone gap
PhoneGap: a brief history and apologia
From mobile browser to mobile app
Building mobile apps using Phonegap
PhoneGap: Building Mobile Applications with HTML/JS
Developing with Phonegap - Adobe Refresh 2012

What's hot (18)

PPTX
Phone gap
PDF
Debugging and deploying with phone gap
PDF
Introduction to PhoneGap
KEY
Intro to PhoneGap
PDF
PhoneGap Talk @ Sencha Con 2010
PDF
Building Native Mobile Applications with PhoneGap
PDF
PhoneGap Day US 2013 - Chrome Packaged Apps
PPTX
Phonegap - An Overview
PPTX
Phonegap
PPT
DroidCon 2011: Developing HTML5 and hybrid Android apps using Phonegap
PDF
Cordova and PhoneGap Insights
PPT
PhoneGap
PDF
Hybrid mobile apps
PPTX
Phonegap
ODP
Introduction to PhoneGap
PDF
Mobile Development with PhoneGap
KEY
Phonegap for Engineers
PDF
Cordova / PhoneGap, mobile apps development with HTML5/JS/CSS
Phone gap
Debugging and deploying with phone gap
Introduction to PhoneGap
Intro to PhoneGap
PhoneGap Talk @ Sencha Con 2010
Building Native Mobile Applications with PhoneGap
PhoneGap Day US 2013 - Chrome Packaged Apps
Phonegap - An Overview
Phonegap
DroidCon 2011: Developing HTML5 and hybrid Android apps using Phonegap
Cordova and PhoneGap Insights
PhoneGap
Hybrid mobile apps
Phonegap
Introduction to PhoneGap
Mobile Development with PhoneGap
Phonegap for Engineers
Cordova / PhoneGap, mobile apps development with HTML5/JS/CSS
Ad

Viewers also liked (15)

PPTX
2013.02.26 Intel Overview
PDF
Mobile Day - Intel XDK & Testing
ODP
Pemanfaatan Teknologi Android
PPTX
Intel XDK in Brief
DOCX
Laporan pratikum 1 semester | Listing Program Pratikum Visual Basic 2010 Seme...
PPTX
Multi-platform Compatibility of HTML5 by developing simple HTML5 based game(M...
PDF
Desenvolvimento de Aplicativo Multiplataforma com Intel® XDK
PPTX
Pengontrol kecerahan lampu pijar menggunakan aplikasi android berbasis arduin...
PPT
Agus Hamonangan - Sejarah Android, Penetrasi/Pertumbungan, dan Peluang Smartp...
PDF
03 - Membangun Aplikasi Mobile Berkualitas (Herman Tolle)
DOCX
Perspektif global
PPTX
Crosswalk and the Intel XDK
PDF
Building modern web apps with html5, javascript, and java
KEY
HTML5 is the Future of Mobile, PhoneGap Takes You There Today
PDF
Tutorial Lengkap Cara Membuat Aplikasi Android Sederhana
2013.02.26 Intel Overview
Mobile Day - Intel XDK & Testing
Pemanfaatan Teknologi Android
Intel XDK in Brief
Laporan pratikum 1 semester | Listing Program Pratikum Visual Basic 2010 Seme...
Multi-platform Compatibility of HTML5 by developing simple HTML5 based game(M...
Desenvolvimento de Aplicativo Multiplataforma com Intel® XDK
Pengontrol kecerahan lampu pijar menggunakan aplikasi android berbasis arduin...
Agus Hamonangan - Sejarah Android, Penetrasi/Pertumbungan, dan Peluang Smartp...
03 - Membangun Aplikasi Mobile Berkualitas (Herman Tolle)
Perspektif global
Crosswalk and the Intel XDK
Building modern web apps with html5, javascript, and java
HTML5 is the Future of Mobile, PhoneGap Takes You There Today
Tutorial Lengkap Cara Membuat Aplikasi Android Sederhana
Ad

Similar to Building Hybrid Applications using PhoneGap (20)

PPTX
Rapid Prototyping with Cordova aka Phonegap
PPSX
Developing Downloadable Mobile Apps Using HTML5 and PhoneGap
PDF
HTML5 vs Native Android: Smart Enterprises for the Future
PDF
PhoneGap Day - IBM, PhoneGap and the Enterprise
PDF
The Enterprise Dilemma: Native vs. Web
PDF
HTML5 for Mobile - When and Why
 
PDF
Whitepaper - Native App or HTML5
PDF
Cross-Platform Mobile Development with PhoneGap-Vince Bullinger
PDF
Mobile web or native app
PPTX
Hybrid Mobile App
PPTX
Hybrid mobile app
PPTX
Mobile Application Development Unit 1.pptx
KEY
The Mobile App Landscape
PPTX
Midweek breather hybridapps
PDF
Benefits of PhoneGap for Mobile App Development - Appzure
PDF
Smau milano 2012 arena social media emanuele-bolognesi
PPTX
Consider Starting Small
KEY
Mobile Drupal
PDF
Mobile stategy
PPT
Hybrid App Development using PhoneGap/Cordova
Rapid Prototyping with Cordova aka Phonegap
Developing Downloadable Mobile Apps Using HTML5 and PhoneGap
HTML5 vs Native Android: Smart Enterprises for the Future
PhoneGap Day - IBM, PhoneGap and the Enterprise
The Enterprise Dilemma: Native vs. Web
HTML5 for Mobile - When and Why
 
Whitepaper - Native App or HTML5
Cross-Platform Mobile Development with PhoneGap-Vince Bullinger
Mobile web or native app
Hybrid Mobile App
Hybrid mobile app
Mobile Application Development Unit 1.pptx
The Mobile App Landscape
Midweek breather hybridapps
Benefits of PhoneGap for Mobile App Development - Appzure
Smau milano 2012 arena social media emanuele-bolognesi
Consider Starting Small
Mobile Drupal
Mobile stategy
Hybrid App Development using PhoneGap/Cordova

More from Prajyot Mainkar (15)

PDF
Kolkata kreate - Talk by Prajyot Mainkar
PDF
Devfest baroda 2019 By prajyot mainkar
PDF
Building for next india
PDF
Pitch that matters
PDF
Android Power Optimization: May the Power be with you
PDF
Android performance
PDF
Gaining the app visibility that matters
PDF
DroidSync 2014
PDF
Nitrodroid 2013 - Closing Report
PPT
Google Cloud Messaging
PPT
Android Cloud to Device Messaging Framework
PDF
Evolution google-android play
PDF
Steps to install android
PPTX
Android Tutorials - Powering with Selection Widget
PPTX
Android Tutorials : Basic widgets
Kolkata kreate - Talk by Prajyot Mainkar
Devfest baroda 2019 By prajyot mainkar
Building for next india
Pitch that matters
Android Power Optimization: May the Power be with you
Android performance
Gaining the app visibility that matters
DroidSync 2014
Nitrodroid 2013 - Closing Report
Google Cloud Messaging
Android Cloud to Device Messaging Framework
Evolution google-android play
Steps to install android
Android Tutorials - Powering with Selection Widget
Android Tutorials : Basic widgets

Recently uploaded (20)

PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Encapsulation theory and applications.pdf
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Approach and Philosophy of On baking technology
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Encapsulation theory and applications.pdf
MYSQL Presentation for SQL database connectivity
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
Mobile App Security Testing_ A Comprehensive Guide.pdf
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Unlocking AI with Model Context Protocol (MCP)
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Dropbox Q2 2025 Financial Results & Investor Presentation
“AI and Expert System Decision Support & Business Intelligence Systems”
Network Security Unit 5.pdf for BCA BBA.
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Advanced methodologies resolving dimensionality complications for autism neur...
NewMind AI Weekly Chronicles - August'25 Week I
Approach and Philosophy of On baking technology
Review of recent advances in non-invasive hemoglobin estimation
The Rise and Fall of 3GPP – Time for a Sabbatical?
Diabetes mellitus diagnosis method based random forest with bat algorithm
Bridging biosciences and deep learning for revolutionary discoveries: a compr...

Building Hybrid Applications using PhoneGap

  • 1. Building Android Using PhoneGap By – Mr.Prajyot Mainkar (@prajyotm)
  • 2. SO WHAT’s IN PLATE KEY TOPICS Topics Time Duration Introduction 15 mins About PhoneGap and Libs 30 mins PhoneGap Demo 30 mins
  • 3. About Me C.E.O & Founder SPM Softwares & Designers Project Management Professional Mentor, Google Developer Group Head Maven, Head, Startup Saturday Goa Developer Advocate, Goa Android User Group Androcid.com
  • 5. TYPES OF APPS CHOOSE WHICH SUITS NATIVE APPLICATION MOBILE WEB App Designed Using Local Resources Integrating app functionality APPLICATION with web and is mobile os centric development techniques CROSS PLATFORM DEV TOOLS NATIVE & WEB APPLICATION Using the respective model to create cross Writing minimal native UI and loading web native apps that works on all intended services for data transmission over server targets
  • 6. Native Apps Are PRESENT But Hybrid Apps are The Future Native App Web App Hybrid App Cross Platform Linkable Discoverable Device API
  • 8. •An Open Source Platform to create native apps using web technologies •A JavaScript library/wrapper •A Native Library for every platform ( Multi Platform Support) •Compilation helper/builder
  • 11. Case Study Apps - PhoneGap
  • 12. WHAT CAN YOU DO WITH PHONEGAP? Moby is designed by GPS and location-based services applications expert Contigo. It’s a private location- sharing app for the people who matter most to you. The mobile app, built using the PhoneGap framework, answers the question, "Where are you?" by sharing users' coordinates with family and friends. Unlike similar services, Moby only shares your location with the people you choose, for the length of time you want. Moby also acts as a personal safety app allowing users to request help from family and friends at the touch of a button.
  • 13. WHAT CAN YOU DO WITH PHONEGAP? HealthTap is the best way to quickly find, trusted, reputable doctor answers to health questions anytime, anywhere for free! ✓ Get fast, free, trustworthy health answers on any symptom, condition, medication or health concern from over 14,000 of the best U.S. doctors ✓ Connect with doctors by starting private conversations in a safe, HIPAA- secure environment
  • 15. •JavaScript API that provides access to Native Functions •Supports HTML5/CSS3 •Supports Web Standards & Re-use Across Enterprise Apps •Supports DOM based JavaScript Libraries/Frameworks •Supports the most platforms •JavaScript API that provides access to Native Functions •Compiles to Native Code •Could provide better performance.
  • 16. A Simple Hybrid Application •Take advantage of the strengths of PhoneGap. •Support multiple platforms. •Works Together. •Easy Compilation. •Smart Share among your network.
  • 19. Step 1 : Create a New Project
  • 20. Step 2 : PhoneGap Processing In the root directory of your project, create two new directories: 1./libs 2.assets/www •Copy cordova-2.0.0.js from your Cordova download earlier to assets/www •Copy cordova-2.0.0.jar from your Cordova download earlier to /libs •Copy xml folder from your Cordova download earlier to /res •Verify that cordova-2.0.0.jar is listed in the Build Path for your project. •Right click on the /libs folder and go to Build Paths/ > Configure Build Path. •Then, in the Libraries tab, add cordova-2.0.0.jar to the project. •Refresh the project
  • 21. Step 2 : PhoneGap Processing
  • 22. Step 3 : Class File Processing Edit your project's main Java file found in the src folder in Eclipse: 1.Add import org.apache.cordova.*; 2.Change the class's extend from Activity to DroidGap 3.Replace the setContentView() line with super.loadUrl("file:///android_asset/www/index.html");
  • 23. Step 4: Android Manifest Use the following permissions between the <uses-sdk.../> and <application.../> tags. android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale"
  • 24. Step 5 : Hello World Create and open a new file named index.html in the assets/www directory. Paste the following code: Deploy and Run the Code
  • 25. Extending Power of PhoneGap
  • 26. Plugins in PhoneGap Adobe® PhoneGap™ Build supports a curated selection of PhoneGap Plugins, to extend the native functionality exposed by the PhoneGap native-app container. https://github.com/phonegap/phonegap-plugins
  • 27. What Tools Are Available?
  • 29. What Libraries Are Available ?
  • 32. http:// Debug.phonegap.com What about Device API'? using WebView, Line-by-Line Debugging could be pain Weinre lets us to debug and manipulate the DOM from our PCs
  • 34. 1. How safe is it to use embedded Webview? 2. HTMl5 and CSS3 support 3. Debugging and profiling 4. Performance and Memory Usage 5. Screen Sizes and Orientation 6. DPI's 7. User Interface - or just use the Native Look 8. Performance and Optimization
  • 35. What is NOT PhoneGap ?
  • 36. 1. PhoneGap is NOT a UI Framework 2. PhoneGap Doesn't include a browser and/or a rendering engine 3. PhoneGap Doesn't compile 4. Every Platform needs its own compilation 5. HTML5/CSS3 Compatibility Check – http://www.mobilehtml5.org
  • 37. GET IN TOUCH CONTACT US Address: SPM Softwares & Designers f facebook.com/prajyotmainkar Zarina Towers,St.Inez,Panaji Goa t twitter.com/prajyotm Phone: +91-9822987513 linkedin.com/in/prajyotm Email: prajyotm@msn.com