retrieve Message String from Os Message - Android Android OS

Android examples for Android OS:Message

Description

retrieve Message String from Os Message

Demo Code


//package com.java2s;

import android.os.Message;

public class Main {
    public static String retrieveMessageStr(Message msg) {
        return (String) msg.getData().get("MSG");
    }/*from w w  w .  j  a  va2 s  .co  m*/
}

Related Tutorials