Java tutorial
//package com.java2s; import android.os.Message; public class Main { public static Message getMessage(Object obj, int what) { Message message = new Message(); message.obj = obj; message.what = what; return message; } }