編集(管理者用) | 新規作成 | FrontPage | RSS | 更新履歴 | 楽屋裏   

FrontPage>>Android

使うAndroidAPI

ContextクラスのfileList()

サンプルコード

で、ソースはこんな感じ。

Arrays.asList(context.fileList()).contains(fileName)

Arrays.asListでファイルリストを作って、その中に指定ファイルが存在するかどうかをチェックしてる。
簡単でしょ?

>>TOP of this page