ok, i found that my kml file wasnt good, so i tryed to use the kml from the thread :
http://www.anddev.org/solved_trouble_wi ... t1151.html
and now i get it to work but now i got that my lat and long is always 0 ,
the code is:
Using java Syntax Highlighting
LocationManager locationManager = (LocationManager)getSystemService(Context.LOCATION_SERVICE);
Location myLocation = locationManager.getCurrentLocation("gps");
TextView eText = (TextView) findViewById(R.id.txt);
eText.setText("Current location is: lat: " + myLocation.getLatitude() + " long: " + myLocation.getLongitude());
Parsed in 0.030 seconds, using
GeSHi 1.0.8.4
my properties file in the /data/misc/location/ is:
requiresNetwork false
requiresSatellite false
requiresCell false
hasMonetaryCost false
supportsAltitude true
supportsBearing true
supportsSpeed false
repeat true
accuracy 100
powerRequirement 1
and i put the permission in the AndroidManifest.xml file are:
Using xml Syntax Highlighting
<uses-permission android:name="android.permission.ACCESS_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_GPS" />
Parsed in 0.001 seconds, using
GeSHi 1.0.8.4
and i dont have any other file in that directory beside the "kml" file and "properties" file
and i tryed to stop the adb.exe and start the emulator again (like i saw in the thread above that solve this problem)
does someone know what is the problem ?
Thanks !