Trying to write a file to sdcard in android, anyone got an example?

Went to ngcordova, read the “doc” about $cordovaFile… Dont know what the valid parameters should be!

Does anyone here made an android app that simply creates a file on the sdcard (or wherever) and writes text in it?

Ultimately i’d like to create a directory and create a file in it and append text to it so it serves as a kind of text log.

Thanks in advance…!!