Back to project page tetris-android.
The source code is released under:
MIT License
If you think the Android project tetris-android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.badlogic.androidgames.framework.impl; // w w w.j a va 2s . c o m import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import android.content.Context; import com.badlogic.androidgames.framework.FileIOInternal; public class AndroidFileIOInternal implements FileIOInternal { Context context; public AndroidFileIOInternal(Context context){ this.context = context; } @Override public InputStream readFile(String fileName) throws IOException { return context.openFileInput(fileName); } @Override public OutputStream writeFile(String fileName) throws IOException { return context.openFileOutput(fileName, Context.MODE_PRIVATE); } }