使用 android 手势生成器我可以保存到数据目录吗

发布于 2024-09-15 16:55:41 字数 477 浏览 3 评论 0原文

我一直在研究 Android 的手势生成器演示,它运行得很好:前提是您有 SD 卡。我正在尝试调整它,以便它将写入内部存储而不是 SD 卡。

到目前为止,它非常简单,

if (android.os.Environment.getExternalStorageState().equals(android.os.Environment.MEDIA_MOUNTED))
{
    _sStoreFile = new File(Environment.getExternalStorageDirectory(), _fileName);
}
else
{
    _sStoreFile = new File(Environment.getDataDirectory(), _fileName);
}

但是,它不想保存我创建的任何手势。我知道这是相当稀疏的信息,我愿意根据问题和评论发布更多详细信息。

有谁建议检查哪些内容以找出为何未保存手势?

I have been looking at the gesture builder demo for the android and it works great: provided that you have and SD card. I'm trying to adjust it so that it will write to the internal storage instead of the SD card.

So far it has been pretty simple,

if (android.os.Environment.getExternalStorageState().equals(android.os.Environment.MEDIA_MOUNTED))
{
    _sStoreFile = new File(Environment.getExternalStorageDirectory(), _fileName);
}
else
{
    _sStoreFile = new File(Environment.getDataDirectory(), _fileName);
}

However, it doesn't want to save any of the gestures that I have created. I know this is pretty sparse information and I'm willing to post more details based on questions and comments.

Does anyone have suggestions on what to examine to find out why gestures are not being saved?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文