android - runOnUiThread in Presentation class -


how can update textview in presentation class if runonuithread not available in class.

here example

private final class demopresentation extends presentation {      public demopresentation(context context, display display) {         super(context, display);     }      @override     protected void oncreate(bundle savedinstancestate) {         // sure call super class.         super.oncreate(savedinstancestate);          // inflate layout.         setcontentview(r.layout.presentation_activity);     }      private void timermethod()     {         getac.runonuithread(timer_tick);     } 

call post() on textview, passing in same runnable runonuithread().


Comments

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -