Changing a TextView in another class from a Service
<p>I have two classes, one is a standard activity, the other a service. I would like the service to update a TextView (via <code>.setText</code>) of the Activity on certain events that happen within the service. </p>

<p>I've tried to achieve this by programming something like a setter-method inside the Activity-Class, but TextViews don't accept a <code>static</code>-reference, and when I try invoking an instance of the Activity-class instead (via <code>MyActivityClassName aVariable = new MyActivityClassName();</code>), I get a NullPointer Exception, even though the View in questions is visible at the time of the call.</p>

<p>Could anyone tell me what I'm doing wrong :-)? It is probably more of a basic Java question than an Android-one, but since it might have to do with the nature of Android-services, I've still added the android-tag.</p>

<p>Thanks for your help!</p>
