在我的Android應用程序中,我想在活動之間傳輸數據;提到了FirstActivity.class和SecondActivity.class。但在我的FirstActivity中顯示的是NullPointerException
。你能告訴我我班有什麼問題嗎?Android Bundle NullPointer
FirstActivity.class:
Bundle bundle = getIntent().getExtras();
fingerPrintID = bundle.getString("ThumbInfo");
SecondActivity.class:
Bundle bundle = new Bundle();
bundle.putString("ThumbInfo", FingerImageData.toString());
Intent enroll=new Intent(First.this,Enroll.class);
enroll.putExtras(bundle);
startActivity(enroll);
11個問題,沒有被接受的答案? – slayton