Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

activity finish automatically. #15

Closed
GoogleCodeExporter opened this issue Mar 31, 2016 · 2 comments
Closed

activity finish automatically. #15

GoogleCodeExporter opened this issue Mar 31, 2016 · 2 comments

Comments

@GoogleCodeExporter
Copy link

hello,

i i have task to capture test from image so that i decide  to  use tesseract 
lib,

i have successfully build the library project. and create on another android 
project name demoOcr in that i add library project as 
tesseract-android-tools-1.00.

following is my activity class.

<code>
public class OcrDemoActivity extends Activity {

    private TextView txtData = null;

    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        txtData = (TextView)findViewById(R.id.txtdata);

        File sdcard = Environment.getExternalStorageDirectory();
        File from = new File(sdcard, "Pic.jpg");
        TessBaseAPI api = new TessBaseAPI();
        api.init("/mnt/sdcard/tessdata/", "eng");
        api.setImage(from);
        txtData.setText(api.getUTF8Text());

    }

</code>

i have add tessdata in my sdcard as well as Pic.jpg

but the now probleme is when i run this project in my samsung galaxy tab hust 
activity load and finish automatically.


i have seen that on logcat that given error that request time failed: 
Java.Net.socketExcepton : Address family not suport by Protocol.

Please Help me out.

What is missing?

Regards.
Milind Kanani

Original issue reported on code.google.com by milind.v...@gmail.com on 9 Sep 2011 at 6:19

@GoogleCodeExporter
Copy link
Author

Please provide logcat output for your activity.

Original comment by alanv@google.com on 11 Sep 2012 at 8:28

@GoogleCodeExporter
Copy link
Author

Original comment by alanv@google.com on 14 Sep 2012 at 6:38

  • Changed state: Invalid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant