SyntaxFix
Write A Post
Hire A Developer
Questions
first call Looper.prepare() and then call Toast.makeText().show() last call Looper.loop() like:
Looper.prepare()
Toast.makeText().show()
Looper.loop()
Looper.prepare() // to be able to make toast Toast.makeText(context, "not connected", Toast.LENGTH_LONG).show() Looper.loop()