Kotlin version of Wifi AP
##To Replace Log.e with Toast
###Here are the Instructions
-
//In SendCommand class you will change it to accept context
class SendCommand(val mcontext: Context): AsyncTask<String?, Void?, Void?>()
-
//when you create SendCommand in Main Acitivt pass the context
SendCommand(this).execute(editText!!.text.toString())
-
//now you already have context in SendCommand Class so you can call Toast
Toast.makeText(mcontext, "Hello Javatpoint",Toast.LENGTH_SHORT).show()