How I wasted an entire day on wrong MIME type

Problem description: External CSS file required by HTML was being downloaded from the server but not being applied to the Web page To add to the frustration, if the Web page (which, as mentioned, was rendered without the CSS) was then saved locally from the browser and then that file opened in the browser, it …

Continue reading ‘How I wasted an entire day on wrong MIME type’ »

Taking ScreenShots of your Mobile App

Android ∞ On Android, you first need to define an emulator if you don’t have one. You do this by launching Eclipse ADT > Window > Android Virtual Device Manager. One you have defined your emulator, you can check your Cordova app on it by: cordova build android followed by cordova emulate android It takes …

Continue reading ‘Taking ScreenShots of your Mobile App’ »

Some Cordova 3.3 gotchas (there are more)

Using the inappbrowser plugin: what should be in your config.xml is: <feature name="InAppBrowser"> <param name="android-package" value="org.apache.cordova.inappbrowser.InAppBrowser"/> </feature> and not <feature name="InAppBrowser"> <param name="android-package" value="org.apache.cordova.InAppBrowser"/> </feature> Also, if you want to use the back button handler on Android, make sure you have the following in your config.xml <feature name="App"> <param name="android-package" value="org.apache.cordova.App" /> </feature> Another issue …

Continue reading ‘Some Cordova 3.3 gotchas (there are more)’ »

Playing sound with Phonegap/Cordova

Let me save you a lot of time: The Cordova Media plugin (org.apache.cordova.media) does not work well on Android and Windows Phone 8, at least in the version released with Cordova 3.1 (and I don’t see any indication of a change in the latest release either). On Android I assume media resources are not released …

Continue reading ‘Playing sound with Phonegap/Cordova’ »