Here's the code im talkin about. I probably got something wrong, but i just can't find what it is.
Everytime i start my app i get a nullPointer Exception
Using java Syntax Highlighting
- this.myLocationManager = (LocationManager)getSystemService(Context.LOCATION_SERVICE);
- this.myLocation = this.myLocationManager.getCurrentLocation("gps");
- Double lat = TrackerActivity.this.myLocation.getLatitude() * 1E6;
- Double lng = TrackerActivity.this.myLocation.getLongitude() * 1E6;
- MapPoint mp = new MapPoint(lat.intValue(), lng.intValue());
Parsed in 0.032 seconds, using GeSHi 1.0.8.4
maybe someone can help me out on this...





