Support writing file on Android