android - How to edit already present file in SD CARD using SAF(storage access framework)? -


i have doubt read these tutorials clear understanding of saf introduced in kitkat in higher version of android how use new sd card access api presented android 5.0 (lollipop)?

how persist permission in android api 19 (kitkat)?

android api below 19 equivalent contentresolver takepersistableuripermission

android gallery on kitkat returns different uri intent.action_get_content

now have question when intent fired , select sd card uritree intent getting root tree have iterate through uri specific file uri. question have mp3 files in phone , want edit specific file selected how can selected files uri tree , edit it?i tried editing directly using file makes mp3 file disappear , dont want fire saf intent again n again how check user has given permission sd card or not? p.s. using jaudio tagger editing tags of mp3 files. thank you!! have got answers of in question issue if using jaudio tagger library tagging mp3 files takes file objects android 4.4 , above wont let u modify file objects want knw alternative how can edit file objects in 4.4 above?

this how did it, first copy file sdcard phone memory , desired changes , cut , paste file again @ original place. example here editing tag of mp3 file in sdcard:-

https://github.com/reyanshmishra/rey-musicplayer/tree/master/app/src/main/java/com/boom/music/player/tageditor


Comments

Popular posts from this blog

wordpress - (T_ENDFOREACH) php error -

Export Excel workseet into txt file using vba - (text and numbers with formulas) -

Using django-mptt to get only the categories that have items -