• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Rob Spoor
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Holloway
  • Piet Souris
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Frits Walraven
  • Himai Minh

GPS on emulator

 
Ranch Hand
Posts: 101
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I test example from github android/location-samples/LocationAddress. On physical smartphone it works great but on emulator not. I test both emulator map or telnet 5554. Do you have similar problem on this example?
 
Ranch Hand
Posts: 39
Android Java Linux
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,
I haven't any app to test for but found out the following procedure how to set the location.

First I start an emulator. My emulator version is 30.7.5-7491168. Seen from "extended controls->about". Extended controls can be reached from emulator main window clicking on three dots.

Through "extended controls" it seams that one is able to set the location or some route too. I did not explored that.

In command line I started 'adb' tool.

Then one can get a list of devices:


From output above connect to the device via telnet:

The friendly client already told the location of the token in $HOME directory (I am using Linux, but this should work in similar manner on Windows or mac too):

Only after authentication  'help' shows the full list of available commands. Help about location-related functions provides 'help geo', or 'help geo fix'.




Last not least set the location to some place on globe:
 
I think he's gonna try to grab my monkey. Do we have a monkey outfit for this tiny ad?
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic