Android: Error while passing int from one activity to another
<p>I am reading my DB in <code>Activity A</code> - Fetching <code>String</code>, <code>int</code>, <code>String</code>.
I am passing this to <code>Activity B</code> and want to display it in 3 Text fields
The <code>String</code> values get displayed properly, but the <code>int</code> gives me this error </p>

<pre><code>01-03 15:39:48.252: E/ERROR(980): android.content.res.Resources$NotFoundException: String resource ID #0x1f4
</code></pre>

<p>My code</p>

<p>Activity A</p>

<pre><code>Intent myintent2 = new Intent(MoneySummaryPage.this,EnterBankDetails.class);
myintent2.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
myintent2.putExtra("bank", updateBank);
myintent2.putExtra("amount", updateAmt);
myintent2.putExtra("Currency", updateCur);
myintent2.putExtra("constant", "1");
startActivity(myintent2);
</code></pre>

<p>Activity B</p>

<pre><code>    BankName =      (EditText)findViewById(R.id.bankNameLabel);
    BalanceAmount = (EditText)findViewById(R.id.balanceLabel);
    currencySpin = (Spinner)findViewById(R.id.currencySpinner);

    constantpass = getIntent().getExtras().getString("constant");

    BankName.setText(getIntent().getExtras().getString("bank"));
    BalanceAmount.setText(getIntent().getIntExtra("amount", 0));
</code></pre>

<p>The <code>BalanceAmount</code> is the <code>Integer</code> field and I am getting blank values there.
Also, my third <code>String</code> is to be populated in the Spinner? Can someone tell me the code for populating that?</p>

<p>Thanks!</p>
