Hi, I have 2 activities named firstActivity.java,secondActivity.java. When I click a button in firstActivity, I am calling secondActivity .But when I return back from secondActivity ,based on the result I need to skip some steps in firstactivity which are performed in its onCreate() method. While coming back from secondActivity I used Bundle to put data which I gave as input to Intent, I accessed that data in onCreate() of first activity . But while I started activity application was crashing showing as NullPointerException in the line where I am accessing data of 2nd activity. the reason I think is when the application is launched for the first time there will not be any values in Bundle so I am getting nullpointer exception.so, can anyone help me in sorting out this issue?
Thanks in Advance,