Using java Syntax Highlighting
- private void initiateView() {
- // Get our location
- this.myLocation = myLocationManager.getCurrentLocation("gps");
- // Our GPS-Latitude and Longitude Coords
- Double lat = TrackerActivity.this.myLocation.getLatitude() * 1E6;
- Double lng = TrackerActivity.this.myLocation.getLongitude() * 1E6;
- Point point = new Point(lat.intValue(), lng.intValue());
- myMapController.centerMapTo(point, false);
- }
Parsed in 0.031 seconds, using GeSHi 1.0.8.4
simply said.....it doesn' t work at all...i get a nullPointerException...
can' t say why, the code seems correct to me (and i can' t find a hint in the awfull android documentation), at least i get no compiling errors.
Maybe someone can help me out or give me a hint.






