async multithreading to input File "selectedFile" in MainActivity