如提,我快崩潰惹
我照了許多網站上面的教學如實去做,但跑到讀檔的地方就會跳出來失敗
這裡:
BufferedReader br = new BufferedReader(new FileReader(file));
但我不曉得可能是哪裡有問題,所以先把檔案丟上來
package ericz7000nolan.my_new_android_application;
import android.content.Intent;
import android.net.Uri;
import android.os.Environment;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
import com.google.android.gms.appindexing.Action;
import com.google.android.gms.appindexing.AppIndex;
import com.google.android.gms.appindexing.Thing;
import com.google.android.gms.common.api.GoogleApiClient;
import java.io.*;
import static ericz7000nolan.my_new_android_application.R.id.show_file;
public class MYFIRSTAPP extends AppCompatActivity {
public final static String EXTRA_MESSAGE =
"ericz7000nolan.myfirstapp.MESSAGE";
/**
* ATTENTION: This was auto-generated to implement the App Indexing API.
* See https://g.co/AppIndexing/AndroidStudio for more information.
*/
private GoogleApiClient client;
//