Joshua Aragon Joshua Aragon - 2 months ago 7x
Java Question

How to update a TextView from another

I am new to android/java programming. I have two class, one is an activity and other normal class. In my activity class contains TextView. Can i update my TextView of one class from a editText(that the user enters) in a another class. I tried with random code, but it fails. Please help I've been looking forever


You might update the TextView from wherever in the java code by referring to the


Some what like this:

TextView textViewName = (TextView) findViewById(;

Here methodName() refers to the Public methods listed here

Hope it helps. :)