onCreate(Bundle State)
{
TextView label = new TextView(this);
lable.setText("My new Label");
}
I read that the TextView has a reference to the Activity.
What does it mean for something to have a reference on something else?
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.
From practical point of view it means you are not advised to keep your TextView in a static variable somewhere because that way you will be keeping the whole Activity with it.