From Activity1
Intent intent = new Intent(this,myActivity2.class); Bundle bundle = new Bundle(); bundle.putString(“myValue“, myValue); intent.putExtras(bundle); navigation.this.startActivity(intent);
Bundle bundle = getIntent().getExtras(); act2MyValue= bundle.getString(“myValue“); //Now is your application powered to share variables between two different activities.
0 comments:
Post a Comment