java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare()
at android.os.Handler.
at android.os.Handler.
at android.widget.Toast$TN$2.
at android.widget.Toast$TN.
at android.widget.Toast.
at android.widget.Toast.makeText(Toast.java:262)
at com.example.zzapp.MainActivity$2.onPictureTaken(MainActivity.java:129)
at com.wonderkiln.camerakit.CameraView$CameraListenerMiddleWare.onPictureTaken(CameraView.java:524)
at com.wonderkiln.camerakit.Camera1$3$1.onStillProcessed(Camera1.java:308)
at com.wonderkiln.camerakit.ProcessStillTask.run(ProcessStillTask.java:47)
at java.lang.Thread.run(Thread.java:760)
This error is not related to the library, I bet you are not using Toast properly, check your implementation. Don't call it from worker thread
You are right
no problem, please close the issue if its resolved for you
thx
Use this its work for me ....
runOnUiThread(new Runnable() {
public void run() {
Toast.makeText(getApplicationContext(), "Status = " + message , Toast.LENGTH_LONG).show();
}
});
Use this its work for me ....
runOnUiThread(new Runnable() {
public void run() {
Toast.makeText(getApplicationContext(), "Status = " + message , Toast.LENGTH_LONG).show();
}
});
thanx this works for me
Use this its work for me ....
runOnUiThread(new Runnable() {
public void run() {
Toast.makeText(getApplicationContext(), "Status = " + message , Toast.LENGTH_LONG).show();
}
});
You saved my day, thank you a lot!
Use this its work for me ....
runOnUiThread(new Runnable() {
public void run() {
Toast.makeText(getApplicationContext(), "Status = " + message , Toast.LENGTH_LONG).show();
}
});
Most helpful comment
Use this its work for me ....
runOnUiThread(new Runnable() {
public void run() {
Toast.makeText(getApplicationContext(), "Status = " + message , Toast.LENGTH_LONG).show();
}
});