<?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 Callout causes NullPointerException in onMeasure in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/callout-causes-nullpointerexception-in-onmeasure/m-p/30147#M227</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello we are using the &lt;SPAN class="j-header-text-place js-header-text j-header-text-place-subject"&gt;ArcGIS Runtime SDK for Android for our App.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-header-text-place js-header-text j-header-text-place-subject"&gt;We get large amounts of Crash reports that look like this (see below).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-header-text-place js-header-text j-header-text-place-subject"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-header-text-place js-header-text j-header-text-place-subject"&gt;Can anybody help with this, since our own code does not seem to be involved in there?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-header-text-place js-header-text j-header-text-place-subject"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-header-text-place js-header-text j-header-text-place-subject"&gt;This is an example of how we use the Callout:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;View v = LayoutInflater.&lt;SPAN style="font-style: italic;"&gt;from&lt;/SPAN&gt;(&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;mThis&lt;/SPAN&gt;).inflate(R.layout.callout_to_task, &lt;SPAN style="color: #000080; font-weight: bold;"&gt;null&lt;/SPAN&gt;);&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;TextView nameTextView = (TextView) v.findViewById(R.id.job_name_text);&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;setShortenedJobName(task.getDescription(), nameTextView);&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;((TextView) v.findViewById(R.id.job_value_text)).setText(task.getRewardFormatted());&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;v.setOnClickListener(&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;mMessageDetailsListener&lt;/SPAN&gt;);&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;mCallout&lt;/SPAN&gt;.setContent(v);&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;mCallout&lt;/SPAN&gt;.setStyle(R.xml.callout_style);&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;mCallout&lt;/SPAN&gt;.setOffset(&lt;SPAN style="color: #0000ff;"&gt;0&lt;/SPAN&gt;, &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;mCalloutYOffset&lt;/SPAN&gt;);&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;mCallout&lt;/SPAN&gt;.show(task.getLocation().toMapPoint(&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;mMap&lt;/SPAN&gt;));&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P&gt;And&amp;nbsp; this is the corresponding xml file:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-style: italic;"&gt;&amp;lt;?&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-weight: bold;"&gt;xml version=&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"1.0" &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-weight: bold;"&gt;encoding=&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"utf-8"&lt;/SPAN&gt;&lt;SPAN style="font-style: italic;"&gt;?&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&amp;lt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;RelativeLayout &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-weight: bold;"&gt;xmlns:&lt;/SPAN&gt;&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;android&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-weight: bold;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fschemas.android.com%2Fapk%2Fres%2Fandroid" rel="nofollow" target="_blank"&gt;http://schemas.android.com/apk/res/android&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;android&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-weight: bold;"&gt;:layout_width=&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"wrap_content"&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;android&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-weight: bold;"&gt;:layout_height=&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"wrap_content"&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;android&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-weight: bold;"&gt;:orientation=&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"vertical"&lt;/SPAN&gt;&amp;gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp; &amp;lt;&lt;SPAN style="color: #000080; background-color: #e4e4ff; font-weight: bold;"&gt;TextView&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;android&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-weight: bold;"&gt;:id=&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"@+id/job_name_text"&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;android&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-weight: bold;"&gt;:layout_width=&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"wrap_content"&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;android&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-weight: bold;"&gt;:layout_height=&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"wrap_content"&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;android&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-weight: bold;"&gt;:text=&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"Prüfe VerkehrsRichtung"&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;android&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-weight: bold;"&gt;:textColor=&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"@color/AppJobberGreen" &lt;/SPAN&gt;/&amp;gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp; &amp;lt;&lt;SPAN style="color: #000080; background-color: #e4e4ff; font-weight: bold;"&gt;TextView&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;android&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-weight: bold;"&gt;:id=&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"@+id/job_value_text"&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;android&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-weight: bold;"&gt;:layout_width=&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"wrap_content"&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;android&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-weight: bold;"&gt;:layout_height=&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"wrap_content"&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;android&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-weight: bold;"&gt;:layout_below=&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"@id/job_name_text"&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;android&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-weight: bold;"&gt;:layout_alignRight=&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"@+id/job_name_text"&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;android&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-weight: bold;"&gt;:layout_alignEnd=&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"@+id/job_name_text"&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;android&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-weight: bold;"&gt;:text=&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"0,00€"&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;android&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-weight: bold;"&gt;:textStyle=&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"bold" &lt;/SPAN&gt;/&amp;gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;lt;/&lt;SPAN style="color: #000080; font-weight: bold;"&gt;RelativeLayout&lt;/SPAN&gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-header-text-place js-header-text j-header-text-place-subject"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;java.lang.NullPointerException&lt;/P&gt;&lt;P&gt;at android.widget.RelativeLayout.onMeasure(RelativeLayout.java:548)&lt;/P&gt;&lt;P&gt;at android.view.View.measure(View.java:16030)&lt;/P&gt;&lt;P&gt;at com.esri.android.map.Callout$a.c(SourceFile:997)&lt;/P&gt;&lt;P&gt;at com.esri.android.map.Callout$a.onMeasure(SourceFile:914)&lt;/P&gt;&lt;P&gt;at android.view.View.measure(View.java:16030)&lt;/P&gt;&lt;P&gt;at android.view.ViewGroup.measureChild(ViewGroup.java:4983)&lt;/P&gt;&lt;P&gt;at com.esri.android.map.MapView.onMeasure(SourceFile:1357)&lt;/P&gt;&lt;P&gt;at android.view.View.measure(View.java:16030)&lt;/P&gt;&lt;P&gt;at android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java:728)&lt;/P&gt;&lt;P&gt;at android.widget.RelativeLayout.onMeasure(RelativeLayout.java:477)&lt;/P&gt;&lt;P&gt;at android.view.View.measure(View.java:16030)&lt;/P&gt;&lt;P&gt;at android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java:728)&lt;/P&gt;&lt;P&gt;at android.widget.RelativeLayout.onMeasure(RelativeLayout.java:477)&lt;/P&gt;&lt;P&gt;at android.view.View.measure(View.java:16030)&lt;/P&gt;&lt;P&gt;at android.widget.LinearLayout.measureVertical(LinearLayout.java:847)&lt;/P&gt;&lt;P&gt;at android.widget.LinearLayout.onMeasure(LinearLayout.java:588)&lt;/P&gt;&lt;P&gt;at android.view.View.measure(View.java:16030)&lt;/P&gt;&lt;P&gt;at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5012)&lt;/P&gt;&lt;P&gt;at android.widget.FrameLayout.onMeasure(FrameLayout.java:314)&lt;/P&gt;&lt;P&gt;at android.view.View.measure(View.java:16030)&lt;/P&gt;&lt;P&gt;at android.support.v4.widget.DrawerLayout.onMeasure(DrawerLayout.java:848)&lt;/P&gt;&lt;P&gt;at android.view.View.measure(View.java:16030)&lt;/P&gt;&lt;P&gt;at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5012)&lt;/P&gt;&lt;P&gt;at android.widget.FrameLayout.onMeasure(FrameLayout.java:314)&lt;/P&gt;&lt;P&gt;at android.view.View.measure(View.java:16030)&lt;/P&gt;&lt;P&gt;at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5012)&lt;/P&gt;&lt;P&gt;at com.android.internal.widget.ActionBarOverlayLayout.onMeasure(ActionBarOverlayLayout.java:302)&lt;/P&gt;&lt;P&gt;at android.view.View.measure(View.java:16030)&lt;/P&gt;&lt;P&gt;at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5012)&lt;/P&gt;&lt;P&gt;at android.widget.FrameLayout.onMeasure(FrameLayout.java:314)&lt;/P&gt;&lt;P&gt;at com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:2196)&lt;/P&gt;&lt;P&gt;at android.view.View.measure(View.java:16030)&lt;/P&gt;&lt;P&gt;at android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:1906)&lt;/P&gt;&lt;P&gt;at android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1105)&lt;/P&gt;&lt;P&gt;at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1285)&lt;/P&gt;&lt;P&gt;at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1005)&lt;/P&gt;&lt;P&gt;at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5498)&lt;/P&gt;&lt;P&gt;at android.view.Choreographer$CallbackRecord.run(Choreographer.java:749)&lt;/P&gt;&lt;P&gt;at android.view.Choreographer.doCallbacks(Choreographer.java:562)&lt;/P&gt;&lt;P&gt;at android.view.Choreographer.doFrame(Choreographer.java:532)&lt;/P&gt;&lt;P&gt;at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:735)&lt;/P&gt;&lt;P&gt;at android.os.Handler.handleCallback(Handler.java:730)&lt;/P&gt;&lt;P&gt;at android.os.Handler.dispatchMessage(Handler.java:92)&lt;/P&gt;&lt;P&gt;at android.os.Looper.loop(Looper.java:137)&lt;/P&gt;&lt;P&gt;at android.app.ActivityThread.main(ActivityThread.java:5232)&lt;/P&gt;&lt;P&gt;at java.lang.reflect.Method.invokeNative(Native Method)&lt;/P&gt;&lt;P&gt;at java.lang.reflect.Method.invoke(Method.java:525)&lt;/P&gt;&lt;P&gt;at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:746)&lt;/P&gt;&lt;P&gt;at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:562)&lt;/P&gt;&lt;P&gt;at dalvik.system.NativeStart.main(Native Method)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Mar 2016 11:52:17 GMT</pubDate>
    <dc:creator>SebastianSchöngenesri</dc:creator>
    <dc:date>2016-03-10T11:52:17Z</dc:date>
    <item>
      <title>Callout causes NullPointerException in onMeasure</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/callout-causes-nullpointerexception-in-onmeasure/m-p/30147#M227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello we are using the &lt;SPAN class="j-header-text-place js-header-text j-header-text-place-subject"&gt;ArcGIS Runtime SDK for Android for our App.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-header-text-place js-header-text j-header-text-place-subject"&gt;We get large amounts of Crash reports that look like this (see below).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-header-text-place js-header-text j-header-text-place-subject"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-header-text-place js-header-text j-header-text-place-subject"&gt;Can anybody help with this, since our own code does not seem to be involved in there?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-header-text-place js-header-text j-header-text-place-subject"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-header-text-place js-header-text j-header-text-place-subject"&gt;This is an example of how we use the Callout:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;View v = LayoutInflater.&lt;SPAN style="font-style: italic;"&gt;from&lt;/SPAN&gt;(&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;mThis&lt;/SPAN&gt;).inflate(R.layout.callout_to_task, &lt;SPAN style="color: #000080; font-weight: bold;"&gt;null&lt;/SPAN&gt;);&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;TextView nameTextView = (TextView) v.findViewById(R.id.job_name_text);&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;setShortenedJobName(task.getDescription(), nameTextView);&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;((TextView) v.findViewById(R.id.job_value_text)).setText(task.getRewardFormatted());&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;v.setOnClickListener(&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;mMessageDetailsListener&lt;/SPAN&gt;);&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;mCallout&lt;/SPAN&gt;.setContent(v);&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;mCallout&lt;/SPAN&gt;.setStyle(R.xml.callout_style);&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;mCallout&lt;/SPAN&gt;.setOffset(&lt;SPAN style="color: #0000ff;"&gt;0&lt;/SPAN&gt;, &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;mCalloutYOffset&lt;/SPAN&gt;);&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;mCallout&lt;/SPAN&gt;.show(task.getLocation().toMapPoint(&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;mMap&lt;/SPAN&gt;));&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P&gt;And&amp;nbsp; this is the corresponding xml file:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-style: italic;"&gt;&amp;lt;?&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-weight: bold;"&gt;xml version=&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"1.0" &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-weight: bold;"&gt;encoding=&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"utf-8"&lt;/SPAN&gt;&lt;SPAN style="font-style: italic;"&gt;?&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&amp;lt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;RelativeLayout &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-weight: bold;"&gt;xmlns:&lt;/SPAN&gt;&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;android&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-weight: bold;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fschemas.android.com%2Fapk%2Fres%2Fandroid" rel="nofollow" target="_blank"&gt;http://schemas.android.com/apk/res/android&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;android&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-weight: bold;"&gt;:layout_width=&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"wrap_content"&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;android&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-weight: bold;"&gt;:layout_height=&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"wrap_content"&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;android&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-weight: bold;"&gt;:orientation=&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"vertical"&lt;/SPAN&gt;&amp;gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp; &amp;lt;&lt;SPAN style="color: #000080; background-color: #e4e4ff; font-weight: bold;"&gt;TextView&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;android&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-weight: bold;"&gt;:id=&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"@+id/job_name_text"&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;android&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-weight: bold;"&gt;:layout_width=&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"wrap_content"&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;android&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-weight: bold;"&gt;:layout_height=&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"wrap_content"&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;android&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-weight: bold;"&gt;:text=&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"Prüfe VerkehrsRichtung"&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;android&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-weight: bold;"&gt;:textColor=&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"@color/AppJobberGreen" &lt;/SPAN&gt;/&amp;gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp; &amp;lt;&lt;SPAN style="color: #000080; background-color: #e4e4ff; font-weight: bold;"&gt;TextView&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;android&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-weight: bold;"&gt;:id=&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"@+id/job_value_text"&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;android&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-weight: bold;"&gt;:layout_width=&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"wrap_content"&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;android&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-weight: bold;"&gt;:layout_height=&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"wrap_content"&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;android&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-weight: bold;"&gt;:layout_below=&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"@id/job_name_text"&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;android&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-weight: bold;"&gt;:layout_alignRight=&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"@+id/job_name_text"&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;android&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-weight: bold;"&gt;:layout_alignEnd=&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"@+id/job_name_text"&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;android&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-weight: bold;"&gt;:text=&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"0,00€"&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;android&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-weight: bold;"&gt;:textStyle=&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"bold" &lt;/SPAN&gt;/&amp;gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;lt;/&lt;SPAN style="color: #000080; font-weight: bold;"&gt;RelativeLayout&lt;/SPAN&gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-header-text-place js-header-text j-header-text-place-subject"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;java.lang.NullPointerException&lt;/P&gt;&lt;P&gt;at android.widget.RelativeLayout.onMeasure(RelativeLayout.java:548)&lt;/P&gt;&lt;P&gt;at android.view.View.measure(View.java:16030)&lt;/P&gt;&lt;P&gt;at com.esri.android.map.Callout$a.c(SourceFile:997)&lt;/P&gt;&lt;P&gt;at com.esri.android.map.Callout$a.onMeasure(SourceFile:914)&lt;/P&gt;&lt;P&gt;at android.view.View.measure(View.java:16030)&lt;/P&gt;&lt;P&gt;at android.view.ViewGroup.measureChild(ViewGroup.java:4983)&lt;/P&gt;&lt;P&gt;at com.esri.android.map.MapView.onMeasure(SourceFile:1357)&lt;/P&gt;&lt;P&gt;at android.view.View.measure(View.java:16030)&lt;/P&gt;&lt;P&gt;at android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java:728)&lt;/P&gt;&lt;P&gt;at android.widget.RelativeLayout.onMeasure(RelativeLayout.java:477)&lt;/P&gt;&lt;P&gt;at android.view.View.measure(View.java:16030)&lt;/P&gt;&lt;P&gt;at android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java:728)&lt;/P&gt;&lt;P&gt;at android.widget.RelativeLayout.onMeasure(RelativeLayout.java:477)&lt;/P&gt;&lt;P&gt;at android.view.View.measure(View.java:16030)&lt;/P&gt;&lt;P&gt;at android.widget.LinearLayout.measureVertical(LinearLayout.java:847)&lt;/P&gt;&lt;P&gt;at android.widget.LinearLayout.onMeasure(LinearLayout.java:588)&lt;/P&gt;&lt;P&gt;at android.view.View.measure(View.java:16030)&lt;/P&gt;&lt;P&gt;at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5012)&lt;/P&gt;&lt;P&gt;at android.widget.FrameLayout.onMeasure(FrameLayout.java:314)&lt;/P&gt;&lt;P&gt;at android.view.View.measure(View.java:16030)&lt;/P&gt;&lt;P&gt;at android.support.v4.widget.DrawerLayout.onMeasure(DrawerLayout.java:848)&lt;/P&gt;&lt;P&gt;at android.view.View.measure(View.java:16030)&lt;/P&gt;&lt;P&gt;at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5012)&lt;/P&gt;&lt;P&gt;at android.widget.FrameLayout.onMeasure(FrameLayout.java:314)&lt;/P&gt;&lt;P&gt;at android.view.View.measure(View.java:16030)&lt;/P&gt;&lt;P&gt;at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5012)&lt;/P&gt;&lt;P&gt;at com.android.internal.widget.ActionBarOverlayLayout.onMeasure(ActionBarOverlayLayout.java:302)&lt;/P&gt;&lt;P&gt;at android.view.View.measure(View.java:16030)&lt;/P&gt;&lt;P&gt;at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5012)&lt;/P&gt;&lt;P&gt;at android.widget.FrameLayout.onMeasure(FrameLayout.java:314)&lt;/P&gt;&lt;P&gt;at com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:2196)&lt;/P&gt;&lt;P&gt;at android.view.View.measure(View.java:16030)&lt;/P&gt;&lt;P&gt;at android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:1906)&lt;/P&gt;&lt;P&gt;at android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1105)&lt;/P&gt;&lt;P&gt;at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1285)&lt;/P&gt;&lt;P&gt;at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1005)&lt;/P&gt;&lt;P&gt;at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5498)&lt;/P&gt;&lt;P&gt;at android.view.Choreographer$CallbackRecord.run(Choreographer.java:749)&lt;/P&gt;&lt;P&gt;at android.view.Choreographer.doCallbacks(Choreographer.java:562)&lt;/P&gt;&lt;P&gt;at android.view.Choreographer.doFrame(Choreographer.java:532)&lt;/P&gt;&lt;P&gt;at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:735)&lt;/P&gt;&lt;P&gt;at android.os.Handler.handleCallback(Handler.java:730)&lt;/P&gt;&lt;P&gt;at android.os.Handler.dispatchMessage(Handler.java:92)&lt;/P&gt;&lt;P&gt;at android.os.Looper.loop(Looper.java:137)&lt;/P&gt;&lt;P&gt;at android.app.ActivityThread.main(ActivityThread.java:5232)&lt;/P&gt;&lt;P&gt;at java.lang.reflect.Method.invokeNative(Native Method)&lt;/P&gt;&lt;P&gt;at java.lang.reflect.Method.invoke(Method.java:525)&lt;/P&gt;&lt;P&gt;at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:746)&lt;/P&gt;&lt;P&gt;at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:562)&lt;/P&gt;&lt;P&gt;at dalvik.system.NativeStart.main(Native Method)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Mar 2016 11:52:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/callout-causes-nullpointerexception-in-onmeasure/m-p/30147#M227</guid>
      <dc:creator>SebastianSchöngenesri</dc:creator>
      <dc:date>2016-03-10T11:52:17Z</dc:date>
    </item>
  </channel>
</rss>

