Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.os.Bundle;
import android.os.Message;

public class Main {
    public static Message getMessage(int statusCode, byte[] responseBody) {
        Message message = new Message();
        message.what = statusCode;

        Bundle bundle = new Bundle(1);
        bundle.putByteArray("response", responseBody);
        message.setData(bundle);
        return message;
    }
}