PhoneGap
19 posts · All topics
Generate the Cordova JAR File from a PhoneGap Project Using Ant
Build cordova.jar from the CordovaLib project with Ant, so you can use Cordova as a library in Android Studio.
Update the Android Main UI from a WebView — PhoneGap Plugin
A simple PhoneGap plugin that lets JavaScript in a WebView update the native Android UI, such as the action bar.
Get Recent Callers — Android PhoneGap Plugin
A simple PhoneGap plugin that fetches recent callers from an Android phone, with setup steps.
PhoneGap Android — Contact Image Problem with Android 4.4
Android 4.4 KitKat won't display contact photo URIs in a WebView. A workaround that reads the image natively and returns it as Base64.
Methods Called from a WebView Need the @JavascriptInterface Annotation — Android Development
Since Android 4.2, native methods called from JavaScript in a WebView must be annotated with @JavascriptInterface.
iPhone PhoneGap Plugin for In-App Auto-Renewable Subscriptions
Set up auto-renewable in-app subscriptions in iTunes Connect and add them to a PhoneGap iPhone app with StoreKit, step by step.
Get the Network Connection Name — Android App Development
Retrieve the name of the current network connection in Android, and call it from JavaScript in a PhoneGap app.
PhoneGap Contact View Plugin for iPhone — Open the Native Contact View in a Cordova App
A PhoneGap plugin for iPhone that opens the native contact picker from JavaScript, with installation steps.
PhoneGap Share Plugin for iPhone — Share to Facebook, Twitter, Email and SMS
An iPhone version of my PhoneGap share plugin for Twitter, email and SMS, with native Facebook sharing added later.
Social Share Plugin for Android Cordova 2.2.0 — Email, SMS, Facebook and Twitter
An updated version of my Android social share plugin that works with Cordova 2.2.0, with the new configuration steps.
Get Contacts with Images from an Android Phone and Sort Them by Name — Android PhoneGap App
Fetch contacts with their photos in an Android PhoneGap app, group them by first letter and sort them by name.
Using the Native Media Player with a Progress Bar — Android PhoneGap App
Play MP3 files with a progress bar in an Android PhoneGap app using the PhoneGap Media API.
Steps to Convert a Web App into an Android PhoneGap App
The settings you need to turn a mobile web app into an Android PhoneGap app: whitelist, loading the URL, splash screen and error handling.
Handle the Back Button and Close the App — Android PhoneGap App
Close an Android PhoneGap app when the back button is pressed on the home page, and go back in history everywhere else.
Android PhoneGap Plugin for Social Sharing — Email, Facebook, Twitter and SMS
A PhoneGap plugin that opens Android's native share, email and SMS screens with predefined text, with setup steps.
Prevent Landscape Orientation in Android Apps
One line of code to lock an Android activity to portrait orientation.
How to Handle the URL Not Reached Error in Android PhoneGap
Stop an Android PhoneGap app from closing when the server or network is unavailable by handling onReceivedError and showing an offline page.
Open Links Inside the WebView — Android PhoneGap Configuration
Links in my Android PhoneGap app kept opening in the browser instead of the WebView. The fix is one line in cordova.xml.
Clear the Application Cache in an Android PhoneGap App
Stop stale JavaScript files in an Android PhoneGap WebView by clearing the cache before loading your URL.