<?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: Feature Layer in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/feature-layer/m-p/702140#M4927</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You seem to using an incorrect constructor.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Please use this :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;public ArcGISFeatureLayer(String url,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ArcGISFeatureLayer.MODE mode)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Parameters:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; url - the the URL of the feature layer service.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mode - the feature layer mode.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/arcgismobile/10.0/apis/android/api/com/esri/android/map/ags/ArcGISFeatureLayer.html#ArcGISFeatureLayer%28java.lang.String,%20com.esri.android.map.ags.ArcGISFeatureLayer.MODE%29"&gt;http://help.arcgis.com/en/arcgismobile/10.0/apis/android/api/com/esri/android/map/ags/ArcGISFeatureLayer.html#ArcGISFeatureLayer%28java.lang.String,%20com.esri.android.map.ags.ArcGISFeatureLayer.MODE%29&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Jan 2012 15:50:32 GMT</pubDate>
    <dc:creator>SaurabhGupta</dc:creator>
    <dc:date>2012-01-13T15:50:32Z</dc:date>
    <item>
      <title>Feature Layer</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/feature-layer/m-p/702137#M4924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Just trying to add a featureLayer and having issues...anyone know why&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Would be cool to figure out how to add in xml and in the java page&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Main.xml&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;
&amp;lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
&amp;nbsp;&amp;nbsp;&amp;nbsp; android:orientation="vertical"
&amp;nbsp;&amp;nbsp;&amp;nbsp; android:layout_width="fill_parent"
&amp;nbsp;&amp;nbsp;&amp;nbsp; android:layout_height="fill_parent"
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;gt;
&amp;lt;!-- MapView layout and initial extent --&amp;gt;
&amp;lt;com.esri.android.map.MapView
 android:id="@+id/map"
 android:layout_width="fill_parent"
 android:layout_height="fill_parent"
 initExtent = "-1.3296373526814876E7 3930962.41823043 -1.2807176545789773E7 4201243.7502468005"&amp;gt;.

 &amp;lt;com.esri.android.map.ags.ArcGISFeatureLayer
 Url="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/HomelandSecurity/operations/FeatureServer/2"&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; mode="snapshot" /&amp;gt;

&amp;lt;/com.esri.android.map.MapView&amp;gt;

 
&amp;lt;/LinearLayout&amp;gt;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Java:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyone know how to add a feature layer to the .java page as well.....I can add DynamicMapServiceLAyers like this...but cant fidn out how to do a Feature Layer&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
public class AndroidTestingActivity extends Activity {
 
 MapView map = null;

 /** Called when the activity is first created. */
 public void onCreate(Bundle savedInstanceState) {
&amp;nbsp; super.onCreate(savedInstanceState);
&amp;nbsp; setContentView(R.layout.main);

&amp;nbsp; // Retrieve the map and initial extent from XML layout
&amp;nbsp; map = (MapView)findViewById(R.id.map);
&amp;nbsp; // Add dynamic layer to MapView
&amp;nbsp; map.addLayer(new ArcGISTiledMapServiceLayer("" +
&amp;nbsp;&amp;nbsp;&amp;nbsp; "http://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer"));
&amp;nbsp; map.addLayer(new ArcGISDynamicMapServiceLayer("" +
&amp;nbsp;&amp;nbsp;&amp;nbsp; "http://gis.logis.org/arcgis/rest/services/MG_Test/MapServer/5"));
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2012 19:20:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/feature-layer/m-p/702137#M4924</guid>
      <dc:creator>JayKappy</dc:creator>
      <dc:date>2012-01-05T19:20:10Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Layer</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/feature-layer/m-p/702138#M4925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Anyone done this before...I have the app running on my phone with some aerials from the example...but now trying to add a layer from another ESRI example...cant seem to get it to work...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying both ways above...the world imagery works but the other does not&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thgouths?&amp;nbsp; THanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried this but getting errors...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&lt;STRONG&gt;map.addLayer(new ArcGISFeatureLayer("" +
 "http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/HomelandSecurity/operations/FeatureServer/2"));&lt;/STRONG&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 05:32:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/feature-layer/m-p/702138#M4925</guid>
      <dc:creator>JayKappy</dc:creator>
      <dc:date>2021-12-12T05:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Layer</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/feature-layer/m-p/702139#M4926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Anyone know why this is not working&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jan 2012 14:22:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/feature-layer/m-p/702139#M4926</guid>
      <dc:creator>JayKappy</dc:creator>
      <dc:date>2012-01-13T14:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Layer</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/feature-layer/m-p/702140#M4927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You seem to using an incorrect constructor.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Please use this :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;public ArcGISFeatureLayer(String url,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ArcGISFeatureLayer.MODE mode)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Parameters:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; url - the the URL of the feature layer service.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mode - the feature layer mode.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/arcgismobile/10.0/apis/android/api/com/esri/android/map/ags/ArcGISFeatureLayer.html#ArcGISFeatureLayer%28java.lang.String,%20com.esri.android.map.ags.ArcGISFeatureLayer.MODE%29"&gt;http://help.arcgis.com/en/arcgismobile/10.0/apis/android/api/com/esri/android/map/ags/ArcGISFeatureLayer.html#ArcGISFeatureLayer%28java.lang.String,%20com.esri.android.map.ags.ArcGISFeatureLayer.MODE%29&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jan 2012 15:50:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/feature-layer/m-p/702140#M4927</guid>
      <dc:creator>SaurabhGupta</dc:creator>
      <dc:date>2012-01-13T15:50:32Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Layer</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/feature-layer/m-p/702141#M4928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Saurabh - Thank you that was exactly it....worked like a charm...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Now that I can add my Feature Layers....any advice on where to go to allo the user to click on a feature and edit its attributes?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Have a great weekend&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jan 2012 19:46:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/feature-layer/m-p/702141#M4928</guid>
      <dc:creator>JayKappy</dc:creator>
      <dc:date>2012-01-13T19:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Layer</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/feature-layer/m-p/702142#M4929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Good to hear that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have a look at this sample :&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/arcgismobile/10.0/apis/android/help/#/Attribute_editing/011900000014000000/"&gt;http://help.arcgis.com/en/arcgismobile/10.0/apis/android/help/#/Attribute_editing/011900000014000000/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jan 2012 22:03:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/feature-layer/m-p/702142#M4929</guid>
      <dc:creator>SaurabhGupta</dc:creator>
      <dc:date>2012-01-13T22:03:10Z</dc:date>
    </item>
  </channel>
</rss>

