How phonegap really works?

It is just a webview that have many api to native functions?

Can I have a phonegap activity and a native activity in an app?

  • Android/PhoneGap: Using third-party libraries in plugin-development
  • How to give visitors to a mobile website offline access to CouchDB data?
  • no resource id found for app:layout_scrollflags from CollapsingToolbarLayout
  • Android M: unable to remove Wi-Fi AP programmatically
  • Varying windowSoftInputMode for fragments inside the viewpager
  • Difference between static and shared libraries in Android's NDK?
  • Related posts:

    Rounded corner for textview in android
    Forgot Keystore password, thinking of Brute-Force detection. will it corrupt the keystore?
    “Service discovery failed” from Android Bluetooth Insecure Rfcomm
    Android canvas draw rectangle
    How to save custom ArrayList on Android screen rotate?
    SSLHandshakeException: Handshake failed on Android N/7.0
  • IndexOutOfBoundsException in my Android Listview adapter
  • PullToRefresh list with pinned section header
  • How to capture image from custom CameraView in Android?
  • use of cursor in android
  • Gradle take too much to build
  • What is Android PDK?
  • 4 Solutions collect form web for “How phonegap really works?”

    (1) Yes…PhoneGap provides a setup for every major mobile operating system that will create the same environment everywhere. This consists of a webview and a set of javascript functions that are mapped to native functions. This way you only need to develop one applications (based on HTML, CSS and JavaScript) and it can be run on any OS PhoneGap can provide its framework for.

    • Your application <–> Phonegap <–> Android
    • Your application <–> Phonegap <–> Windows Phone
    • Your application <–> Phonegap <–> iOS
    • Your application <–> Phonegap <–> …

    It takes having to deal with different operating systems away from you and instead you can focus on building your application, because you only “talk” to Phonegap and it will talk to the OS for you.

    (2) Mixing the Phonegap webview application that is actually run by the phone with native stuff specifically created for one operating system will most likely end in disaster. That’s not how Phonegap is supposed to work. And breaking out of PhoneGap’s “jail”, meaning it’s JavaScript framework and the webview, will probably not work anyway. You can, however, open other applications on the phone and receive values from them. The question always is: On how many operating systems is this functionality available?

    If you start asking questions like the one you just posted here… maybe you should first check that PhoneGap really is the right tool for what you want to do.

    It is not a phonegap activity. It is just a web view that uses phone gap javascript functions. Thus you will not have such problems. You can easily implement most of your UI using HTML, still using some native controls for menus, animations etc.

    Phonegap actually is a library that translates your javascript calls to instructions for the different OS like Android/iOS/Windows phone.

    Phone gap is a intermediary layer that talk with your phone & between your application. Your application resides inside a chrome less browser & using phone gap api you connect to phone features like contact, camera, io etc…

    Thus actually phonegap works.
    Phonegap really works in 3 steps:-
    1- Build App with Web standards: Developers already know how to make a web technologies using html5,css & javascript.

    2- Wrap that with Phonegap: Using this phonegap build,one can get access to native API’s

    3- Deploy to Multiple platforms: Phonegap actually uses standard based web technologies to bridges web application & mobile devices.

    Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.