Android using Bundle for sharing variables
Sharing variables between Activities is quite important point during development time of your Application. This Example suppose Activity1 from where you run up other Activity2 based on your selection from submenu. You gonna share variable myValue
Intent intent = new Intent(this,myActivity2.class);
Bundle bundle = new Bundle();
Bundle bundle = getIntent().getExtras();
Now is your application powered to share variables between two different activities.