i am new to android development (15 days old), and im trying to develop an application with live gps live position. I am going through developers.android tutorials and so far so good but i have been experiencing a dead end two days now
i have just copied and pasted the official example code from http://developer.android.com/guide/topics/location/strategies.html#Updates which is: // Acquire a reference to the system Location ManagerLocationManager locationManager = (LocationManager) this.getSystemService(Context.LOCATION_SERVICE); // Define a listener that responds to location updatesLocationListener locationListener = new LocationListener() { public void onLocationChanged(Location location) { // Called when a new location is found by the network location provider. makeUseOfNewLocation(location); } public void onStatusChanged(String provider, int status, Bundle extras) {} public void onProviderEnabled(String provider) {} public void onProviderDisabled(String provider) {} }; // Register the listener with the Location Manager to receive location updates locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0, 0, locationListener); and i get this message for the last line of code: Syntax error on tokens, ConstructorHeaderName expected instead Syntax error on token "(", < expected i cant use the locationManager object properly either, i mean i cannot even use its methods... also i have imported the location package (import android.location.*;) can you help me on that?Has anyone experienced the same problem? please let me know if you need more information, and thank you in advance. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

