Questions tagged «ui-thread»

27
Looper.prepare () ලෙස හැඳින්වූ නූල් තුළ හසුරුවන්නෙකු නිර්මාණය කළ නොහැක.
පහත ව්‍යතිරේකයේ අර්ථය කුමක්ද; මම එය නිවැරදි කරන්නේ කෙසේද? කේතය මෙයයි: Toast toast = Toast.makeText(mContext, "Something", Toast.LENGTH_SHORT); ව්යතිරේකය මෙයයි: java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare() at android.os.Handler.<init>(Handler.java:121) at android.widget.Toast.<init>(Toast.java:68) at android.widget.Toast.makeText(Toast.java:231)
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.