在我的應用程序中,我有兩個活動OpenAccount和BillAccount。在按鈕上單擊OpenAccount我們正在導航到BillAccount。從BillAccount acticity再次回到之前的活動OpenAccount。在這裏導航回來我想在OpenAccount中的一些變量值。 我試圖通過從另一頁獲取值
intent.putExtra("trnxnId", trnxnId)
和OpenAccount
intent.getExtras().getString("trnxnId");
得到的值,但它自那時以來,OpenAccount的第一負載送禮者錯誤它沒有意圖這個變量的值。
請幫助我們如何在這種情況下獲得值?
[BillAccount Activity-- intent.putExtra(「trnxnId」,trnxnId);]&[OpenAcount Activity - Intent.getExtras()。getString(「trnxnId」);],但在加載OpenAccount時,它找不到「trnxnId」的值,這裏給出錯誤。 – 2011-03-15 07:20:24
可以ü發表您的完整代碼 – 2011-03-15 13:03:27