Tag Archives: Hybrid

Embedding a Cordova WebView in a Native Android app

Sept 2013 – Updated to use cordova 2.9 – see github repo

A few months ago I wrote a tutorial on Hybrid apps and accessing native functions from an Android WebView. I made a comment that while Apache’s Cordova can do this fine, you wouldn’t use Cordova from within an app. Then I discovered you could embed a Cordova WebView within a native app. If you’re not familiar with Cordova, this means you can create an Activity within your native app which uses HTML5 and JavaScript to create the UI and access native functions and features via the Cordova API.

Continue reading