<?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: Back button from mapView exits application in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/back-button-from-mapview-exits-application/m-p/43951#M362</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your response,&lt;/P&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;I did try not overriding finish method, so i moved the code to onDestroy(). This did not make any difference. &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;What I figured out in the meantime is that this happens only on Samsung Galaxy Trend Plus &lt;STRONG style="font-weight: normal;"&gt;&lt;SPAN&gt;(GT-S7580)&amp;nbsp; with &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-weight: normal;"&gt;&lt;SPAN&gt;4.2.2&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;STRONG style="font-weight: normal;"&gt;&lt;SPAN&gt; A&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-weight: normal;"&gt;&lt;SPAN&gt;ndroid version. Further testing on &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: normal;"&gt;&lt;SPAN&gt;Samsung Galaxy Core Plus (SM-G350) and Galaxy S2 Plus&amp;nbsp; (GTI-9105P), both with 4.2.2 Android version did not reproduce the issue. However, on GT-S7580 it is 100% repro.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;STRONG style="font-weight: normal;"&gt;&lt;SPAN&gt; Other Android versions on other &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-weight: normal;"&gt;&lt;SPAN&gt;devices behave normally&lt;STRONG&gt;,&lt;/STRONG&gt; including &lt;/SPAN&gt;&lt;/SPAN&gt;Galaxy Trend Plus &lt;STRONG style="font-weight: normal;"&gt;&lt;SPAN&gt;(GT-S7580)&amp;nbsp; with &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-weight: normal;"&gt;&lt;SPAN&gt;4.1.2&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;STRONG style="font-weight: normal;"&gt;&lt;SPAN&gt; A&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-weight: normal;"&gt;&lt;SPAN&gt;ndroid version.&lt;BR clear="none" /&gt;&lt;BR clear="none" /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN style="font-weight: normal;"&gt;&lt;SPAN&gt;The selected combination of device + Android version is important because our client has a number of devices purchased with a package deal from the provider.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Apr 2015 13:50:31 GMT</pubDate>
    <dc:creator>MladenSimic</dc:creator>
    <dc:date>2015-04-03T13:50:31Z</dc:date>
    <item>
      <title>Back button from mapView exits application</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/back-button-from-mapview-exits-application/m-p/43947#M358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem with activities that contains mapView. When ever activity contains mapView on BACK button pressed instead of finishing only said activity, parent activity is finished too, without explicit finish call. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Main -&amp;gt; ActivityB (if ActivityB contains mapView on BACK app is closing because BACK on ActivityB closes ActivitB and Main)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Main-&amp;gt; ActivityA -&amp;gt; ActivityB (on BACK on ActivityB closes ActvityB and ActivityA and stays in Main activity).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;finish method of any activity is not overridden.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2015 21:47:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/back-button-from-mapview-exits-application/m-p/43947#M358</guid>
      <dc:creator>MladenSimic</dc:creator>
      <dc:date>2015-04-01T21:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: Back button from mapView exits application</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/back-button-from-mapview-exits-application/m-p/43948#M359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;are u using &lt;SPAN style="background-color: #f7f7f7; color: #258aaf; font-family: Roboto, sans-serif; margin-right: 2px;"&gt;onBackPressed&lt;/SPAN&gt;&lt;SPAN style="color: #222222; font-family: Roboto, sans-serif; background-color: #f7f7f7;"&gt;() method? if yes just call finish() inside this method.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: Roboto, sans-serif; background-color: #f7f7f7;"&gt;for better solution just paste ur code here.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: Roboto, sans-serif; background-color: #f7f7f7;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: Roboto, sans-serif; background-color: #f7f7f7;"&gt;Rhitz&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2015 05:59:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/back-button-from-mapview-exits-application/m-p/43948#M359</guid>
      <dc:creator>imritanshu</dc:creator>
      <dc:date>2015-04-02T05:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: Back button from mapView exits application</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/back-button-from-mapview-exits-application/m-p/43949#M360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much for your response Rhitz.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, I am using onBackPressed method. Here is the code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #1f497d; font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;@Override &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #1f497d; font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;public void onBackPressed() &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #1f497d; font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;{ &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #1f497d; font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.finish(); &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #1f497d; font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;}&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;"&gt;Also, in meantime I tried to override finish method:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #1f497d; font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;@Override&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #1f497d; font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;public void finish() {&lt;/EM&gt;&lt;/P&gt;&lt;P style="text-indent: .5in;"&gt;&lt;EM style="color: #1f497d; font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;if (this.progressDialog != null &amp;amp;&amp;amp; this.progressDialog.isShowing()) {&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #1f497d; font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.progressDialog.dismiss();&lt;/EM&gt;&lt;/P&gt;&lt;P style="text-indent: .5in;"&gt;&lt;EM style="color: #1f497d; font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;}&lt;/EM&gt;&lt;/P&gt;&lt;P style="text-indent: .5in;"&gt;&lt;EM style="color: #1f497d; font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;if (this.returnGeometryTask != null &amp;amp;&amp;amp; this.returnGeometryTask.getStatus() == android.os.AsyncTask.Status.RUNNING) {&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #1f497d; font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.returnGeometryTask.cancel(true);&lt;/EM&gt;&lt;/P&gt;&lt;P style="text-indent: .5in;"&gt;&lt;EM style="color: #1f497d; font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;}&lt;/EM&gt;&lt;/P&gt;&lt;OL style="list-style-type: lower-alpha;"&gt;&lt;LI&gt;&lt;EM style="color: #1f497d; font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;this.mapView.destroyDrawingCache();&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;&lt;EM style="color: #1f497d; font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;super.finish();&lt;/EM&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;EM style="color: #1f497d; font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;}&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This makes no difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,Mladen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2015 12:00:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/back-button-from-mapview-exits-application/m-p/43949#M360</guid>
      <dc:creator>MladenSimic</dc:creator>
      <dc:date>2015-04-02T12:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: Back button from mapView exits application</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/back-button-from-mapview-exits-application/m-p/43950#M361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would suggest not over-riding the onBackPressed() or finish() unless absolutely necessary.&amp;nbsp; If your concern is to make sure a background thread is stopped it would be better placed in onStop().&amp;nbsp; Moving your logic there would always ensure the process is stopped rather than in finish() which may not be called.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://developer.android.com/guide/components/activities.html#Lifecycle" title="http://developer.android.com/guide/components/activities.html#Lifecycle"&gt;Activities | Android Developers&lt;/A&gt; &lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;DL&gt;&lt;DT&gt;&lt;EM&gt;Stopped&lt;/EM&gt;&lt;/DT&gt;&lt;DD&gt;The activity is completely obscured by another activity (the activity is now in the "background"). A stopped activity is also still alive (the &lt;CODE&gt;&lt;A href="http://developer.android.com/reference/android/app/Activity.html"&gt;Activity&lt;/A&gt;&lt;/CODE&gt; object is retained in memory, it maintains all state and member information, but is &lt;EM&gt;not&lt;/EM&gt; attached to the window manager). However, it is no longer visible to the user and it can be killed by the system when memory is needed elsewhere.&lt;/DD&gt;&lt;/DL&gt;&lt;P&gt;If an activity is paused or stopped, the system can drop it from memory either by asking it to finish (calling its &lt;CODE&gt;&lt;A href="http://developer.android.com/reference/android/app/Activity.html#finish%28%29"&gt;finish()&lt;/A&gt;&lt;/CODE&gt; method), or simply killing its process. When the activity is opened again (after being finished or killed), it must be created all over.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2015 12:41:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/back-button-from-mapview-exits-application/m-p/43950#M361</guid>
      <dc:creator>lqdeffx</dc:creator>
      <dc:date>2015-04-03T12:41:13Z</dc:date>
    </item>
    <item>
      <title>Re: Back button from mapView exits application</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/back-button-from-mapview-exits-application/m-p/43951#M362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your response,&lt;/P&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;I did try not overriding finish method, so i moved the code to onDestroy(). This did not make any difference. &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;What I figured out in the meantime is that this happens only on Samsung Galaxy Trend Plus &lt;STRONG style="font-weight: normal;"&gt;&lt;SPAN&gt;(GT-S7580)&amp;nbsp; with &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-weight: normal;"&gt;&lt;SPAN&gt;4.2.2&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;STRONG style="font-weight: normal;"&gt;&lt;SPAN&gt; A&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-weight: normal;"&gt;&lt;SPAN&gt;ndroid version. Further testing on &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: normal;"&gt;&lt;SPAN&gt;Samsung Galaxy Core Plus (SM-G350) and Galaxy S2 Plus&amp;nbsp; (GTI-9105P), both with 4.2.2 Android version did not reproduce the issue. However, on GT-S7580 it is 100% repro.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;STRONG style="font-weight: normal;"&gt;&lt;SPAN&gt; Other Android versions on other &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-weight: normal;"&gt;&lt;SPAN&gt;devices behave normally&lt;STRONG&gt;,&lt;/STRONG&gt; including &lt;/SPAN&gt;&lt;/SPAN&gt;Galaxy Trend Plus &lt;STRONG style="font-weight: normal;"&gt;&lt;SPAN&gt;(GT-S7580)&amp;nbsp; with &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-weight: normal;"&gt;&lt;SPAN&gt;4.1.2&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;STRONG style="font-weight: normal;"&gt;&lt;SPAN&gt; A&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-weight: normal;"&gt;&lt;SPAN&gt;ndroid version.&lt;BR clear="none" /&gt;&lt;BR clear="none" /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN style="font-weight: normal;"&gt;&lt;SPAN&gt;The selected combination of device + Android version is important because our client has a number of devices purchased with a package deal from the provider.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2015 13:50:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/back-button-from-mapview-exits-application/m-p/43951#M362</guid>
      <dc:creator>MladenSimic</dc:creator>
      <dc:date>2015-04-03T13:50:31Z</dc:date>
    </item>
  </channel>
</rss>

