I have the service that runs itself (service starts automatically).
And I have the Activity.
In this Activity button starts the method DoIt()
:
Button.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
DoIt();
}
});
Some data is written to the variable data
in my service when I push the button and method works.
I can see data
in Log:
public String getMessage(String data) {
...
Log.d(TAG, "Our Data: " + data);
return date;
...
But how can I see this data in my Activity (under the button) by pushing the button?
Thanks.