I am facing some problems when I\'m using Toast inside run method of Thread class.
My error Logcat
09-16 11:42:38.140: E/AndroidRuntime(1446): in wri
You can not use or access any UI elements inside a non UI thread. If you want to see some messages about your thread then you may use AsyncTask and use the UI stuffs inside preExecute method.because the pre and postExecute of AsyncTask are run on UI thread.
If you want to do like so then see Problem with Toast in AsyncTask method call .
If you are excepting a small and easy way, then just use LOG class like:
Log.d("String Key", "the value you want to see");
If you want some ideas about log then please see Android Log.v(), Log.d(), Log.i(), Log.w(), Log.e() - When to use each one?
Hope these are sufficient for your question.