title: Android tesseract data path
body: <p>So I'm following tutorials and below is my code. I'm stuck trying to figure out what I need to with the data path.  Does anyone have an example or suggestion on how to take the bitmap photo I took and get it loaded into tesseract to analyze?  All help appreciated.</p>
  
  <pre><code>package com.example.cameraocr;
  
  import java.io.File;
  
  import com.googlecode.tesseract.android.TessBaseAPI;
  
  import android.os.Bundle;
  import android.os.Environment;
  import android.app.Activity;
  import android.view.Menu;
  import android.content.Intent;
  import android.graphics.Bitmap;
  import android.os.Bundle;
  import android.view.View;
  import android.widget.Button;
  import android.widget.ImageView;
  
  public class MainActivity extends Activity {
  private static final int CAMERA_REQUEST = 1888; 
      private static ImageView imageView;
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
      this.imageView = (ImageView)this.findViewById(R.id.imageView1);
      Button photoButton = (Button) this.findViewById(R.id.button1);
      photoButton.setOnClickListener(new View.OnClickListener() {
  
          @Override
          public void onClick(View v) {
              Intent cameraIntent = new     Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE); 
              startActivityForResult(cameraIntent, CAMERA_REQUEST); 
          }
      });
  }
  
  protected void onActivityResult(int requestCode, int resultCode, Intent data) {  
      if (requestCode == CAMERA_REQUEST &amp;&amp; resultCode == RESULT_OK) {  
          Bitmap photo = (Bitmap) data.getExtras().get("data"); 
          imageView.setImageBitmap(photo);
      }  
  } 
  protected static void identifyunicode() {
      // DATA_PATH = Path to the storage
      // lang for which the language data exists, usually "eng"
  
      File myDir = getExternalFilesDir(Environment.MEDIA_MOUNTED); 
      TessBaseAPI baseApi = new TessBaseAPI(); 
      baseApi.init(myDir, "eng");
  }
  }
  </code></pre>