Skip to content Skip to sidebar Skip to footer

Listener Method (interface In Service) In My Activity Doesn't Want To Display A Simple Message

Good day to you all. I'm experiencing quite an issue right now with my simple Android application. The 2 main elements I have are a bound Service and a main Activity. I want the Ac

Solution 1:

public void handleNewElement(MyService sender) {
    Log.d("NEW_ELEM","new element found");
    runOnUiThread(new Runnable(){
        public void run(){
            message_box.setText("new element found");
        }
    });
}

Post a Comment for "Listener Method (interface In Service) In My Activity Doesn't Want To Display A Simple Message"