Please have the Service tell the Activity to update its UI, via a Messenger, a broadcast Intent, etc.
On Fri, Jan 27, 2012 at 2:24 AM, man kit lai <[email protected]> wrote: > public class Mservice1 extends Service { > > private Handler objHandler = new Handler(); > private TextView view_result; > private String strRet=""; > public int intUpdateSecond = 5000; > > private Runnable mTasks= new Runnable() > { > public void run() > { > view_result.setText("ABC"); > // It is not work > strRet = getMethod(uri,"big5"); > objHandler.postDelayed(mTasks,intUpdateSecond); > > } > > > }; > > > It cannot show anything on Main ActivityTextView view_result. > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 4.1 Available! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

