Code example for Message

Methods: sendToTarget

0
    transient private Handler mHandler = new Handler() {
        @Override 
        public void handleMessage(Message msg) { 
            if (msg.what == MSG_DOCUMENT_AS_TEXT) { 
                mActualResult = (String)msg.obj; 
                mResultObtainedMsg.sendToTarget(); 
            } 
        } 
    }; 
 
    public TextResult(String relativePath) {
        mRelativePath = relativePath;
    } 
 
    public void setDumpChildFramesAsText(boolean dumpChildFramesAsText) {
        mDumpChildFramesAsText = dumpChildFramesAsText;
    } 
 
    /** 
     * Used to recreate the Result when received by the service. 
     *