Using Phonegap plugin call ping that is coded in Java on Android