[android-beginners] Re: Creating a mock location provider
Hey Sipo - thanks for the tip-off on DDMS... awesome! :-) On Mar 27, 1:22 pm, "sipo rahimos" <[EMAIL PROTECTED]> wrote: > Hi Mendroid, > > You can use the DDMS perspective in eclipse also, it is a GUI that made me > very happy when i saw it :) (there is a secret in it) > > Regards > > 2008/3/25, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > > > > > Thanks Megha, I've been only working with the ADT Eclipse > > pluginclearly I need to extend to adb. > > > --Ken > > > On Mar 25, 2:55 pm, "Megha Joshi" <[EMAIL PROTECTED]> wrote: > > > Hi Ken, > > > > Use adb push commands to put files on emulator's filesystem: > > > > adb push > > filesystem> > > > >http://code.google.com/android/reference/adb.html#copyfiles > > > > Thanks, > > > Megha > > > > On Tue, Mar 25, 2008 at 9:01 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> > > > > wrote: > > > > > Ok, after some headbanging, I realized that I don't know how to > > > > install /data/misc/location/myGPS/kml > > > > into the emulator's file system. Can anyone either tell me how to, or > > > > point me a documentation that I missed? > > > > > Thanks, > > > > Ken > > > > > On Mar 25, 1:14 am, Ram <[EMAIL PROTECTED]> wrote: > > > > > I think you'll be able to get it to work with the following steps > > > > > > 1. Copy a properties file into /data/misc/location/myGPS. (You can > > > > > look at the properties file in /data/misc/location/gps for an > > example) > > > > > > 2. rename the kengps.kml file as kml (with no extension) > > > > > > 3. restart the emulator > > > > > > On Mar 24, 6:48 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > > > > > Hi, > > > > > > > On the Location-based Service APIs doc page, under Creating mock > > > > > > LocationProviders, it's stated that: > > > > > > > One way to generate a suitable KML file is to get directions in > > Google > > > > > > Earth. Right-click the "Route" entry that appears at the end of > > the > > > > > > sequence of turns and select "Save as..." with "Save as type:" set > > to > > > > > > "Kml *(*.kml)". > > > > > > > I did that, and called the file "kengps.kml". (I've included the > > file > > > > > > at the end of this message). > > > > > > > I put the file in the folder (in my Android project): > > > > > > > /data/misc/location/myGPS > > > > > > > and restarted my project. However, when I execute > > > > > > > LocationManager locationManager = > > > > > > (LocationManager) getSystemService(LOCATION_SERVICE); > > > > > > List providerList = locationManager.getProviders > > (); > > > > > > > the list providerList still only contains one element, the > > built-in > > > > > > "gps" provider. > > > > > > > What am I missing here? > > > > > > Thanks in advance, > > > > > > Ken Bowen > > > > > > > == The kengps.kml file === > > > > > > > > > > > > http://earth.google.com/kml/2.2";> > > > > > > > > > > > > kenRoute.kml > > > > > > > > > > > >> > > > > > > > > > > > > > > > > > > > > > > > Route > > > > > > 0 > > > > > > > > > > > > #roadStyle > > > > > > > > > > > > > > > > > > > > > > > > -71.130889,42.39704,0 -71.1309,42.3979,0 -71.1309,42.3979 > > ,0 > > > > > > -71.126412,42.39394,0 -71.126412,42.39394,0 > > > > > > -71.12313,42.39584,0 -71.12239,42.39622,0 -71.12239,42.39622,0 > > > > > > -71.12209,42.39565,0 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com 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 -~--~~~~--~~--~--~---7fcf0064 > > > > > >6 > > > > > >
[android-beginners] Re: Creating a mock location provider
Hi Mendroid, You can use the DDMS perspective in eclipse also, it is a GUI that made me very happy when i saw it :) (there is a secret in it) Regards 2008/3/25, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > > > Thanks Megha, I've been only working with the ADT Eclipse > pluginclearly I need to extend to adb. > > --Ken > > > On Mar 25, 2:55 pm, "Megha Joshi" <[EMAIL PROTECTED]> wrote: > > Hi Ken, > > > > Use adb push commands to put files on emulator's filesystem: > > > > adb push > filesystem> > > > > http://code.google.com/android/reference/adb.html#copyfiles > > > > Thanks, > > Megha > > > On Tue, Mar 25, 2008 at 9:01 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> > > > wrote: > > > > > > > > > Ok, after some headbanging, I realized that I don't know how to > > > install /data/misc/location/myGPS/kml > > > into the emulator's file system. Can anyone either tell me how to, or > > > point me a documentation that I missed? > > > > > Thanks, > > > Ken > > > > > On Mar 25, 1:14 am, Ram <[EMAIL PROTECTED]> wrote: > > > > I think you'll be able to get it to work with the following steps > > > > > > 1. Copy a properties file into /data/misc/location/myGPS. (You can > > > > look at the properties file in /data/misc/location/gps for an > example) > > > > > > 2. rename the kengps.kml file as kml (with no extension) > > > > > > 3. restart the emulator > > > > > > On Mar 24, 6:48 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > > > > > Hi, > > > > > > > On the Location-based Service APIs doc page, under Creating mock > > > > > LocationProviders, it's stated that: > > > > > > > One way to generate a suitable KML file is to get directions in > Google > > > > > Earth. Right-click the "Route" entry that appears at the end of > the > > > > > sequence of turns and select "Save as..." with "Save as type:" set > to > > > > > "Kml *(*.kml)". > > > > > > > I did that, and called the file "kengps.kml". (I've included the > file > > > > > at the end of this message). > > > > > > > I put the file in the folder (in my Android project): > > > > > > > /data/misc/location/myGPS > > > > > > > and restarted my project. However, when I execute > > > > > > > LocationManager locationManager = > > > > > (LocationManager) getSystemService(LOCATION_SERVICE); > > > > > List providerList = locationManager.getProviders > (); > > > > > > > the list providerList still only contains one element, the > built-in > > > > > "gps" provider. > > > > > > > What am I missing here? > > > > > Thanks in advance, > > > > > Ken Bowen > > > > > > > == The kengps.kml file === > > > > > > > > > > http://earth.google.com/kml/2.2";> > > > > > > > > > > kenRoute.kml > > > > > > > > > >> > > > > > > > > > > > > > > > > > > > Route > > > > > 0 > > > > > > > > > > #roadStyle > > > > > > > > > > > > > > > > > > > > -71.130889,42.39704,0 -71.1309,42.3979,0 -71.1309,42.3979 > ,0 > > > > > -71.126412,42.39394,0 -71.126412,42.39394,0 > > > > > -71.12313,42.39584,0 -71.12239,42.39622,0 -71.12239,42.39622,0 > > > > > -71.12209,42.39565,0 > > > > > > > > > > > > > > > > > > > > > > > > > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com 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 -~--~~~~--~~--~--~---7fcf0064 > > > > >6 > > > > >
[android-beginners] Re: Creating a mock location provider
Thanks Megha, I've been only working with the ADT Eclipse pluginclearly I need to extend to adb. --Ken On Mar 25, 2:55 pm, "Megha Joshi" <[EMAIL PROTECTED]> wrote: > Hi Ken, > > Use adb push commands to put files on emulator's filesystem: > > adb push filesystem> > > http://code.google.com/android/reference/adb.html#copyfiles > > Thanks, > Megha > On Tue, Mar 25, 2008 at 9:01 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> > wrote: > > > > > Ok, after some headbanging, I realized that I don't know how to > > install /data/misc/location/myGPS/kml > > into the emulator's file system. Can anyone either tell me how to, or > > point me a documentation that I missed? > > > Thanks, > > Ken > > > On Mar 25, 1:14 am, Ram <[EMAIL PROTECTED]> wrote: > > > I think you'll be able to get it to work with the following steps > > > > 1. Copy a properties file into /data/misc/location/myGPS. (You can > > > look at the properties file in /data/misc/location/gps for an example) > > > > 2. rename the kengps.kml file as kml (with no extension) > > > > 3. restart the emulator > > > > On Mar 24, 6:48 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > > > Hi, > > > > > On the Location-based Service APIs doc page, under Creating mock > > > > LocationProviders, it's stated that: > > > > > One way to generate a suitable KML file is to get directions in Google > > > > Earth. Right-click the "Route" entry that appears at the end of the > > > > sequence of turns and select "Save as..." with "Save as type:" set to > > > > "Kml *(*.kml)". > > > > > I did that, and called the file "kengps.kml". (I've included the file > > > > at the end of this message). > > > > > I put the file in the folder (in my Android project): > > > > > /data/misc/location/myGPS > > > > > and restarted my project. However, when I execute > > > > > LocationManager locationManager = > > > > (LocationManager) getSystemService(LOCATION_SERVICE); > > > > List providerList = locationManager.getProviders(); > > > > > the list providerList still only contains one element, the built-in > > > > "gps" provider. > > > > > What am I missing here? > > > > Thanks in advance, > > > > Ken Bowen > > > > > == The kengps.kml file === > > > > > > > > http://earth.google.com/kml/2.2";> > > > > > > > > kenRoute.kml > > > > > > > >> > > > > > > > > > > > > > > > Route > > > > 0 > > > > > > > > #roadStyle > > > > > > > > > > > > > > > > -71.130889,42.39704,0 -71.1309,42.3979,0 -71.1309,42.3979,0 > > > > -71.126412,42.39394,0 -71.126412,42.39394,0 > > > > -71.12313,42.39584,0 -71.12239,42.39622,0 -71.12239,42.39622,0 > > > > -71.12209,42.39565,0 > > > > > > > > > > > > > > > > > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com 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 -~--~~~~--~~--~--~---7fcf0064 > > > >6 > > > >
[android-beginners] Re: Creating a mock location provider
Hi Ken, Use adb push commands to put files on emulator's filesystem: adb push http://code.google.com/android/reference/adb.html#copyfiles Thanks, Megha On Tue, Mar 25, 2008 at 9:01 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Ok, after some headbanging, I realized that I don't know how to > install /data/misc/location/myGPS/kml > into the emulator's file system. Can anyone either tell me how to, or > point me a documentation that I missed? > > Thanks, > Ken > > On Mar 25, 1:14 am, Ram <[EMAIL PROTECTED]> wrote: > > I think you'll be able to get it to work with the following steps > > > > 1. Copy a properties file into /data/misc/location/myGPS. (You can > > look at the properties file in /data/misc/location/gps for an example) > > > > 2. rename the kengps.kml file as kml (with no extension) > > > > 3. restart the emulator > > > > On Mar 24, 6:48 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > > > Hi, > > > > > On the Location-based Service APIs doc page, under Creating mock > > > LocationProviders, it's stated that: > > > > > One way to generate a suitable KML file is to get directions in Google > > > Earth. Right-click the "Route" entry that appears at the end of the > > > sequence of turns and select "Save as..." with "Save as type:" set to > > > "Kml *(*.kml)". > > > > > I did that, and called the file "kengps.kml". (I've included the file > > > at the end of this message). > > > > > I put the file in the folder (in my Android project): > > > > > /data/misc/location/myGPS > > > > > and restarted my project. However, when I execute > > > > > LocationManager locationManager = > > > (LocationManager) getSystemService(LOCATION_SERVICE); > > > List providerList = locationManager.getProviders(); > > > > > the list providerList still only contains one element, the built-in > > > "gps" provider. > > > > > What am I missing here? > > > Thanks in advance, > > > Ken Bowen > > > > > == The kengps.kml file === > > > > > > http://earth.google.com/kml/2.2";> > > > > > > kenRoute.kml > > > > > >> > > > > > > > > > > > Route > > > 0 > > > > > > #roadStyle > > > > > > > > > > > > -71.130889,42.39704,0 -71.1309,42.3979,0 -71.1309,42.3979,0 > > > -71.126412,42.39394,0 -71.126412,42.39394,0 > > > -71.12313,42.39584,0 -71.12239,42.39622,0 -71.12239,42.39622,0 > > > -71.12209,42.39565,0 > > > > > > > > > > > > > > > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com 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 -~--~~~~--~~--~--~---7fcf0064 > > >6 > > >
[android-beginners] Re: Creating a mock location provider
Ok, after some headbanging, I realized that I don't know how to install /data/misc/location/myGPS/kml into the emulator's file system. Can anyone either tell me how to, or point me a documentation that I missed? Thanks, Ken On Mar 25, 1:14 am, Ram <[EMAIL PROTECTED]> wrote: > I think you'll be able to get it to work with the following steps > > 1. Copy a properties file into /data/misc/location/myGPS. (You can > look at the properties file in /data/misc/location/gps for an example) > > 2. rename the kengps.kml file as kml (with no extension) > > 3. restart the emulator > > On Mar 24, 6:48 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > Hi, > > > On the Location-based Service APIs doc page, under Creating mock > > LocationProviders, it's stated that: > > > One way to generate a suitable KML file is to get directions in Google > > Earth. Right-click the "Route" entry that appears at the end of the > > sequence of turns and select "Save as..." with "Save as type:" set to > > "Kml *(*.kml)". > > > I did that, and called the file "kengps.kml". (I've included the file > > at the end of this message). > > > I put the file in the folder (in my Android project): > > > /data/misc/location/myGPS > > > and restarted my project. However, when I execute > > > LocationManager locationManager = > > (LocationManager) getSystemService(LOCATION_SERVICE); > > List providerList = locationManager.getProviders(); > > > the list providerList still only contains one element, the built-in > > "gps" provider. > > > What am I missing here? > > Thanks in advance, > > Ken Bowen > > > == The kengps.kml file === > > > > http://earth.google.com/kml/2.2";> > > > > kenRoute.kml > > > >> > > > > > > > Route > > 0 > > > > #roadStyle > > > > > > > > -71.130889,42.39704,0 -71.1309,42.3979,0 -71.1309,42.3979,0 > > -71.126412,42.39394,0 -71.126412,42.39394,0 > > -71.12313,42.39584,0 -71.12239,42.39622,0 -71.12239,42.39622,0 > > -71.12209,42.39565,0 > > > > > > > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com 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 -~--~~~~--~~--~--~---7fcf0064 > >6 > >
[android-beginners] Re: Creating a mock location provider
I think you'll be able to get it to work with the following steps 1. Copy a properties file into /data/misc/location/myGPS. (You can look at the properties file in /data/misc/location/gps for an example) 2. rename the kengps.kml file as kml (with no extension) 3. restart the emulator On Mar 24, 6:48 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi, > > On the Location-based Service APIs doc page, under Creating mock > LocationProviders, it's stated that: > > One way to generate a suitable KML file is to get directions in Google > Earth. Right-click the "Route" entry that appears at the end of the > sequence of turns and select "Save as..." with "Save as type:" set to > "Kml *(*.kml)". > > I did that, and called the file "kengps.kml". (I've included the file > at the end of this message). > > I put the file in the folder (in my Android project): > > /data/misc/location/myGPS > > and restarted my project. However, when I execute > > LocationManager locationManager = > (LocationManager) getSystemService(LOCATION_SERVICE); > List providerList = locationManager.getProviders(); > > the list providerList still only contains one element, the built-in > "gps" provider. > > What am I missing here? > Thanks in advance, > Ken Bowen > > == The kengps.kml file === > > http://earth.google.com/kml/2.2";> > > kenRoute.kml > >> > > > Route > 0 > > #roadStyle > > > > -71.130889,42.39704,0 -71.1309,42.3979,0 -71.1309,42.3979,0 > -71.126412,42.39394,0 -71.126412,42.39394,0 > -71.12313,42.39584,0 -71.12239,42.39622,0 -71.12239,42.39622,0 > -71.12209,42.39565,0 > > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com 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 -~--~~~~--~~--~--~---7fcf0064 >6 >
[android-beginners] Re: Creating a mock location provider
You need to place the kml file in that folder and name it "kml". You can't name it "foo.kml", just "kml". -- Zach Hobbs HelloAndroid.com Android OS news, tutorials, downloads On Monday 24 March 2008 21:48:29 [EMAIL PROTECTED] wrote: > Hi, > > On the Location-based Service APIs doc page, under Creating mock > LocationProviders, it's stated that: > > One way to generate a suitable KML file is to get directions in Google > Earth. Right-click the "Route" entry that appears at the end of the > sequence of turns and select "Save as..." with "Save as type:" set to > "Kml *(*.kml)". > > I did that, and called the file "kengps.kml". (I've included the file > at the end of this message). > > I put the file in the folder (in my Android project): > > /data/misc/location/myGPS > > and restarted my project. However, when I execute > > LocationManager locationManager = > (LocationManager) getSystemService(LOCATION_SERVICE); > List providerList = locationManager.getProviders(); > > the list providerList still only contains one element, the built-in > "gps" provider. > > What am I missing here? > Thanks in advance, > Ken Bowen > > == The kengps.kml file === > > http://earth.google.com/kml/2.2";> > > kenRoute.kml > >> > > > Route > 0 > > #roadStyle > > > > -71.130889,42.39704,0 -71.1309,42.3979,0 -71.1309,42.3979,0 > -71.126412,42.39394,0 -71.126412,42.39394,0 > -71.12313,42.39584,0 -71.12239,42.39622,0 -71.12239,42.39622,0 > -71.12209,42.39565,0 > > > > > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com 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 -~--~~~~--~~--~--~---7fcf0064 >6 >