AnsweredAssumed Answered

Add point from location

Question asked by hanidraidi on Nov 18, 2014
Latest reply on Nov 20, 2014 by MGuo-esristaff

Hello all, I am new to ArcGIS-Android development environment.

I want to draw a point that shows my location, I used the following steps:

Defining a location variableز

2- Get the longitude and latitude from the location.

3- Creating a point from the longitude and latitude.

However, when I define the point that takes the longitude and latitude, I get an error (shown below in the screenshot). What might be the issue here?




Here is my code:

Location loc = null;



                double lon,lat;

                lon= loc.getLongitude();

                lat= loc.getLatitude();

                Point mlocation=new Point(lat,lon);