I have a TabActivity with two tabs-activities — FirstActivity and SecondActivity.
How can I access to any element (for example, change TextView‘s text) on FirstActivity from SecondActivity?
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.
You can’t access them directly. You either inherit them from the same class, and use the parent’s class methods to communicate between them, but I am recommending to use a broadcast from the sender and a broadcastreceiver on the receiver activity. You can use putExtra to transfer details with the intent.