Android のプログラミングは初めてで、sd カードのファイルを削除したいと考えています。これは私の現在の(作業中の)コードです...
File appvc = new File(Environment.getExternalStorageDirectory()
.getAbsolutePath(), "ApplifierVideoCache");
if (appvc.isDirectory()) {
String[] children = appvc.list();
for (int i = 0; i < children.length; i++) {
new File(appvc, children[i]).delete();
}
}
今、複数のファイルを削除したいのですが、その大きなブロックで各ファイルに言及したくありません。すべてのファイルを 1 つの変数にまとめることができますか? ありがとう ;)