<?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: Create a map, layer, or geodatabase from selected features?--ArcGIS Runtime SDK for Android in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/create-a-map-layer-or-geodatabase-from-selected/m-p/716584#M5023</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cora,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm afraid there's currently no way in the Runtime SDK to create new&amp;nbsp;FeatureLayers from scratch. If you're displaying the same layer again, and want to reselect the same features as were selected last time, then you could try persisting the ObjectIDs of the features returned from `FeatureLayer.getSelectedFeaturesAsync`, and then re-select them when the app restarts with `FeatureLayer.selectFeaturesAsync` (you'd have to build a query containing all the IDs).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps some,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shelly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Feb 2018 09:46:58 GMT</pubDate>
    <dc:creator>ShellyGill1</dc:creator>
    <dc:date>2018-02-27T09:46:58Z</dc:date>
    <item>
      <title>Create a map, layer, or geodatabase from selected features?--ArcGIS Runtime SDK for Android</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/create-a-map-layer-or-geodatabase-from-selected/m-p/716583#M5022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a way to&amp;nbsp;save all of the&amp;nbsp;features that are selected from&amp;nbsp;a feature layer in selection mode&amp;nbsp;to a new feature layer, geodatabase, or map to be displayed in the app?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Feb 2018 00:22:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/create-a-map-layer-or-geodatabase-from-selected/m-p/716583#M5022</guid>
      <dc:creator>CoraColeman</dc:creator>
      <dc:date>2018-02-23T00:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: Create a map, layer, or geodatabase from selected features?--ArcGIS Runtime SDK for Android</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/create-a-map-layer-or-geodatabase-from-selected/m-p/716584#M5023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cora,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm afraid there's currently no way in the Runtime SDK to create new&amp;nbsp;FeatureLayers from scratch. If you're displaying the same layer again, and want to reselect the same features as were selected last time, then you could try persisting the ObjectIDs of the features returned from `FeatureLayer.getSelectedFeaturesAsync`, and then re-select them when the app restarts with `FeatureLayer.selectFeaturesAsync` (you'd have to build a query containing all the IDs).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps some,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shelly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2018 09:46:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/create-a-map-layer-or-geodatabase-from-selected/m-p/716584#M5023</guid>
      <dc:creator>ShellyGill1</dc:creator>
      <dc:date>2018-02-27T09:46:58Z</dc:date>
    </item>
    <item>
      <title>Re: Create a map, layer, or geodatabase from selected features?--ArcGIS Runtime SDK for Android</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/create-a-map-layer-or-geodatabase-from-selected/m-p/716585#M5024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay, thank you! Do you think I could do something similar by implementing the &lt;A href="https://github.com/Esri/arcgis-runtime-samples-android/blob/master/java/feature-layer-definition-expression/src/main/java/com/esri/arcgisruntime/samples/featurelayerdefinitionexpression/MainActivity.java"&gt;feature layer definition expression&lt;/A&gt; sample code? If I&amp;nbsp;&lt;A href="https://developers.arcgis.com/android/latest/guide/edit-features.htm#ESRI_SECTION1_C72E0726ECDB4D199F117F527EB051FF"&gt;update the selected features&lt;/A&gt; on a field named "temp_selected" with the string attribute "selected" and then&amp;nbsp;set that field and string to be the expression for the feature_layer like: feature_layer.setDefinitionExpression("temp_selected = 'selected'"). Could this work for displaying only those features that were selected on the map&amp;nbsp;using the button on the bottom toolbar that is set up in the sample code?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2018 04:51:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/create-a-map-layer-or-geodatabase-from-selected/m-p/716585#M5024</guid>
      <dc:creator>CoraColeman</dc:creator>
      <dc:date>2018-03-08T04:51:01Z</dc:date>
    </item>
  </channel>
</rss>

