Android: How to get zip file by Intent?
val intent = Intent(Intent.ACTION_GET_CONTENT).apply {
type = "application/zip"
addCategory(Intent.CATEGORY_OPENABLE)
}
startActivityForResult(intent , CODE)
and in onActivityResult, I got 0 length of file
override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {
super.onActivityResult(requestCode, resultCode, data)
if (requestCode == CODE){
val uri = data?.data!!
val...