Bruno_
11/05/2019, 7:15 PMstartActivityForResult
? technically I could make everything that I need global, but it would cause spaghetti codebezrukov
11/05/2019, 7:17 PMBruno_
11/05/2019, 7:22 PMBruno_
11/05/2019, 8:06 PMval context = +ambient(ContextAmbient)
context.startActivity(Intent(context, CustomActivityClass::class.java))
CustomActivityClass
has implemented onActivityResult
which listens for a fileBruno_
11/05/2019, 8:08 PMMichal Bacik
11/05/2019, 8:19 PMcontext.contentResolver.openInputStream(uri)?.use { it.readBytes() }
Why would you start new activity for that?Bruno_
11/05/2019, 8:22 PMBruno_
11/05/2019, 8:24 PMload a file
)Michal Bacik
11/05/2019, 8:25 PMBruno_
11/05/2019, 8:36 PMdavid.bilik
11/05/2019, 8:48 PMBruno_
11/05/2019, 9:09 PMTopAppBar
), turned out there is not even tho one would helpBruno_
11/05/2019, 9:11 PMRyan Mentley
11/05/2019, 9:36 PM