compatibilty for android & phonegap 2.7