Mediascannerconnection Doesn't Work
public void onClick(View v) { // Writing data to file FileWriter fw; try { fw = new FileWriter(Environment.getExternalStorageDirectory()+'/DataLog.csv', true);
Solution 1:
toString()
on FileWriter
does not return the path to the file, which you are assuming it does, in the second parameter you pass to scanFile()
.
Post a Comment for "Mediascannerconnection Doesn't Work"