<?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: Fatal exceptions when updating from Beta to Release in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/fatal-exceptions-when-updating-from-beta-to/m-p/39203#M329</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;public void onCreate(Bundle savedInstanceState) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; super.onCreate(savedInstanceState);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; setContentView(R.layout.main);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; mMapView = (MapView)findViewById(R.id.map);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; mMapView.addLayer(new ArcGISDynamicMapServiceLayer(getString(R.string.url)));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; //Retrieve the non-configuration instance data that was previously returned. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Object init = getLastNonConfigurationInstance();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; if (init != null) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; mMapView.restoreState((String) init);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; } &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The code works with the additional lines as shown in red.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Jan 2012 23:50:25 GMT</pubDate>
    <dc:creator>ArchanaAgarwal</dc:creator>
    <dc:date>2012-01-03T23:50:25Z</dc:date>
    <item>
      <title>Fatal exceptions when updating from Beta to Release</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/fatal-exceptions-when-updating-from-beta-to/m-p/39195#M321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We just updated the ESRI Android SDK to the latest version (going from beta to release) and we were at once riddled with new errors. The project didn't even build once when the .JAR files were updated. We had something on the order of 50 to 60 build errors. We've finally got the build errors gone, but now we can't even view an Activity that has a MapView included.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;We've looked at the docs, even double checked them, but we're getting a fatal exception with the new SDK.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Dec 2011 17:18:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/fatal-exceptions-when-updating-from-beta-to/m-p/39195#M321</guid>
      <dc:creator>JasonKiesel</dc:creator>
      <dc:date>2011-12-30T17:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: Fatal exceptions when updating from Beta to Release</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/fatal-exceptions-when-updating-from-beta-to/m-p/39196#M322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can you provide some information on the fatal errors you are experiencing? e.g. When does it crash, the logcat logs, some information/code snippets on how you are loading and adding layers to your map etc...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Dec 2011 20:56:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/fatal-exceptions-when-updating-from-beta-to/m-p/39196#M322</guid>
      <dc:creator>WillCrick</dc:creator>
      <dc:date>2011-12-30T20:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: Fatal exceptions when updating from Beta to Release</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/fatal-exceptions-when-updating-from-beta-to/m-p/39197#M323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The ArcGIS Runtime SDK for Android v1.0.1 uses OpenGL ES 2.0 API to render map images. This resulted in changes to the API from our beta release and are the most likely case for project errors in apps built with the beta API. You have a few options and all include refactoring your code to the release API. I believe the easiest approach is to create a &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgismobile/10.0/apis/android/help/#/Integration_features/01190000000p000000/" rel="nofollow"&gt;&lt;SPAN style="color:&amp;quot;Blue&amp;quot;;"&gt;New Project&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt; with all the same project name/package/etc. from your beta apps. This will ensure your project is updated to support the release API. Next import the source from your beta project into the New Project. You should get errors on your source code. These errors are most likely due one or all of the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. API changes in your code. There have been some changes to the core API which will need to be refactored. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Map Layers are no longer Android Views. We no longer support adding layers through XML layout. You will need to add layers programmatically in Java. The base &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgismobile/10.0/apis/android/api/com/esri/android/map/Layer.html" rel="nofollow"&gt;&lt;SPAN style="color:&amp;quot;Blue&amp;quot;;"&gt;Layer&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt; class is used for all layers that can be added to a &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgismobile/10.0/apis/android/api/com/esri/android/map/MapView.html" rel="nofollow"&gt;&lt;SPAN style="color:&amp;quot;Blue&amp;quot;;"&gt;MapView&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;. E.g. If you want to add an Dynamic Map Service layer you will need to use the &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgismobile/10.0/apis/android/api/com/esri/android/map/ags/ArcGISDynamicMapServiceLayer.html" rel="nofollow"&gt;&lt;SPAN style="color:&amp;quot;Blue&amp;quot;;"&gt;ArcGISDynamicMapServiceLayer&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt; class.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. MapView XML Layout. We no longer support adding MapView layer service URL's through XML layout. MapView is still an Android View but the underlying layers are not so you can still reference your MapView from XML layout but we only support &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisonline/help/index.html#//010q00000028000000" rel="nofollow"&gt;&lt;SPAN style="color:&amp;quot;Blue&amp;quot;;"&gt;Web Map&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt; URL's. You can still set the initial extent of your MapView in XML Layout. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As Will noted above, if you provide us with specific details about the errors you are experiencing we can help you resolve them. I understand this effort may be taxing, but we believe the benefits significantly outweigh the costs. I appreciate your attempt to find resolution within our doc system and we will work on providing some better documentation to support moving from our beta API to release.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 Dec 2011 19:18:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/fatal-exceptions-when-updating-from-beta-to/m-p/39197#M323</guid>
      <dc:creator>DanO_Neill</dc:creator>
      <dc:date>2011-12-31T19:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: Fatal exceptions when updating from Beta to Release</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/fatal-exceptions-when-updating-from-beta-to/m-p/39198#M324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is in regards to Jason's original post.&amp;nbsp; I followed the instructions on importing an existing project and I have updated our source code so that it compiles using the new ESRI SDK.&amp;nbsp; The error occurs while loading and adding a mapview layer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~&amp;nbsp; Stack Trace .~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;01-03 11:05:13.521: E/AndroidRuntime(1660): Caused by: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.citysourced/com.citysourced.activity.MapScreen}: java.lang.NullPointerException&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;01-03 11:05:13.521: E/AndroidRuntime(1660):&amp;nbsp; at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1830)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;01-03 11:05:13.521: E/AndroidRuntime(1660):&amp;nbsp; at android.app.ActivityThread.startActivityNow(ActivityThread.java:1656)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;01-03 11:05:13.521: E/AndroidRuntime(1660):&amp;nbsp; at android.app.LocalActivityManager.moveToState(LocalActivityManager.java:127)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;01-03 11:05:13.521: E/AndroidRuntime(1660):&amp;nbsp; at android.app.LocalActivityManager.startActivity(LocalActivityManager.java:339)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;01-03 11:05:13.521: E/AndroidRuntime(1660):&amp;nbsp; at com.citysourced.activity.TabActivityGroup.startChildActivity(TabActivityGroup.java:16)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;01-03 11:05:13.521: E/AndroidRuntime(1660):&amp;nbsp; at com.citysourced.activity.MapActivityGroup.onCreate(MapActivityGroup.java:23)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;01-03 11:05:13.521: E/AndroidRuntime(1660):&amp;nbsp; at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1072)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;01-03 11:05:13.521: E/AndroidRuntime(1660):&amp;nbsp; at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1794)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;01-03 11:05:13.521: E/AndroidRuntime(1660):&amp;nbsp; ... 18 more&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;01-03 11:05:13.521: E/AndroidRuntime(1660): Caused by: java.lang.NullPointerException&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;01-03 11:05:13.521: E/AndroidRuntime(1660):&amp;nbsp; at com.citysourced.activity.MapScreen.onCreate(MapScreen.java:181)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;01-03 11:05:13.521: E/AndroidRuntime(1660):&amp;nbsp; at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1072)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;01-03 11:05:13.521: E/AndroidRuntime(1660):&amp;nbsp; at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1794)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~&amp;nbsp; Source Code .~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//Strings.xml&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;lt;string name="url_map_tiles"&amp;gt;&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer" rel="nofollow" target="_blank"&gt;http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer&lt;/A&gt;&lt;SPAN&gt;&amp;lt;/string&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//MapScreen.java&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mMapView.addLayer(new ArcGISDynamicMapServiceLayer(getString(R.string.url_map_tiles)));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; //Retrieve the non-configuration instance data that was previously returned.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Object init = getLastNonConfigurationInstance();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; if (init != null) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; mMapView.restoreState((String) init);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&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; ...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jan 2012 17:18:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/fatal-exceptions-when-updating-from-beta-to/m-p/39198#M324</guid>
      <dc:creator>DennisBaliton</dc:creator>
      <dc:date>2012-01-03T17:18:22Z</dc:date>
    </item>
    <item>
      <title>Re: Fatal exceptions when updating from Beta to Release</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/fatal-exceptions-when-updating-from-beta-to/m-p/39199#M325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello Dennis,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the code from the onCreate() method in the helloworld sample from the sdk.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Its been modified to get the url from values-&amp;gt;string.xml.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Archana&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-----------------------------------------------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; public void onCreate(Bundle savedInstanceState) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &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; // could not see these two lines in the code posted&amp;nbsp; &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; super.onCreate(savedInstanceState);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; setContentView(R.layout.main);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; // Retrieve the map and initial extent from XML layout&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; map = (MapView)findViewById(R.id.map);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; // Add dynamic layer to MapView&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp; //map.addLayer(new ArcGISDynamicMapServiceLayer("" +&amp;nbsp;&amp;nbsp;&amp;nbsp; "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer" rel="nofollow" target="_blank"&gt;http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer&lt;/A&gt;&lt;SPAN&gt;"));&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&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; map.addLayer(new ArcGISDynamicMapServiceLayer(getString(R.string.url_map_tiles)));&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; //Retrieve the non-configuration instance data that was previously returned. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Object init = getLastNonConfigurationInstance();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; if (init != null) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; map.restoreState((String) init);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; } &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jan 2012 19:26:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/fatal-exceptions-when-updating-from-beta-to/m-p/39199#M325</guid>
      <dc:creator>ArchanaAgarwal</dc:creator>
      <dc:date>2012-01-03T19:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: Fatal exceptions when updating from Beta to Release</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/fatal-exceptions-when-updating-from-beta-to/m-p/39200#M326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;mMapView is an instance of the object MapView in our app, as map is in the HelloWorld example. Please explain if I'm missing something here.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;mMapView.addLayer(new ArcGISDynamicMapServiceLayer(getString(R.string.url_map_tiles)));&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.addLayer(new ArcGISDynamicMapServiceLayer(getString(R.string.url_map_tiles)));&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jan 2012 20:43:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/fatal-exceptions-when-updating-from-beta-to/m-p/39200#M326</guid>
      <dc:creator>DennisBaliton</dc:creator>
      <dc:date>2012-01-03T20:43:51Z</dc:date>
    </item>
    <item>
      <title>Re: Fatal exceptions when updating from Beta to Release</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/fatal-exceptions-when-updating-from-beta-to/m-p/39201#M327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That is correct, and there are two ways you can create an instance, either by using the new operator&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MapView m = new MapView(this)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Or in xml &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;lt;LinearLayout xmlns:android="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://schemas.android.com/apk/res/android" rel="nofollow" target="_blank"&gt;http://schemas.android.com/apk/res/android&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; android:orientation="vertical"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; android:layout_width="fill_parent"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; android:layout_height="fill_parent"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!-- MapView layout and initial extent --&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;com.esri.android.map.MapView&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; android:id="@+id/map"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; android:layout_width="fill_parent"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; android:layout_height="fill_parent"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; initExtent = "-19332033.11, -3516.27, -1720941.80, 11737211.28"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/com.esri.android.map.MapView&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/LinearLayout&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In code you would have to use the following :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;map = (MapView)findViewById(R.id.map); &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the code to create mapview by using the new operator:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;public void onCreate(Bundle savedInstanceState) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; super.onCreate(savedInstanceState);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; map = new MapView(this);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; map.addLayer(new ArcGISDynamicMapServiceLayer(getString(R.string.url)));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; setContentView(map);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; //Retrieve the non-configuration instance data that was previously returned. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Object init = getLastNonConfigurationInstance();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; if (init != null) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; map.restoreState((String) init);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; } &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; protected void onPause() {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; super.onPause();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; map.pause();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jan 2012 22:30:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/fatal-exceptions-when-updating-from-beta-to/m-p/39201#M327</guid>
      <dc:creator>ArchanaAgarwal</dc:creator>
      <dc:date>2012-01-03T22:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: Fatal exceptions when updating from Beta to Release</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/fatal-exceptions-when-updating-from-beta-to/m-p/39202#M328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We're instantiating via XML- attaching code snippets from Java class file and XML(layout).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Instantiate MapView...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mMapView = (MapView) findViewById(R.id.mapView);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; // Add dynamic layer to MapView&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mMapView.addLayer(new ArcGISDynamicMapServiceLayer(getString(R.string.url_map_tiles)));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; //Retrieve the non-configuration instance data that was previously returned.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Object init = getLastNonConfigurationInstance();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; if (init != null) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; mMapView.restoreState((String) init);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;?xml version="1.0" encoding="utf-8"?&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;lt;RelativeLayout xmlns:android="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://schemas.android.com/apk/res/android" rel="nofollow" target="_blank"&gt;http://schemas.android.com/apk/res/android&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; android:layout_width="fill_parent"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; android:layout_height="fill_parent"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; android:background="@android:color/transparent" &amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;RelativeLayout&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; android:id="@+id/mapViewContent"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; android:layout_width="fill_parent"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; android:layout_height="fill_parent"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; android:layout_above="@+id/controlbuttons"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; android:layout_alignParentTop="true" &amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;!-- MapView layout and initial extent --&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;com.esri.android.map.MapView&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; android:id="@+id/map"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; android:layout_width="fill_parent"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; android:layout_height="fill_parent"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; initExtent = "-1.3296373526814876E7 3930962.41823043 -1.2807176545789773E7 4201243.7502468005"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;/com.esri.android.map.MapView&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jan 2012 22:53:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/fatal-exceptions-when-updating-from-beta-to/m-p/39202#M328</guid>
      <dc:creator>DennisBaliton</dc:creator>
      <dc:date>2012-01-03T22:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: Fatal exceptions when updating from Beta to Release</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/fatal-exceptions-when-updating-from-beta-to/m-p/39203#M329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;public void onCreate(Bundle savedInstanceState) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; super.onCreate(savedInstanceState);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; setContentView(R.layout.main);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; mMapView = (MapView)findViewById(R.id.map);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; mMapView.addLayer(new ArcGISDynamicMapServiceLayer(getString(R.string.url)));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; //Retrieve the non-configuration instance data that was previously returned. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Object init = getLastNonConfigurationInstance();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; if (init != null) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; mMapView.restoreState((String) init);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; } &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The code works with the additional lines as shown in red.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jan 2012 23:50:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/fatal-exceptions-when-updating-from-beta-to/m-p/39203#M329</guid>
      <dc:creator>ArchanaAgarwal</dc:creator>
      <dc:date>2012-01-03T23:50:25Z</dc:date>
    </item>
    <item>
      <title>Re: Fatal exceptions when updating from Beta to Release</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/fatal-exceptions-when-updating-from-beta-to/m-p/39204#M330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is what we have.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; public void onCreate(Bundle savedInstanceState) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Utility.logInfo(CLASSNAME, "onCreate", "");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; super.onCreate(savedInstanceState);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; requestWindowFeature(Window.FEATURE_NO_TITLE);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; setContentView(R.layout.mycityhomescreen);&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jan 2012 00:08:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/fatal-exceptions-when-updating-from-beta-to/m-p/39204#M330</guid>
      <dc:creator>DennisBaliton</dc:creator>
      <dc:date>2012-01-04T00:08:10Z</dc:date>
    </item>
    <item>
      <title>Re: Fatal exceptions when updating from Beta to Release</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/fatal-exceptions-when-updating-from-beta-to/m-p/39205#M331</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;i have had the same problem i think. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;mMapView.addLayer(new ArcGISDynamicMapServiceLayer(getString(R.string.url)));&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is the point which causes the Nullpointerexception. You can do a workaround if you create a string: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;String url = getResources().getString(R.string.url);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;then do:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;mMapView.addLayer(new ArcGISDynamicMapServiceLayer(url);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think if you would do it your way the string returned from "getString(R.string.url)" is null because the android system initializes the mapview before the strings from the call getString could be initialized.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please excuse my poor english! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jan 2012 06:08:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/fatal-exceptions-when-updating-from-beta-to/m-p/39205#M331</guid>
      <dc:creator>PeterGlenewinkel</dc:creator>
      <dc:date>2012-01-04T06:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: Fatal exceptions when updating from Beta to Release</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/fatal-exceptions-when-updating-from-beta-to/m-p/39206#M332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;glenewinkel89, I tried that and I'm still getting a null return value.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dennis&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2012 00:56:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/fatal-exceptions-when-updating-from-beta-to/m-p/39206#M332</guid>
      <dc:creator>DennisBaliton</dc:creator>
      <dc:date>2012-01-05T00:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: Fatal exceptions when updating from Beta to Release</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/fatal-exceptions-when-updating-from-beta-to/m-p/39207#M333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Dennis,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you please try creating a new ArcGIS Android Project (not a sample) and then port your code into that project. And see if you still get the same error ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, if you can debug your app and see if the value for getString(R.string.url) is null or not ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jan 2012 14:43:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/fatal-exceptions-when-updating-from-beta-to/m-p/39207#M333</guid>
      <dc:creator>SaurabhGupta</dc:creator>
      <dc:date>2012-01-06T14:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: Fatal exceptions when updating from Beta to Release</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/fatal-exceptions-when-updating-from-beta-to/m-p/39208#M334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am still getting the same error. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1.) - Port the existing code using the following method.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;------a.) Create an "ArcGIS Project for Android"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;------b.) used the original Package Name&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;------c.) Imported the project&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;------d.) Fixed all the errors&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;------e.)Build and tested on an HTC Sensation&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;------f.)**Same result, null value when trying to addLayer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;------e.)line where the exception occurs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;mMapView.addLayer(new ArcGISDynamicMapServiceLayer(url));&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;2.) - I am using "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer" rel="nofollow" target="_blank"&gt;http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer&lt;/A&gt;&lt;SPAN&gt;" and it is being evaluated at runtime&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; String url = getString(R.string.url_map_tiles);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mMapView.addLayer(new ArcGISDynamicMapServiceLayer(url));&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jan 2012 22:02:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/fatal-exceptions-when-updating-from-beta-to/m-p/39208#M334</guid>
      <dc:creator>DennisBaliton</dc:creator>
      <dc:date>2012-01-06T22:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: Fatal exceptions when updating from Beta to Release</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/fatal-exceptions-when-updating-from-beta-to/m-p/39209#M335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Don't want to get too caught up on language but what do you mean in step 1c. "Imported the project"?&amp;nbsp;&amp;nbsp; Be sure &lt;/SPAN&gt;&lt;STRONG&gt;not&lt;/STRONG&gt;&lt;SPAN&gt; to import your beta project, only the source as when you create a new project with the SDK Eclipse plugin all your settings and required libraries are up to date for release app development.&amp;nbsp; At this point you should only need to bring in source java and/or XML files from your beta project and refactor appropriately.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;Next:&amp;nbsp; Can you test the service directly from the MapView.addLayer() method?&amp;nbsp; I would like to isolate your issue and confirm so please remove the String url and replace with the actual URL string "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer" rel="nofollow" target="_blank"&gt;http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer&lt;/A&gt;&lt;SPAN&gt;" and let us know if your app starts working or if you continue to have issues.&amp;nbsp; I understand you may have a requirement to not access services in this way I just want to test and isolate the issue if possible.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Jan 2012 01:07:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/fatal-exceptions-when-updating-from-beta-to/m-p/39209#M335</guid>
      <dc:creator>DanO_Neill</dc:creator>
      <dc:date>2012-01-07T01:07:56Z</dc:date>
    </item>
    <item>
      <title>Re: Fatal exceptions when updating from Beta to Release</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/fatal-exceptions-when-updating-from-beta-to/m-p/39210#M336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I created another "ArcGIS Project for Android" project, manually moved the source files, fixed errors, and hardcoded the URL in the addLayer call.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Same result.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2012 17:19:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/fatal-exceptions-when-updating-from-beta-to/m-p/39210#M336</guid>
      <dc:creator>DennisBaliton</dc:creator>
      <dc:date>2012-01-09T17:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: Fatal exceptions when updating from Beta to Release</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/fatal-exceptions-when-updating-from-beta-to/m-p/39211#M337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It's finally working, there was a missing close bracket in the layout xml.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for everyone's help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2012 22:02:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/fatal-exceptions-when-updating-from-beta-to/m-p/39211#M337</guid>
      <dc:creator>DennisBaliton</dc:creator>
      <dc:date>2012-01-09T22:02:51Z</dc:date>
    </item>
    <item>
      <title>Re: Fatal exceptions when updating from Beta to Release</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/fatal-exceptions-when-updating-from-beta-to/m-p/39212#M338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Fantastic!&amp;nbsp; Glad you got it sorted out.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2012 23:03:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/fatal-exceptions-when-updating-from-beta-to/m-p/39212#M338</guid>
      <dc:creator>DanO_Neill</dc:creator>
      <dc:date>2012-01-09T23:03:30Z</dc:date>
    </item>
    <item>
      <title>Re: Fatal exceptions when updating from Beta to Release</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/fatal-exceptions-when-updating-from-beta-to/m-p/39213#M339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Glad to hear that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But just to be clear, it worked by using an ArcGIS Android project + manually copying the src files.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And it fails if you use an Android project.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2012 14:38:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/fatal-exceptions-when-updating-from-beta-to/m-p/39213#M339</guid>
      <dc:creator>SaurabhGupta</dc:creator>
      <dc:date>2012-01-11T14:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: Fatal exceptions when updating from Beta to Release</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/fatal-exceptions-when-updating-from-beta-to/m-p/39214#M340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I tried many things to make it work, but creating an ArcGIS Android project + manually copying the src files did work.&amp;nbsp; Be mindful of the fact that methods have been &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;re-written/changed and that you will have to refactor your code.&amp;nbsp; We have a medium to large collection of source files so refactoring the source took time to complete.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In hindsight, maybe I should have taken notes and documented the process.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2012 18:15:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/fatal-exceptions-when-updating-from-beta-to/m-p/39214#M340</guid>
      <dc:creator>DennisBaliton</dc:creator>
      <dc:date>2012-01-11T18:15:17Z</dc:date>
    </item>
  </channel>
</rss>

