目录
安卓怎么安装微信发的app
接收,保存,然后用es文件浏览器打开,重命名把后缀改为.app,用qq 安装器 浏览器打开,信任安装,就可以了。
获取app私有目录,加速存取速度。
public String getExternalPath() {
File externalFilesDir = getExternalFilesDir(null);
if (externalFilesDir != null) {
return externalFilesDir.getAbsolutePath();
} else {
return null;
}
}
这些文件不会被图库应用自动检测到,因此不会显示在设备的图库中。这对于保护应用数据的隐私非常有用,特别是当你不希望用户通过图库看到这些由应用管理的文件时。
放在其他目录会被系统检测导致存视频会卡住。
jni创建目录,判断是否存在
#include <sys/stat.h>
bool ensureDirectoryExists(const char* path) {
struct stat info;
if(stat(path, &info) != 0) {
// The directory does not exist, create it
if(mkdir(path, 0755) == 0) {
return true; // The directory was successfully created
} else {
return false; // Failed to create the directory
}
} else if(info.st_mode & S_IFDIR) {
return true; // The directory exists
} else {
return false; // The path exists, but it is not a directory
}
}