// Path: app/src/main/java/com/tos_bot/board/BoardManager.java
// public class BoardManager {
// 	static String _Path = "";
// 
// 	private BoardManager() {
// 
// 	}
// 
// 	public static int[][] getBallArray() throws NotInTosException {
// 		IBoardProcesser bp = new TosBoardProcesser();
// 		return bp.getBoardOrbArrary();
// 	}
// 	public static void setOrbHash(){
// 		TosBoardProcesser bp = new TosBoardProcesser();
// 		ConfigData.baseOrbHash = bp.getBaseOrbFingerPrintMap();
// 	}
// 
// }


import com.tos_bot.board.BoardManager;
import android.app.Activity;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.os.Environment;
import android.util.Log;
import android.view.Menu;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
		getMenuInflater().inflate(R.menu.main, menu);
		return true;
	}

	private void loadSetting() {
		SharedPreferences settings = getSharedPreferences("Config", 0);
		oneOrbWitdh.setText(settings.getInt("oneOrbWitdh", 0)+"");
		posX.setText(settings.getInt("boardStartX", 0)+"");
		posY.setText(settings.getInt("boardStartY", 0)+"");

	}

	private void saveSetting() {
		SharedPreferences settings = getSharedPreferences("Config", 0);
		settings.edit()
				.putInt("oneOrbWitdh",
						Integer.parseInt(oneOrbWitdh.getText().toString()))
				.commit();
		settings.edit()
				.putInt("boardStartX",
						Integer.parseInt(posX.getText().toString())).commit();
		settings.edit()
				.putInt("boardStartY",
						Integer.parseInt(posY.getText().toString())).commit();

	}
	private String getBoardFromPic() {
		Log.i("Bot:", "Use Data Frome Pic");
		int[][] orbArray;
		try {
// Path: app/src/main/java/com/tos_bot/board/BoardManager.java
// public class BoardManager {
// 	static String _Path = "";
// 
// 	private BoardManager() {
// 
// 	}
// 
// 	public static int[][] getBallArray() throws NotInTosException {
// 		IBoardProcesser bp = new TosBoardProcesser();
// 		return bp.getBoardOrbArrary();
// 	}
// 	public static void setOrbHash(){
// 		TosBoardProcesser bp = new TosBoardProcesser();
// 		ConfigData.baseOrbHash = bp.getBaseOrbFingerPrintMap();
// 	}
// 
// }


// Path: app/src/main/java/com/tos_bot/ImageSettingActivity.java
import com.tos_bot.board.BoardManager;
import android.app.Activity;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.os.Environment;
import android.util.Log;
import android.view.Menu;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;

		getMenuInflater().inflate(R.menu.main, menu);
		return true;
	}

	private void loadSetting() {
		SharedPreferences settings = getSharedPreferences("Config", 0);
		oneOrbWitdh.setText(settings.getInt("oneOrbWitdh", 0)+"");
		posX.setText(settings.getInt("boardStartX", 0)+"");
		posY.setText(settings.getInt("boardStartY", 0)+"");

	}

	private void saveSetting() {
		SharedPreferences settings = getSharedPreferences("Config", 0);
		settings.edit()
				.putInt("oneOrbWitdh",
						Integer.parseInt(oneOrbWitdh.getText().toString()))
				.commit();
		settings.edit()
				.putInt("boardStartX",
						Integer.parseInt(posX.getText().toString())).commit();
		settings.edit()
				.putInt("boardStartY",
						Integer.parseInt(posY.getText().toString())).commit();

	}
	private String getBoardFromPic() {
		Log.i("Bot:", "Use Data Frome Pic");
		int[][] orbArray;
		try {
			orbArray = BoardManager.getBallArray();