Android IDE (AIDE) Support Forum

I need help accessing a layout from another Activity

Hi please I have an Activity A with a Layout A attached to it, pls how can I access an item in the layout from Activity B

It is not a good idea trying to pass layout objects between activities. If one of them gets deleted(because of low memory for example). A better idea is to pass objects like intents and bundles, and to use functions like startActivityForResult. In essence, we must not rely on the existence of an UI object after we leave his Activity, he will be replaced or deleted