title: How to rename a file in android 10 and above
body: <p>i display all the images, videos and audio files from external storage in my app but when i try to rename it does not work
  i am using renameTo method to rename a file but it does not work for android 10 and above. Below code works for android older versions only
  how can i rename file in android 10 and above versions</p>
  <pre><code>          val from: File = File(currentMusic!!.path!!)
            val mBaseFolderPath: String =getpath()
            val str = renameBinding.renameEd.text
            val to: File = File(mBaseFolderPath, &quot;$str.mp3&quot;)
            from.renameTo(to)
  </code></pre>