I have two different activities in my project.I intend to pass data from one activity to another. (As per user interface, I select an item from The spinner in one activity and send it as text msg.) The coding for text msg is done in another activity i.e the second activity.
I m successfully able to select the desired item from the Spinner but am not able to pass it as text message . I have tried using
Bundle b=new Bundle();
b.putString("Message",message );
intent.putExtras(b);
startActivity(intent);
to select the item from first activity. It functions well BUT HOW DO I CAPTURE/RECEIVE THIS In the second activity that will send it as a text message.
b = getIntent().getExtras();
String s=b.getString("Message");
The above mentioned code does not function and force closes the application.