I have this parent tab from which I want to send a boolean value to one of my tabs. How do I do it? I this the following would work, but obviously it doesn’t!
Here’s the parent tab (IncludeTabActivity.java):
Intent i = getIntent();
i.putExtra("FromMyActivity", fromLogin);
TabActivity ta = (TabActivity) IncludeTabActivity.this;
ta.getTabHost().setCurrentTab(0);
Here’s the child tab:
Bundle extras = getIntent().getExtras();
boolean fromLogin = extras.getBoolean("FromMyActivity");
How could this be done?
Try:
then to get it use