create Result Response Message - Android Android OS

Android examples for Android OS:Message

Description

create Result Response Message

Demo Code


import android.os.Message;

public class Main{
    public static Message createResultResponseMessage(boolean result) {
        Message message = Message.obtain();
        message.what = ConnectorService.RESPONSE_SENT;
        message.obj = result;//from  w w w. j  ava 2s  .  c  om
        return message;
    }
}

Related Tutorials