<?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 IS there any Sample app or doc to perform searching on mmpk file in Android App? in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/is-there-any-sample-app-or-doc-to-perform/m-p/572491#M3892</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;I want to perform searching in my Native Android app on mmpk file which i load locally from device external storage ,so please let me know if there is any doc or sample exist regarding this&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Feb 2017 06:02:26 GMT</pubDate>
    <dc:creator>KamalAgarwal</dc:creator>
    <dc:date>2017-02-15T06:02:26Z</dc:date>
    <item>
      <title>IS there any Sample app or doc to perform searching on mmpk file in Android App?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/is-there-any-sample-app-or-doc-to-perform/m-p/572491#M3892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;I want to perform searching in my Native Android app on mmpk file which i load locally from device external storage ,so please let me know if there is any doc or sample exist regarding this&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2017 06:02:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/is-there-any-sample-app-or-doc-to-perform/m-p/572491#M3892</guid>
      <dc:creator>KamalAgarwal</dc:creator>
      <dc:date>2017-02-15T06:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: IS there any Sample app or doc to perform searching on mmpk file in Android App?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/is-there-any-sample-app-or-doc-to-perform/m-p/572492#M3893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi - MMPK files can contain operational layers that are made of features. So if&amp;nbsp;you've loaded your MMPK and one of the ArcGISMaps it contains, then you should be able to do your search. If there's a specific layer you want to search on, using a specific query such as 'attribute=someValue', then first get the feature layer you want to search on in the OperationalLayers collection of the ArcGISMap. Then get the FeatureTable from the FeatureLayer, and then call queryFeaturesAsync, as shown in this sample -&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/android/latest/sample-code/feature-layer-query.htm" title="https://developers.arcgis.com/android/latest/sample-code/feature-layer-query.htm"&gt;Feature layer query—ArcGIS Runtime SDK for Android | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively, if you want to search by allowing a user to tap on a MapView&amp;nbsp;at a location and search for features in the ArcGISMap at that location, which might be in any layer in the map, you can use the identify methods. I don't think we yet have a sample for that, but it's described with a number of code snippets in the Guide topic Identify Features - for example&amp;nbsp;you can identify against all features in all of the current feature layers in the map as shown in this section -&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/android/latest/guide/identify-features.htm#ESRI_SECTION1_75682A92F6FA40779E28B68A151F9092" title="https://developers.arcgis.com/android/latest/guide/identify-features.htm#ESRI_SECTION1_75682A92F6FA40779E28B68A151F9092"&gt;Identify features—ArcGIS Runtime SDK for Android | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Shelly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2017 11:35:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/is-there-any-sample-app-or-doc-to-perform/m-p/572492#M3893</guid>
      <dc:creator>ShellyGill1</dc:creator>
      <dc:date>2017-02-20T11:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: IS there any Sample app or doc to perform searching on mmpk file in Android App?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/is-there-any-sample-app-or-doc-to-perform/m-p/572493#M3894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shelly,&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV data-container-id="2134" data-container-type="14" data-customize-message-seen="false" data-jive-view="apps/socialgroup/customize"&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV data-widget-id="34114"&gt;&lt;DIV&gt;&lt;DIV style="overflow: visible;"&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV data-containerid="2134" data-containertype="14" data-extendedauthors="false" data-extvisible="false" data-objectid="666492" data-objecttype="2"&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV data-current="" data-extendedauthors="false" data-extvisible="false" data-objectid="729842" data-objecttype="2" data-thread-id="190304"&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;/P&gt;&lt;P&gt;I've tried to follow your orientation but a I got stuck when trying to get the feature table from the feature layer. Could not find a getFeatureTable or getTable method from the layer I got from getOperationalLayers.get(2), which is the layer I'm trying to access. Once I'm getting started with the API and mmpk, I ask you: is there anything I should do when I create de mmpk to get access to feature table or when&amp;nbsp; I load it into the application?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;/P&gt;&lt;P&gt;Marcus&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Nov 2017 17:30:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/is-there-any-sample-app-or-doc-to-perform/m-p/572493#M3894</guid>
      <dc:creator>MarcusSilva</dc:creator>
      <dc:date>2017-11-17T17:30:29Z</dc:date>
    </item>
    <item>
      <title>Re: IS there any Sample app or doc to perform searching on mmpk file in Android App?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/is-there-any-sample-app-or-doc-to-perform/m-p/572494#M3895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The LayerList you get back from getOperationalLayers contains all sorts of layers, so it uses the high-level Layer class.&amp;nbsp;Try casting to FeatureLayer - that class exposes the getFeatureTable method -&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/android/latest/api-reference/reference/com/esri/arcgisruntime/layers/FeatureLayer.html" title="https://developers.arcgis.com/android/latest/api-reference/reference/com/esri/arcgisruntime/layers/FeatureLayer.html" rel="nofollow noopener noreferrer" target="_blank"&gt;FeatureLayer| arcgis-android&lt;/A&gt;&amp;nbsp;. e.g.&amp;nbsp;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;for &lt;/SPAN&gt;(Layer layer : &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;mMapView&lt;/SPAN&gt;.getMap().getOperationalLayers()) {
&amp;nbsp; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;if &lt;/SPAN&gt;(layer &lt;SPAN style="color: #000080; font-weight: bold;"&gt;instanceof &lt;/SPAN&gt;FeatureLayer) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; FeatureLayer featureLayer = (FeatureLayer) layer;
&amp;nbsp;&amp;nbsp;&amp;nbsp; FeatureTable featureTable = featureLayer.getFeatureTable();
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #808080;"&gt;// use FeatureTable...
&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;&amp;nbsp; &lt;/SPAN&gt;}&lt;/PRE&gt;&lt;/PRE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Shelly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 00:38:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/is-there-any-sample-app-or-doc-to-perform/m-p/572494#M3895</guid>
      <dc:creator>ShellyGill1</dc:creator>
      <dc:date>2021-12-12T00:38:56Z</dc:date>
    </item>
    <item>
      <title>Re: IS there any Sample app or doc to perform searching on mmpk file in Android App?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/is-there-any-sample-app-or-doc-to-perform/m-p/572495#M3896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply Shelly, I’ll take a look at that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2017 14:28:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/is-there-any-sample-app-or-doc-to-perform/m-p/572495#M3896</guid>
      <dc:creator>MarcusSilva</dc:creator>
      <dc:date>2017-11-21T14:28:37Z</dc:date>
    </item>
  </channel>
</rss>

