Set TextView from Service

Put your problem here if it does not fit any of the other categories.

Set TextView from Service

Postby CodeRed » Sat Jun 05, 2010 1:34 pm

Hi
For example i have 2 classes: Activity.java and Service.java.
In Activity.java I have layout main.xml and from Service.java I want to set in this layout the value of TextView. How to do this?
CodeRed
Freshman
Freshman
 
Posts: 2
Joined: Sat Jun 05, 2010 10:54 am

Top

Re: Set TextView from Service

Postby anarche » Sun Jun 06, 2010 10:25 am

Give the Activity as a parameter to your service, then provide methods to access the appropriate TextView
anarche
Master Developer
Master Developer
 
Posts: 369
Joined: Sun Apr 11, 2010 5:21 am

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: Exabot [Bot], Yahoo [Bot] and 39 guests