Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Put a MP3 file in the Music folder on Android

$
0
0

Hello, I want to write un Music folder of Android. My code is:

    var fromFile = Ti.Filesystem.getFile(Ti.Filesystem.applicationDataDirectory,filename);

                    var toFile = Ti.Filesystem.getFile("Music",filename);
                    if ( toFile.exists() == true ) {
                        toFile.deleteFile();
                    }
                    toFile.write(fromFile.read());

This dont work
I want to replace "Music" by the correct form to put the file in the root Music directory.

Thanks


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>