http://appsnuri.tistory.com/87

'PhoneGap' 카테고리의 다른 글

native method call  (0) 2012.02.01

-- 호출 
LocationService.sendLocationInBackground(    

["HelloWorld"] ,

function(result) {

alert("Success : \r\n" + result);      

},

function(error) {

alert("Error : \r\n" + error);      

}

);

--phonegap.js

var LocationService = {

    sendLocationInBackground : function(types, success, fail) {

        return PhoneGap.exec(success, fail, "com.phonegap.locationService", "startLocationService", types);

    }

}; 

 

'PhoneGap' 카테고리의 다른 글

프로젝트 생성  (0) 2017.02.22

+ Recent posts