transfer bitmap between two activities in Kotlin
问题 There are some answers using java in stackoverflow but i am unable to convert it into kotlin code. I am new to kotlin. Please tell me how to transfer bitmap data from one activity to another using Intent 回答1: You need to pass the bitmap as an extra argument to the intent while starting the activity. val intent = new Intent(this, NewActivity::class.java) intent.putExtra("BitmapImage", bitmap) startActivity(intent); and retrieve it as: val bitmap = this.intent?.getParcelableExtra("BitmapImage")