Intent not passing my data
<p>I'm trying to send 2 parameter from one activity to another,but for some reason only one of the parameter is passed. what could it be?</p>

<p>Sending Activity:</p>

<pre><code>showActivity(OrderActivity.class, new Pair("CUSTOMER_ID", customerId), new Pair("CUSTOMER_TYPE", customerType));
</code></pre>

<p>Receiving Activity : The customer id is showing 0 but the type data is got </p>

<pre><code>Bundle extras = getIntent().getExtras();

    long customerId = extras.getLong("CUSTOMER_ID");
    int customerType = extras.getInt("CUSTOMER_TYPE");
    Log.d("===customer ", " id : " + customerId + "  type : " + customerType);
</code></pre>

<p>the <code>showActivity</code> looks like this</p>

<pre><code>protected void showActivity(Class&lt;? extends BaseKaizenActivity&gt; clazz, Pair&lt;String, Object&gt; ... parameters) {
    Intent intent = new Intent(this, clazz);
    if (parameters != null) {
        for (Pair&lt;String, Object&gt; pair : parameters) {
            if (pair.second instanceof Integer) {
                intent.putExtra(pair.first, (Integer)pair.second);  
            }
            else if (pair.second instanceof Parcelable) {
                intent.putExtra(pair.first, (Parcelable)pair.second);
            }
        }
    }
    startActivity(intent);
}
</code></pre>
