modified for saving files to drive on android device