Android Bundle usage
问题 Is it possible to use Android Bundle to create and putString() in Activity then getString() in Service on button click? If not what can i do? Example MainActivity.kt val bundle = Bundle() bundle.putString("MyString", "Message") val mesg = Message.obtain(null, MyService.SEND_MESSAGE_FLAG) mesg.obj = bundle try { myService!!.send(mesg) } catch (e: RemoteException) { } Service override fun handleMessage(msg: Message) { when (msg.what) { SEND_MESSAGE_FLAG -> { val data = msg.data val dataString =