使用 android 手势生成器我可以保存到数据目录吗
我一直在研究 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试这些手势演示:
http://code.google .com/p/apps-for-android/source/browse/#svn%2Ftrunk
Try these Gesture demo's:
http://code.google.com/p/apps-for-android/source/browse/#svn%2Ftrunk