增加xapk安装,未成功
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
package com.example.mir4updater.utils;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
public class FileUtils {
|
||||
public static String getFileNoExName(String filePath) {
|
||||
|
||||
String fileNameEx = filePath.substring(filePath.lastIndexOf(File.separator) + 1);
|
||||
String fileName = fileNameEx.substring(0,fileNameEx.lastIndexOf("."));
|
||||
return fileName;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user