used for phonegapDemo