Tips and Tricks in a world of Mix

Archive for 19/04/2012

Debugging in Eclipse console.log app messages

 

For you to be able to see the console you’ve been writing in your app :

 

Window->Show View-> other –> write Logcat –>

You’ll get a console window listening to every message from your device.

image

edit filter –> Web Console

 

image

 

Now you’ll see your app messages

image

Advertisements

JavaScript execution exceeded timeout

 

The exception was thrown when I used

navigator.geolocation.watchPosition

 

Changed it to:

function getLocation() {
            navigator.geolocation.getCurrentPosition(updatePos, locationError, { enableHighAccuracy: true, timeout: 10000 });
        }

        var intervalID = window.setInterval(getLocation, 10000);

and then it worked

Tag Cloud

%d bloggers like this: