Joshua Aragon Joshua Aragon - 1 year ago 122
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

Answer Source

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. :)

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download