I have a main class;
ClientPlayer extends Activity {
and a service
LotteryServer extends Service implements Runnable {
You can get the instance of your Activity, pass it to the service, and use that instead of the class name.
then you can use:
yourActivity.runOnUiThread( ...