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)’ »

Browser power from the command line

If you require the ability to programmatically access the full power of the web browser without ever opening a web browser you should take a look at PhantomJS http://phantomjs.org/. Want even more power ? Combine it with CasperJS http://casperjs.org/. With these technologies you can run automated scripts that don’t require any desktop UI or browser …

Continue reading ‘Browser power from the command line’ »

Install Apache, MySQL, PHP on OS/X Mountain lion

Nice guide here I was unaware that Apache comes preinstalled with OS/X In a nutshell ∞ All the relevant files are at /etc/apache2 Starting, stopping, restarting the service is done with sudo apachectl start sudo apachectl stop sudo apachectl restart The default document root is at /Library/WebServer/Documents/ but you can create a different document rule …

Continue reading ‘Install Apache, MySQL, PHP on OS/X Mountain lion’ »

Quick http server

So you want to quickly test some static files from an http server ? Just cd to the folder where these files are and: Using Python 2.x: python -m SimpleHTTPServer 8000 Using Python 3.x: python -m http.server 8000 Another option, if you have PHP installed is: php -S localhost:8000

Where is my car ?

Someone already made something similar: http://software.intel.com/en-us/articles/where-is-my-car-web-app-and-phonegap-app At this point I’m looking for a good cordova.js stub file – seems others are also looking for something like that but there aren’t any to be found in the small search I’ve made – only the Ripple chrome extension which only supports Cordova 2.0 and didn’t really work …

Continue reading ‘Where is my car ?’ »

Brilliant JavaScript file upload function

I’ve seen various attempts to use JavaScript to customise the file upload button. The browsers historically do not lend themselves to making this easy to achieve due to security considerations – the idea is not to make it simple for anyone to upload a file from the PC to a remote website without the user …

Continue reading ‘Brilliant JavaScript file upload function’ »