zoukankan      html  css  js  c++  java
  • 获取当前目录下所有的apk文件

     1  public static Vector GetVideoFileName(String fileAbsolutePath) {
     2         Vector vecFile = new Vector();
     3         File file = new File(fileAbsolutePath);
     4         File[] subFile = file.listFiles();
     5 
     6         for (int iFileLength = 0; iFileLength < subFile.length; iFileLength++) {
     7             // 判断是否为文件夹
     8             if (!subFile[iFileLength].isDirectory()) {
     9                 String filename = subFile[iFileLength].getName();
    10                 // 判断是否为apk结尾
    11                 if (filename.trim().toLowerCase().endsWith(".apk")) {
    12                     vecFile.add(filename);
    13                 }
    14             }
    15         }
    16         return vecFile;
    17     }
  • 相关阅读:
    python
    VSCompile
    Oracle学习
    CMD
    JQuery 学习
    单词
    解决Manjaro+win双系统相差8小时
    编辑器使用
    软件安装
    磁盘分区与逻辑卷管理
  • 原文地址:https://www.cnblogs.com/tero/p/5301331.html
Copyright © 2011-2022 走看看