added method to get versionCode of mobile app to JSInterface

This commit is contained in:
Philipp Schaefer
2013-09-02 21:27:16 +02:00
parent d98f4529b4
commit fe632b5ccc
2 changed files with 17 additions and 0 deletions

View File

@ -47,6 +47,8 @@ window.plugin.userLocation.setup = function() {
window.plugin.userLocation.updateLocation = function(lat, lng) {
var latlng = new L.LatLng(lat, lng);
var foo = android.getVersionCode();
window.console.log('version code: ' + foo);
window.plugin.userLocation.marker.setLatLng(latlng);
}