ERROR: thread connection failed

I get the following runtime error.

ERROR: thread attach failed 

My project contains two classes in src as a parry:

  • Action class
  • class video_thread

I created an object for this video_thread class in the Activity class, made it Daemon, and started it like this:

 video_thread v=new video_thread(); video_thraed.setDaemon(true); video_thread.start(); 

At runtime, I find this error in logcat.

0
source share
1 answer

I believe this is the reason because the application closes while the thread is trying to create. See http://groups.google.com/group/android-developers/browse_thread/thread/addd2a507ea8b166

You should try to find out why your application exits while the thread is being created.

+1
source

Source: https://habr.com/ru/post/1447287/


All Articles