点击(此处)折叠或打开package com.errovenus.eclipse;import java.io.IOException;import java.io.InputStream;import android.support.v7.app.ActionBarActivity;import android.os.Bundle;public class MainActivity extends ActionBarActivity{ /// @SuppressWarnings("unused") private String flag = ""; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); flag = "test"; } /// /*public void contentNote() { }*/ /// // public void contentNote() // { // // } /// @SuppressWarnings("unused") public boolean writeFile() { /// Ctrl+d - 删除当前行 InputStream is = new InputStream() { @Override public int read() throws IOException { // TODO Auto-generated method stub return 0; } }; return true; } /// @SuppressWarnings("unused") public boolean readFile() { /// Ctrl+d - 删除当前行 InputStream is = new InputStream() { @Override public int read() throws IOException { // TODO Auto-generated method stub return 0; } }; return true; } /// /// public boolean readBnFile() { /// Ctrl+d - 删除当前行 InputStream is = new InputStream() { @Override public int read() throws IOException { // TODO Auto-generated method stub return 0; } }; /// try { is.read(); is.close(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } flag = "ok"; return true; }} 09-12 14:43