Runtime Exception - How Do Obtain All Log Entries From Logcat?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/1167888/howto-increase-lines-of-java-stack-trace-dump">howto increase lines of java stack trace dump?</a>  </p>
</blockquote>



<p>I'm having some problems with my app, a runtime exception is being thrown when the device is re-orientated (oddly only when going from Landscape to Portrait and not vice versa!). I've looked at the logcat output with this command:</p>

<blockquote>
  <p>adb logcat AndroidRuntime:E *:S</p>
</blockquote>

<p>and obtained the following (the XX.XXXX.XXX etc is my package name obliterated):</p>

<pre><code>&gt; E/AndroidRuntime(  559): FATAL EXCEPTION: main E/AndroidRuntime( 
&gt; 559): java.lang.RuntimeException: Unable to destroy activity
&gt; {xx.xx.xxxxxxxxx.xxxxxxxxxxxx/xx.xx.xxxxx.xxxxxxxx.xxxxxxxxxxx}:
&gt; java.lang.NullPointerException E/AndroidRuntime(  559):   at
&gt; android.app.ActivityThread.performDestroyActivity(ActivityThread.java:3655)
&gt; E/AndroidRuntime(  559):  at
&gt; android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:3673)
&gt; E/AndroidRuntime(  559):  at
&gt; android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:3789)
&gt; E/AndroidRuntime(  559):  at
&gt; android.app.ActivityThread.access$2400(ActivityThread.java:125)
&gt; E/AndroidRuntime(  559):  at
&gt; android.app.ActivityThread$H.handleMessage(ActivityThread.java:2037)
&gt; E/AndroidRuntime(  559):  at
&gt; android.os.Handler.dispatchMessage(Handler.java:99) E/AndroidRuntime( 
&gt; 559):     at android.os.Looper.loop(Looper.java:123) E/AndroidRuntime( 
&gt; 559):     at android.app.ActivityThread.main(ActivityThread.java:4627)
&gt; E/AndroidRuntime(  559):  at
&gt; java.lang.reflect.Method.invokeNative(Native Method) E/AndroidRuntime(
&gt; 559):     at java.lang.reflect.Method.invoke(Method.java:521)
&gt; E/AndroidRuntime(  559):  at
&gt; com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
&gt; E/AndroidRuntime(  559):  at
&gt; com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
&gt; E/AndroidRuntime(  559):  at dalvik.system.NativeStart.main(Native
&gt; Method) E/AndroidRuntime(  559): Caused by:
&gt; java.lang.NullPointerException E/AndroidRuntime(  559):   at
&gt; xx.xx.xxxxxxxxxxxxxxxx.xxxxxxxxxxxxxx.xxxx.onDestroy(XXXXXXXXXXX.java:565)
&gt; E/AndroidRuntime(  559):  at
&gt; android.app.ActivityThread.performDestroyActivity(ActivityThread.java:3642)
&gt; E/AndroidRuntime(  559):  ... 12 more
</code></pre>

<p>The problem I have is in the very last line of the logcat output:</p>

<pre><code>&gt; E/AndroidRuntime( 559): ... 12 more
</code></pre>

<p>How do I get access to the '12 more'? I assume this will point to the line of my code that is causing the problem.</p>

<p>Thanks</p>
