Select to view content in your preferred language

ArcGIS Android LocationService

2302
1
08-16-2011 07:09 PM
zhenchangchen
New Contributor
Hi all,

I am trying to create a app which can determine the user location using ArcGIS.
I understand that using LocationService class can provide the UI support for displaying on the mapview.

here are part of my code.

        map = (MapView) findViewById(R.id.map);
             
        ls = new LocationService(map);
        ls.start();
       
        ls.setAccuracyCircleOn(true);
        ls.setAllowNetworkLocation(true);
        Location loc = ls.getLocation();

the app will not display anything and just give me a blank screen whenever i call ls.start() which start the location service.

Did i miss out anything? e.g. like a listener? Anyone has any idea how to get the location service to start?
0 Kudos
1 Reply
MichaelLiu1
Emerging Contributor

Which version of Eclipse were you running on?
0 Kudos