• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps TextView stops working

Gyannea

Lurker
I create a TextView object in the standard way in the onCreate()

viewTextOutput = (TextView) findViewById(R.id.textView_TextOutput);

where 'viewTextOutput' is a class global.

I am able to write text to the screen using append. Then I instatiate another object:

new BaseManager(viewTextOutput)

In the BaseManager constructor I can still write to the screen using append. In the constructor I also set a class global for BaseManager for the TextView object

viewText = viewTextOutput;

so I can write to the screen in other methods in this class.

But when I try and append text to this TextView object in any of the other methods in the BaseManager class, the text is not displayed and there is no error. The only thing I can think is happening is that it has gone out of scope but that should cause an error.

After three days of working on this problem I am still nowhere. The rest of 'BaseManager' is doing what it is supposed to do but no text is being displayed to the screen.

How can I continue to write to this TextView object in BaseManager?
Right now I can only write text while in the constructor of BaseManager.

I must be doing something really stupid since I can find no other similar complaints in these forums.
 
Back
Top Bottom