Upgraded Android plugin code to Phonegap 3.0 specifications