Results 1 to 4 of 4
  1.    #1  
    I'm aware this is probably a really stupid question, but... I'm building location data into my app using the startTracking method. How do I tell it to stop tracking? I've tried using startTracking with subscribe: false and guessing at stopTracking method (which I didn't think would work). Any thoughts?
  2. #2  
    I have a Verizon Pre Plus. The GPS automatically stopped tracking when I put the battery in the phone. Sorry I can’t help you.
    Palm m130 > Verizon Trēo 650 > Verizon Trēo 755p > Verizon Palm Prē Plus > TouchPad > Verizon Palm Prē 2
    ~ The Future's Just Not What it Used To Be ~
  3. #3  
    I can help when I get back to my desk.
  4. #4  
    Here is how I handle start/stop tracking:
    FirstAssistant.prototype.handleStartTrackingButtonPress = function(event){
    	this.controller.get('status').update("Start tracking ...");
    	if (!this.tracking)
    		//If we still have an old tracking handle, try to cancel it
    		if (this.trackingHandle)
    			this.trackingHandle = null;
    		this.trackingHandle = this.controller.serviceRequest('palm://com.palm.location', {
    			method : 'startTracking',
    			parameters: {
    				subscribe: true
    			onSuccess: this.gotFix.bind(this),
    			onFailure: this.error.bind(this)
    		//Set timer for updateMapImage, which will update as the new fix is returned.
    		this.controller.window.setTimeout(this.updateMapImage, this.mapinterval);
    		console.log("Attempting to stop tracking.");
    		this.controller.get('status').update("Stopped tracking ...");
    			this.trackingHandle = null;
    		catch (ex)
    			console.log("Error cancelling gps tracking!" + Object.toJSON(ex));

Tags for this Thread

Posting Permissions