In my code I have a disabled button in the activity 'A'
Can I enable that button on the activity 'A' from an activity 'B'?
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Normally, you cannot.
If you are invoking activity A from activity B, then you can pass information on whether to enable the button via the intent.
If A invoked B and you need to do something back in A based on user’s actions in B, then you can invoke B with
startActivityForResultand send the result back from B to A; then inonActivityResultof your activity A you can enable/disable the button based on what B has passed back.