gpt4 book ai didi

android - apk 位于 Xamarin Android 应用程序的何处?

转载 作者:行者123 更新时间:2023-11-30 00:11:20 25 4
gpt4 key购买 nike

我被指派制作一个将文件存储在

中的应用程序
/folder of apk/somefolder/subfolder

但我找不到 APK 文件夹的位置,所以我可以在其中创建文件夹,其中包含一些文件夹和子文件夹,并将文件存储在完整路径中

/folder of apk/somefolder/subfolder

我的应用名为 SomeApp,在/storage/emulated/0/Android/data 中我有 SomeApp.SomeApp。这是 APK 的文件夹吗?

最佳答案

您正在寻找DataDir(Java 中的GetDataDir)

var path = DataDir.Path;

Returns the absolute path to the directory on the filesystem where all private files belonging to this app are stored.

回复:getDataDir()

CacheDir 和 FileDir 等属性在该根包路径中提供“默认”文件和数据库目录:

var cache = CacheDir.Path;
var files = FileDir.Path;

关于android - apk 位于 Xamarin Android 应用程序的何处?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48073222/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com