I published my first app on Android Market today and in the developer console I got an error report sent by some user. It is in Java and this is what it says:
Exception class: android.view.ViewRoot$CalledFromWrongThreadException
Source method: ViewRoot.checkThread()
Any idea what this means in B4A terms?
Exception class: android.view.ViewRoot$CalledFromWrongThreadException
Source method: ViewRoot.checkThread()
B4X:
java.lang.RuntimeException: An error occured while executing doInBackground()
at android.os.AsyncTask$3.done(AsyncTask.java:200)
at java.util.concurrent.FutureTask$Sync.innerSetException(FutureTask.java:273)
at java.util.concurrent.FutureTask.setException(FutureTask.java:124)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:307)
at java.util.concurrent.FutureTask.run(FutureTask.java:137)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1068)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:561)
at java.lang.Thread.run(Thread.java:1096)
Caused by: android.view.ViewRoot$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.
at android.view.ViewRoot.checkThread(ViewRoot.java:2811)
at android.view.ViewRoot.requestLayout(ViewRoot.java:594)
at android.view.View.requestLayout(View.java:8180)
at android.view.View.requestLayout(View.java:8180)
at android.view.View.requestLayout(View.java:8180)
at android.view.View.requestLayout(View.java:8180)
at android.view.View.requestLayout(View.java:8180)
at android.widget.RelativeLayout.requestLayout(RelativeLayout.java:257)
at android.view.View.requestLayout(View.java:8180)
at android.view.View.setFlags(View.java:4554)
at android.view.View.setVisibility(View.java:3083)
at c.a(Unknown Source)
at c.doInBackground(Unknown Source)
at android.os.AsyncTask$2.call(AsyncTask.java:185)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
Any idea what this means in B4A terms?