Can I know what is the error when I debug my application? Below is my coding and the tessdata is saved inside my phone.
public class testingtesting extends Activity {
private static final String data_path = "/mnt/sdcard/tessdata";
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// setContentView(R.layout.image);
ImageView a = (ImageView) findViewById (R.id.testingtesingt);
Bitmap aa = grayScale.bitmap_in_binarize;
// a.setImageBitmap(aa);
TessBaseAPI baseApi = new TessBaseAPI();
baseApi.setDebug(true);
System.out.println("GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG");
//error
// File myDir = getExternalFilesDir(Environment.DIRECTORY_DOWNLOADS);
baseApi.init(data_path, "eng");
//error
baseApi.setImage(aa);
System.out.println("adwdwawdada");
String recognizedText = baseApi.getUTF8Text();
baseApi.end();
System.out.println("cimcaoioievfoaemmov");
Intent intent = new Intent(testingtesting.this, result.class);
intent.putExtra("title_input", recognizedText);
startActivity(intent);
}