Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import java.io.IOException;

import java.io.OutputStream;
import android.content.Context;

public class Main {
    private static Context context;

    public static void spitFile(String outputfile, byte[] b) throws IOException {
        OutputStream os = context.openFileOutput(outputfile, Context.MODE_PRIVATE);
        os.write(b);
        os.close();
    }
}