Android Utililty Methods File Touch

List of utility methods to do File Touch

Description

The list of methods to do File Touch are organized into topic(s).

Method

voidtouch(File file)
Implements the same behavior as the "touch" utility on Unix.
if (!file.exists()) {
    OutputStream out = new FileOutputStream(file);
    try {
        out.close();
    } catch (IOException e) {
file.setLastModified(System.currentTimeMillis());
...