unable to write data in SDcard (lollipop) without user interaction android -
i working on sdcard dignostics functionality.i need perform sdcard read , write functionality in kitkat , lollipop device.there no direct way perform read , write in kitkat , lollipop.
but able in kitkat following way:
-->adb shell mkdir stoare/extsdcard/android/data/com.sample.demo(your package name)
then can perfrom read write operations in com.sample.demo folder.
for lollipop using documentfile class can perfrom read , operations need user interaction.
now problem out user interaction need perform read , write,can please infrom alternate way above kitkat procedure.
thanks in advance
that design of lollipop. there no way workaround that. user interaction giving permission through saf anyway needed once.
more info : how use new sd card access api presented android 5.0 (lollipop)?
Comments
Post a Comment