// Use this for initialization void Start() { sharePlugin = SharePlugin.GetInstance(); sharePlugin.SetDebug(0); cameraPlugin = CameraPlugin.GetInstance(); cameraPlugin.SetDebug(0); cameraPlugin.Init(folderName); //imagePickerPlugin = ImagePickerPlugin.GetInstance(); dispatcher = Dispatcher.GetInstance(); gpsPlugin = GPSPlugin.GetInstance(); gpsPlugin.SetDebug(0); long updateInterval = 200; long minimumMeterChangeForUpdate = 0; gpsPlugin.Init(updateInterval, minimumMeterChangeForUpdate); AddGPSEventListeners(); gpsPlugin.StartGPS(); GetLatitude(); GetLongitude(); /* * imagePickerPlugin.SetDebug(0); * imagePickerPlugin.Init(); * * imagePickerPlugin.OnGetImagesComplete += onGetImagesComplete; * imagePickerPlugin.OnGetImageCancel += onGetImagesCancel; * imagePickerPlugin.OnGetImageFail += onGetImageFail; * * imagePickerPlugin.GetImages();*/ screenShotId = PlayerPrefs.GetInt("SitePicId"); }
// Use this for initialization void Start() { gpsPlugin = GPSPlugin.GetInstance(); gpsPlugin.SetDebug(0); //long updateInterval = 1000 * 60 * 1; // 1 minute //long updateInterval = 1000 * 5; // 5 seconds long updateInterval = 200; // 200 millsecs //long minimumMeterChangeForUpdate = 10 //10 meters; long minimumMeterChangeForUpdate = 0; //0 meters reason it's a hack because LocationManager in androind is buggy and unreliable gpsPlugin.Init(updateInterval, minimumMeterChangeForUpdate); AddGPSEventListeners(); // start the gps gpsPlugin.StartGPS(); }
// Use this for initialization void Start() { gpsPlugin = GPSPlugin.GetInstance(); gpsPlugin.SetDebug(0); //long updateInterval = 1000 * 60 * 1; // 1 minute //long updateInterval = 1000 * 5; // 5 seconds long updateInterval = 200; // 200 millsecs //long minimumMeterChangeForUpdate = 10 //10 meters; long minimumMeterChangeForUpdate = 0; //0 meters reason it's a hack because LocationManager in androind is buggy and unreliable gpsPlugin.Init(updateInterval, minimumMeterChangeForUpdate); gpsPlugin.SetLocationChangeListener( OnLocationChange , OnEnableGPS , OnGetLocationComplete , OnGetLocationFail , onLocationChangeInformation , OnGetLocationCompleteInformation ); }
// Use this for initialization void Start() { gpsPlugin = GPSPlugin.GetInstance(); gpsPlugin.SetDebug(0); //long updateInterval = 1000 * 60 * 1; // 1 minute //long updateInterval = 1000 * 5; // 5 seconds long updateInterval = 200; // 200 millsecs //long minimumMeterChangeForUpdate = 10 //10 meters; long minimumMeterChangeForUpdate = 0; //0 meters reason it's a hack because LocationManager in androind is buggy and unreliable gpsPlugin.Init(updateInterval,minimumMeterChangeForUpdate); gpsPlugin.SetLocationChangeListener( OnLocationChange ,OnEnableGPS ,OnGetLocationComplete ,OnGetLocationFail ,onLocationChangeInformation ,OnGetLocationCompleteInformation ); }