Hi,

Could you try the following steps in addition to what you did:

1) Create  a properties file under your kensGPS directory, similar to the
one provided under data/misc/location/gps
2) Restart your emulator.

Let me know if it works for you.

Thanks,
Megha


On Mon, Mar 31, 2008 at 10:01 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]>
wrote:

>
> 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&#160;mi (about 4
> mins)<br/>Map
> data &#169;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
-~----------~----~----~----~------~----~------~--~---

Reply via email to