sample development and test for phone gap