Android - switching between landscape and portrait mode makes Intent lose values
<p>I am using Intents to switch between activities in my Android app. I am putting data in the Intent for use in the next activity. When I switch the phone between landscape and portrait modes, the values passed from the intent are lost and I get a NullPointerException.</p>

<p>Can someone please tell me what could be wrong.</p>

<p>There's a lot of code to post it entirely. But if someone needs to look at specific parts of code, I can post it here.</p>

<p><strong>Edit</strong><br/>
I solved the issue of state not being saved. But another problem I faced is that none of the buttons on the screen work after the orientation has been changed. On button press, I get this warning in LogCat</p>

<pre><code>02-25 23:07:49.190: WARN/WindowManager(58): No window to dispatch pointer action 0
</code></pre>

<p>Please help.</p>
