<?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 Populate App's Search Box with Text Message Address Hyperlink? in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/auto-populate-app-s-search-box-with-text-message/m-p/327658#M2159</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you! Your post was very helpful, and I have gotten the app to successfully add the text to the search box, but is there a way to automatically make it search for that address and add the marker at the location - without opening the text editor and clicking the search button?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Jan 2017 21:14:25 GMT</pubDate>
    <dc:creator>KristinSternhagen1</dc:creator>
    <dc:date>2017-01-11T21:14:25Z</dc:date>
    <item>
      <title>Auto Populate App's Search Box with Text Message Address Hyperlink?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/auto-populate-app-s-search-box-with-text-message/m-p/327656#M2157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will begin with this: I am not much of a developer, and have a limited knowledge of developing apps for Android. But we found this application that does exactly what we need it to do: &amp;nbsp;&lt;A href="https://github.com/Esri/maps-app-android"&gt;https://github.com/Esri/maps-app-android&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It does geolocating, reverse geolocating, and routing in one application, it works perfectly on our devices, and&amp;nbsp;we have done very little configuring since it does everything we need. But, we get calls for service from police dispatch&amp;nbsp;and the address is delivered via text message and the address is displayed as a hyperlink in the text message. I have figured out how to configure it so when this link is clicked, it opens on my phone the app mentioned above, but I want it to auto-populate the search bar in the app with the address from the text message. The other apps on my phone that support this functionality, Google Maps, Zillow, and a couple others, all can do this, but I can't figure out how. Any ideas?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2016 21:55:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/auto-populate-app-s-search-box-with-text-message/m-p/327656#M2157</guid>
      <dc:creator>KristinSternhagen1</dc:creator>
      <dc:date>2016-12-16T21:55:31Z</dc:date>
    </item>
    <item>
      <title>Re: Auto Populate App's Search Box with Text Message Address Hyperlink?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/auto-populate-app-s-search-box-with-text-message/m-p/327657#M2158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am happy to hear you are using the Maps App and it is filling your needs! &amp;nbsp;The Maps App uses an Android &lt;A href="https://developer.android.com/guide/topics/search/search-dialog.html" rel="nofollow noopener noreferrer" target="_blank"&gt;SearchView&lt;/A&gt;, you can use the &lt;A href="https://developer.android.com/reference/android/widget/SearchView.html#setQuery(java.lang.CharSequence, boolean)" rel="nofollow noopener noreferrer" target="_blank"&gt;setQuery()&lt;/A&gt; method to set the text in the SearchView from the address in your text message that you send to the app. &amp;nbsp;An example usage is offered below where you can do this in MapFragment.java where/when you pass the intent with the address string: &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="comment token"&gt;// get the address from intent&lt;/SPAN&gt;
String address &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; intent&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;getAddress&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;// set the search view text&lt;/SPAN&gt;
mSearchView&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;setQuery&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;address&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="token boolean"&gt;false&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;// clear focus away from search view&lt;/SPAN&gt;
mSearchView&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;clearFocus&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are active with our GitHub community in the Maps App repo, please do not hesitate to collaborate through&amp;nbsp;our &lt;A href="https://github.com/Esri/maps-app-android" rel="nofollow noopener noreferrer" target="_blank"&gt;repo&lt;/A&gt; as well. &amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 15:31:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/auto-populate-app-s-search-box-with-text-message/m-p/327657#M2158</guid>
      <dc:creator>DanO_Neill</dc:creator>
      <dc:date>2021-12-11T15:31:33Z</dc:date>
    </item>
    <item>
      <title>Re: Auto Populate App's Search Box with Text Message Address Hyperlink?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/auto-populate-app-s-search-box-with-text-message/m-p/327658#M2159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you! Your post was very helpful, and I have gotten the app to successfully add the text to the search box, but is there a way to automatically make it search for that address and add the marker at the location - without opening the text editor and clicking the search button?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2017 21:14:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/auto-populate-app-s-search-box-with-text-message/m-p/327658#M2159</guid>
      <dc:creator>KristinSternhagen1</dc:creator>
      <dc:date>2017-01-11T21:14:25Z</dc:date>
    </item>
  </channel>
</rss>

