<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Get GeoPoint from Press on Screen in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/get-geopoint-from-press-on-screen/m-p/608975#M4212</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Found the answer within another thread.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;public void onLongPress(MotionEvent e){&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; Point geo = (Point) GeometryEngine.project(mapView.toMapPoint(e.getX(), e.getY()), mapView.getSpatialReference(), SpatialReference.create(4326));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; double latitude = geo.getY();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; double longitude = geo.getX();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps others in the future.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Jan 2013 14:35:54 GMT</pubDate>
    <dc:creator>GSauers</dc:creator>
    <dc:date>2013-01-16T14:35:54Z</dc:date>
    <item>
      <title>Get GeoPoint from Press on Screen</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/get-geopoint-from-press-on-screen/m-p/608974#M4211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am trying to get the longitude and latitude of a point I mark on my map with a long press. Currently on a long press I get an icon to display where I press on the map using a MapPoint, but I want to get and display the Geo location of the point. Below is some of the code I use for handling a long press:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;public void onLongPress(MotionEvent e){&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Point p = mapView.toMapPoint(new Point(e.getX(), e.getY()));&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I than create a graphic and add it to the graphics layer. But using this information I need to convert the Point to a GeoPoint. Thank you in advance for any help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jan 2013 14:14:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/get-geopoint-from-press-on-screen/m-p/608974#M4211</guid>
      <dc:creator>GSauers</dc:creator>
      <dc:date>2013-01-16T14:14:51Z</dc:date>
    </item>
    <item>
      <title>Re: Get GeoPoint from Press on Screen</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/get-geopoint-from-press-on-screen/m-p/608975#M4212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Found the answer within another thread.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;public void onLongPress(MotionEvent e){&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; Point geo = (Point) GeometryEngine.project(mapView.toMapPoint(e.getX(), e.getY()), mapView.getSpatialReference(), SpatialReference.create(4326));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; double latitude = geo.getY();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; double longitude = geo.getX();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps others in the future.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jan 2013 14:35:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/get-geopoint-from-press-on-screen/m-p/608975#M4212</guid>
      <dc:creator>GSauers</dc:creator>
      <dc:date>2013-01-16T14:35:54Z</dc:date>
    </item>
  </channel>
</rss>

