<?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: auto complete text prompt in geocoding in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/auto-complete-text-prompt-in-geocoding/m-p/175132#M1199</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In Android you can do this by changing the EditText to an AutoCompleteTextView in your xml layout, and then setting an adapter on it in your activity. Something similar to this (I'm typing the code directly into this window, so please forgive any syntax errors)...&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
String[] myAddresses = new String[] { ... };

ArrayAdapter&amp;lt;String&amp;gt; addressAdapter = new ArrayAdapter&amp;lt;String&amp;gt;(this, android.R.layout.simple_dropdown_item_1line, myAddresses);
AutoCompleteTextView addressTextView = (AutoCompleteTextView) findViewById(R.id.addressText);
addressTextView.setAdapter(addressAdapter);
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In reality you probably want to read your array of addresses from a file or other external source rather than hard code them, but you get the idea.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 09:02:12 GMT</pubDate>
    <dc:creator>JasonKnisley</dc:creator>
    <dc:date>2021-12-11T09:02:12Z</dc:date>
    <item>
      <title>auto complete text prompt in geocoding</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/auto-complete-text-prompt-in-geocoding/m-p/175131#M1198</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;SPAN&gt;I am using the Geocoding android sample I want to implement an auto complete text prompt when the user enters an address.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This is possible in flex as there a geocoder component that has an auto completetext property. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to repelicate the same in android however there in no such component available.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How do I go about it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nigel.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Dec 2013 03:15:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/auto-complete-text-prompt-in-geocoding/m-p/175131#M1198</guid>
      <dc:creator>NigelDsouza</dc:creator>
      <dc:date>2013-12-20T03:15:10Z</dc:date>
    </item>
    <item>
      <title>Re: auto complete text prompt in geocoding</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/auto-complete-text-prompt-in-geocoding/m-p/175132#M1199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In Android you can do this by changing the EditText to an AutoCompleteTextView in your xml layout, and then setting an adapter on it in your activity. Something similar to this (I'm typing the code directly into this window, so please forgive any syntax errors)...&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
String[] myAddresses = new String[] { ... };

ArrayAdapter&amp;lt;String&amp;gt; addressAdapter = new ArrayAdapter&amp;lt;String&amp;gt;(this, android.R.layout.simple_dropdown_item_1line, myAddresses);
AutoCompleteTextView addressTextView = (AutoCompleteTextView) findViewById(R.id.addressText);
addressTextView.setAdapter(addressAdapter);
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In reality you probably want to read your array of addresses from a file or other external source rather than hard code them, but you get the idea.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 09:02:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/auto-complete-text-prompt-in-geocoding/m-p/175132#M1199</guid>
      <dc:creator>JasonKnisley</dc:creator>
      <dc:date>2021-12-11T09:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: auto complete text prompt in geocoding</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/auto-complete-text-prompt-in-geocoding/m-p/175133#M1200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi knisleyj,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have done the same thing that you have posted.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I get the addresses and populate the array on result of a a geocode task. But only when I type in a string will I get the geocode task result.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is how do I retrieve the address and populate the array when the activity is created?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Something like getting addresses and populating the array without running a geocode task.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Have a look at this sample..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/en/flex/sample-code/geocoder.htm"&gt;https://developers.arcgis.com/en/flex/sample-code/geocoder.htm&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nigel.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Dec 2013 13:33:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/auto-complete-text-prompt-in-geocoding/m-p/175133#M1200</guid>
      <dc:creator>NigelDsouza</dc:creator>
      <dc:date>2013-12-24T13:33:43Z</dc:date>
    </item>
  </channel>
</rss>

