i am having many activities like settings,game,home etc.i want to accept some values from user in settings page.when i click on the done button all these values have to b stored in variables.at the same time i am going back to home page.from there i am going to game class.in that i want to get the previously stored values from settings page.i know using bundle is better to do this task.but i dnt knw how to use that for more than 1 value.plz help me.given below is my code snippet
done.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
// TODO Auto-generated method stub
namevalue=name.getText().toString();
overvalue=over.getText().toString();
audiostatus=audio.getText().toString();
Intent intent=new Intent(Settings.this,home.class);
Bundle bundle = new Bundle();
bundle.putString( "namevalue",namevalue);
intent.putExtras(bundle);
startActivity(intent);
}
});