I have 2 actions named firstActivity.java, secondActivity.java. When I click the button in firstActivity, I call secondActivity. But when I return from secondActivity, based on the result, I need to skip some of the steps in firstactivity that are executed in its onCreate () method. Returning from secondActivity, I used the Bundle to place the data that I gave as input to the Intent, I accessed this data in onCreate () of the first activity. But while I started working, the application worked, showing as NullPointerException in the line where I access the data of the 2nd action. the reason I think when the application starts for the first time there will be no values in the Bundle, so I get the nullpointer.so exception, can anyone help me sort this problem?
Thanks Advance,
source
share