How can I launch an activity from the same activity under some activity using the menu item? Example: - I have an activity, which can be launched in two conditions depending on the value boolean variable 'flag'. The value of this flag may be "true" or "false" if the flag is "false" then the menu option should be disabled for this activity in the icon / text. This means that I should not be able to start activity. And if the flag is "true" then the menu option should be enabled for this activity and I should be able to launch the same activity using the menu item. (Note: The activity of both cases should have the same content, but only the page header will be different.)
Thanks,
If you relate on your activity behavior sigle boolean - it will handle passes and handle matters for Botske. Check out this question about how to pass data for activity.
Comments
Post a Comment