How Parcelable work in Android? Null Pointer Exception
<p>I have wriiten following code to pass the value to activity</p>

<pre><code>  Intent intent = new Intent(DetailActivity.this,
                        MyMapActivity.class);
        intent.putExtra("tourguide.intent.extra.isbusiness", false);

        startActivity(intent);
</code></pre>

<p>And in the receiving end i have following code</p>

<pre><code>boolean IsBusiness = false;
    IsBusiness = getIntent().getParcelableExtra(
        "tourguide.intent.extra.isbusiness");
</code></pre>

<p>I am getting NullPointerException error </p>

<p>I even tried with CASTING as follow</p>

<pre><code> IsBusiness = (boolean)getIntent().getParcelableExtra(
        "tourguide.intent.extra.isbusiness");
</code></pre>

<p>But no use. :(</p>
