SlideShare une entreprise Scribd logo
1  sur  37
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
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?
What Libraries Are Available ?
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

Contenu connexe

Tendances

Introduction to PhoneGap
Introduction to PhoneGapIntroduction to PhoneGap
Introduction to PhoneGap
degarden
 
Building Native Mobile Applications with PhoneGap
Building Native Mobile Applications with PhoneGapBuilding Native Mobile Applications with PhoneGap
Building Native Mobile Applications with PhoneGap
Simon MacDonald
 
Phonegap for Engineers
Phonegap for EngineersPhonegap for Engineers
Phonegap for Engineers
Brian LeRoux
 

Tendances (19)

Phone gap
Phone gapPhone gap
Phone gap
 
Debugging and deploying with phone gap
Debugging and deploying with phone gapDebugging and deploying with phone gap
Debugging and deploying with phone gap
 
Introduction to PhoneGap
Introduction to PhoneGapIntroduction to PhoneGap
Introduction to PhoneGap
 
Intro to PhoneGap
Intro to PhoneGapIntro to PhoneGap
Intro to PhoneGap
 
PhoneGap Talk @ Sencha Con 2010
PhoneGap Talk @ Sencha Con 2010PhoneGap Talk @ Sencha Con 2010
PhoneGap Talk @ Sencha Con 2010
 
Building Native Mobile Applications with PhoneGap
Building Native Mobile Applications with PhoneGapBuilding Native Mobile Applications with PhoneGap
Building Native Mobile Applications with PhoneGap
 
PhoneGap Day US 2013 - Chrome Packaged Apps
PhoneGap Day US 2013 - Chrome Packaged AppsPhoneGap Day US 2013 - Chrome Packaged Apps
PhoneGap Day US 2013 - Chrome Packaged Apps
 
Phonegap - An Overview
Phonegap - An OverviewPhonegap - An Overview
Phonegap - An Overview
 
Phonegap
PhonegapPhonegap
Phonegap
 
DroidCon 2011: Developing HTML5 and hybrid Android apps using Phonegap
DroidCon 2011: Developing HTML5 and hybrid Android apps using PhonegapDroidCon 2011: Developing HTML5 and hybrid Android apps using Phonegap
DroidCon 2011: Developing HTML5 and hybrid Android apps using Phonegap
 
Cordova and PhoneGap Insights
Cordova and PhoneGap InsightsCordova and PhoneGap Insights
Cordova and PhoneGap Insights
 
PhoneGap
PhoneGapPhoneGap
PhoneGap
 
Hybrid mobile apps
Hybrid mobile appsHybrid mobile apps
Hybrid mobile apps
 
Phonegap
PhonegapPhonegap
Phonegap
 
Introduction to PhoneGap
Introduction to PhoneGapIntroduction to PhoneGap
Introduction to PhoneGap
 
Mobile Development with PhoneGap
Mobile Development with PhoneGapMobile Development with PhoneGap
Mobile Development with PhoneGap
 
Getting Acquainted with PhoneGap
Getting Acquainted with PhoneGapGetting Acquainted with PhoneGap
Getting Acquainted with PhoneGap
 
Phonegap for Engineers
Phonegap for EngineersPhonegap for Engineers
Phonegap for Engineers
 
Cordova / PhoneGap, mobile apps development with HTML5/JS/CSS
Cordova / PhoneGap, mobile apps development with HTML5/JS/CSSCordova / PhoneGap, mobile apps development with HTML5/JS/CSS
Cordova / PhoneGap, mobile apps development with HTML5/JS/CSS
 

En vedette

Laporan pratikum 1 semester | Listing Program Pratikum Visual Basic 2010 Seme...
Laporan pratikum 1 semester | Listing Program Pratikum Visual Basic 2010 Seme...Laporan pratikum 1 semester | Listing Program Pratikum Visual Basic 2010 Seme...
Laporan pratikum 1 semester | Listing Program Pratikum Visual Basic 2010 Seme...
Desiaman Thelaumbanua
 
Pengontrol kecerahan lampu pijar menggunakan aplikasi android berbasis arduin...
Pengontrol kecerahan lampu pijar menggunakan aplikasi android berbasis arduin...Pengontrol kecerahan lampu pijar menggunakan aplikasi android berbasis arduin...
Pengontrol kecerahan lampu pijar menggunakan aplikasi android berbasis arduin...
doni oktaviana
 
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
 

En vedette (15)

2013.02.26 Intel Overview
2013.02.26 Intel Overview2013.02.26 Intel Overview
2013.02.26 Intel Overview
 
Mobile Day - Intel XDK & Testing
Mobile Day - Intel XDK & TestingMobile Day - Intel XDK & Testing
Mobile Day - Intel XDK & Testing
 
Pemanfaatan Teknologi Android
Pemanfaatan Teknologi AndroidPemanfaatan Teknologi Android
Pemanfaatan Teknologi Android
 
Intel XDK in Brief
Intel XDK in BriefIntel XDK in Brief
Intel XDK in Brief
 
Laporan pratikum 1 semester | Listing Program Pratikum Visual Basic 2010 Seme...
Laporan pratikum 1 semester | Listing Program Pratikum Visual Basic 2010 Seme...Laporan pratikum 1 semester | Listing Program Pratikum Visual Basic 2010 Seme...
Laporan pratikum 1 semester | Listing Program Pratikum Visual Basic 2010 Seme...
 
Multi-platform Compatibility of HTML5 by developing simple HTML5 based game(M...
Multi-platform Compatibility of HTML5 by developing simple HTML5 based game(M...Multi-platform Compatibility of HTML5 by developing simple HTML5 based game(M...
Multi-platform Compatibility of HTML5 by developing simple HTML5 based game(M...
 
Desenvolvimento de Aplicativo Multiplataforma com Intel® XDK
Desenvolvimento de Aplicativo Multiplataforma com  Intel® XDKDesenvolvimento de Aplicativo Multiplataforma com  Intel® XDK
Desenvolvimento de Aplicativo Multiplataforma com Intel® XDK
 
Pengontrol kecerahan lampu pijar menggunakan aplikasi android berbasis arduin...
Pengontrol kecerahan lampu pijar menggunakan aplikasi android berbasis arduin...Pengontrol kecerahan lampu pijar menggunakan aplikasi android berbasis arduin...
Pengontrol kecerahan lampu pijar menggunakan aplikasi android berbasis arduin...
 
Agus Hamonangan - Sejarah Android, Penetrasi/Pertumbungan, dan Peluang Smartp...
Agus Hamonangan - Sejarah Android, Penetrasi/Pertumbungan, dan Peluang Smartp...Agus Hamonangan - Sejarah Android, Penetrasi/Pertumbungan, dan Peluang Smartp...
Agus Hamonangan - Sejarah Android, Penetrasi/Pertumbungan, dan Peluang Smartp...
 
03 - Membangun Aplikasi Mobile Berkualitas (Herman Tolle)
03 - Membangun Aplikasi Mobile Berkualitas (Herman Tolle)03 - Membangun Aplikasi Mobile Berkualitas (Herman Tolle)
03 - Membangun Aplikasi Mobile Berkualitas (Herman Tolle)
 
Perspektif global
Perspektif  globalPerspektif  global
Perspektif global
 
Crosswalk and the Intel XDK
Crosswalk and the Intel XDKCrosswalk and the Intel XDK
Crosswalk and the Intel XDK
 
Building modern web apps with html5, javascript, and java
Building modern web apps with html5, javascript, and javaBuilding modern web apps with html5, javascript, and java
Building modern web apps with html5, javascript, and java
 
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
 
Tutorial Lengkap Cara Membuat Aplikasi Android Sederhana
Tutorial Lengkap Cara Membuat Aplikasi Android SederhanaTutorial Lengkap Cara Membuat Aplikasi Android Sederhana
Tutorial Lengkap Cara Membuat Aplikasi Android Sederhana
 

Similaire à Building Hybrid Applications using PhoneGap

10 Advantages Of Using Django For Web Development.pdf
10 Advantages Of Using Django For Web Development.pdf10 Advantages Of Using Django For Web Development.pdf
10 Advantages Of Using Django For Web Development.pdf
Appdeveloper10
 

Similaire à Building Hybrid Applications using PhoneGap (20)

Consider Starting Small
Consider Starting SmallConsider Starting Small
Consider Starting Small
 
Presentation
PresentationPresentation
Presentation
 
Mobile app developer
Mobile app developerMobile app developer
Mobile app developer
 
MOBILE APPLICATIONS DEVELOPMENT AND SERVICES.pptx
MOBILE APPLICATIONS DEVELOPMENT AND SERVICES.pptxMOBILE APPLICATIONS DEVELOPMENT AND SERVICES.pptx
MOBILE APPLICATIONS DEVELOPMENT AND SERVICES.pptx
 
What are the best 9 open source app development software solutions?
What are the best 9 open source app development software solutions?What are the best 9 open source app development software solutions?
What are the best 9 open source app development software solutions?
 
Cross Platform App Development Company in India _ Deuglo.ppt
Cross Platform App Development Company in India _ Deuglo.pptCross Platform App Development Company in India _ Deuglo.ppt
Cross Platform App Development Company in India _ Deuglo.ppt
 
PhoneGap Credentials @ Neev
PhoneGap Credentials @ NeevPhoneGap Credentials @ Neev
PhoneGap Credentials @ Neev
 
Top Advantages of Cross Platform Mobile App Development
Top Advantages of Cross Platform Mobile App DevelopmentTop Advantages of Cross Platform Mobile App Development
Top Advantages of Cross Platform Mobile App Development
 
Hybrid app development
Hybrid app developmentHybrid app development
Hybrid app development
 
10 Advantages Of Using Django For Web Development.pdf
10 Advantages Of Using Django For Web Development.pdf10 Advantages Of Using Django For Web Development.pdf
10 Advantages Of Using Django For Web Development.pdf
 
Hybrid Application Development documentation report (MCA Project)
Hybrid Application Development documentation report (MCA Project)Hybrid Application Development documentation report (MCA Project)
Hybrid Application Development documentation report (MCA Project)
 
Cool App Ideas - Native , Hybrid or Web Apps - Netset
Cool App Ideas - Native , Hybrid or Web Apps - NetsetCool App Ideas - Native , Hybrid or Web Apps - Netset
Cool App Ideas - Native , Hybrid or Web Apps - Netset
 
web development ppt by prakash bedage
web development ppt by prakash bedageweb development ppt by prakash bedage
web development ppt by prakash bedage
 
web development project prakash.pptx
web development project prakash.pptxweb development project prakash.pptx
web development project prakash.pptx
 
Python's advantages for developing mobile apps.pptx
Python's advantages for developing mobile apps.pptxPython's advantages for developing mobile apps.pptx
Python's advantages for developing mobile apps.pptx
 
A Guide to Mobile App Development - Web vs Native vs Hybrid.pdf
A Guide to Mobile App Development - Web vs Native vs Hybrid.pdfA Guide to Mobile App Development - Web vs Native vs Hybrid.pdf
A Guide to Mobile App Development - Web vs Native vs Hybrid.pdf
 
Native, hybrid, or pw as – choose the best for your business
Native, hybrid, or pw as – choose the best for your businessNative, hybrid, or pw as – choose the best for your business
Native, hybrid, or pw as – choose the best for your business
 
Native Mobile Platforms vs Phonegap – A Comparison
Native Mobile Platforms vs Phonegap – A ComparisonNative Mobile Platforms vs Phonegap – A Comparison
Native Mobile Platforms vs Phonegap – A Comparison
 
Intro to tech stacks bonny
Intro to tech stacks bonnyIntro to tech stacks bonny
Intro to tech stacks bonny
 
Cross platform app development a complete guide
Cross platform app development a complete guideCross platform app development a complete guide
Cross platform app development a complete guide
 

Plus de Prajyot Mainkar

Steps to install android
Steps to install androidSteps to install android
Steps to install android
Prajyot Mainkar
 

Plus de Prajyot Mainkar (15)

Kolkata kreate - Talk by Prajyot Mainkar
Kolkata kreate - Talk by Prajyot MainkarKolkata kreate - Talk by Prajyot Mainkar
Kolkata kreate - Talk by Prajyot Mainkar
 
Devfest baroda 2019 By prajyot mainkar
Devfest baroda 2019 By prajyot mainkarDevfest baroda 2019 By prajyot mainkar
Devfest baroda 2019 By prajyot mainkar
 
Building for next india
Building for next indiaBuilding for next india
Building for next india
 
Pitch that matters
Pitch that mattersPitch that matters
Pitch that matters
 
Android Power Optimization: May the Power be with you
Android Power Optimization: May the Power be with youAndroid Power Optimization: May the Power be with you
Android Power Optimization: May the Power be with you
 
Android performance
Android performanceAndroid performance
Android performance
 
Gaining the app visibility that matters
Gaining the app visibility that mattersGaining the app visibility that matters
Gaining the app visibility that matters
 
DroidSync 2014
DroidSync 2014DroidSync 2014
DroidSync 2014
 
Nitrodroid 2013 - Closing Report
Nitrodroid 2013 - Closing ReportNitrodroid 2013 - Closing Report
Nitrodroid 2013 - Closing Report
 
Google Cloud Messaging
Google Cloud Messaging Google Cloud Messaging
Google Cloud Messaging
 
Android Cloud to Device Messaging Framework
Android Cloud to Device Messaging FrameworkAndroid Cloud to Device Messaging Framework
Android Cloud to Device Messaging Framework
 
Evolution google-android play
Evolution google-android playEvolution google-android play
Evolution google-android play
 
Steps to install android
Steps to install androidSteps to install android
Steps to install android
 
Android Tutorials - Powering with Selection Widget
Android Tutorials - Powering with Selection WidgetAndroid Tutorials - Powering with Selection Widget
Android Tutorials - Powering with Selection Widget
 
Android Tutorials : Basic widgets
Android Tutorials : Basic widgetsAndroid Tutorials : Basic widgets
Android Tutorials : Basic widgets
 

Dernier

Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Dernier (20)

ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot ModelNavi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 

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
  • 10.
  • 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?
  • 28.
  • 29. What Libraries Are Available ?
  • 30.
  • 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