Hi All,
I'm working on OS/X 10.5, and having trouble inserting a kml location
file into the emulator. I must be missing something silly. I have a
kml file named kml (included at the end of this message). I locate
myself in the folder containing the file:
$ ls
kml
I have the emulator running:
$ adb devices
List of devices attached
1 emulator-tcp-5555 device 0
I use adb to push the file:
$ adb -d 0 push kml /data/misc/location/kensGPS/kml
131 KB/s (791 bytes in 0.005s)
However, I still only get the built-in location provider. Here's my
code:
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
setContentView(R.layout.main);
_mapView = new MapView(this);
unitsInfo = new ArrayList<QUnitInfo>();
locationManager = (LocationManager)
getSystemService(LOCATION_SERVICE);
List<LocationProvider> providerList =
locationManager.getProviders();
When I put an Eclipse breakpoint at that last line, providerList only
has one element, the builtin "gps" provider.
What am I missing here?
Thanks in advance,
Ken Bowen
=======================The kml file ================
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://earth.google.com/kml/2.2">
<Document>
<name>kenRoute.kml</name>
<Style id="roadStyle">
<LineStyle>
<color>7fcf0064</color>
<width>6</width>
</LineStyle>
</Style>
<Placemark>
<name>Route</name>
<visibility>0</visibility>
<description><![CDATA[Distance: 0.7 mi (about 4
mins)<br/>Map
data ©2008 Tele Atlas]]></description>
<styleUrl>#roadStyle</styleUrl>
<MultiGeometry>
<LineString>
<coordinates>
-71.13088999999999,42.39704,0 -71.1309,42.3979,0 -71.1309,42.3979,0
-71.12641000000002,42.39394,0 -71.12641000000002,42.39394,0
-71.12313,42.39584,0 -71.12239,42.39622,0 -71.12239,42.39622,0
-71.12209,42.39565,0 </coordinates>
</LineString>
</MultiGeometry>
</Placemark>
</Document>
</kml>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---