Workaround to prevent phonegap timeout on Android