当设备连接到计算机和桌面管理器中打开没有找到黑莓CFG文件 [英] Blackberry cfg file not found when device connects to computer and Desktop Manager open

查看:242
本文介绍了当设备连接到计算机和桌面管理器中打开没有找到黑莓CFG文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在储存我的BlackBerry设备的所有配置细节到test.cfg文件。所以每次当我启动应用程序,应用程序会检查是否存在test.cfg。如果它存在,那么它加载从该文件的所有配置,如果没有,应用程序会显示配置页面,然后用户可以进入所有的配置细节,并进一步进行。

I am storing all the config details to a test.cfg file in my BlackBerry device. So every time when i start the application, the app will check if test.cfg exists. If it exists, then it loads all the configuration from that file and if not, the app will show the config page, then the user can enter all the config details and proceed further.

除了一个场景中的上述工作正常。当设备到系统中插入,我打开桌面管理器,用户打开应用程序,它直接表明即使test.cfg已存在设备配置页面。

The above is working fine except one scenario. When the device is plugged in to the system and I open the Desktop Manager and the user opens the application, its directly shows the configuration page even if test.cfg already exists in the device.

是否有人知道这个解决办法吗?或任何想法,为什么它的表现也是这样吗?

Does anybody know the solution for this? or any idea why its behaving like this?

推荐答案

我的猜测是,当你通过USB线将设备连接到计算机时,您的计算机安装了SD卡作为外部驱动器。这样做时,该装置将基本上无法访问其SD卡。它需要做到这一点,是因为该设备软件和台式计算机的软件不希望同时是修改的文件相同。

My guess would be that when you connect your device to the computer via USB cable, your computer is mounting the SDCard as an external drive. When it does this, the device will essentially lose access to its SDCard. It needs to do this, because the device software and the desktop computer's software don't want to simultaneously be modifying the same files.

您节省 test.cfg 的SD卡?

如果是这样,你可能需要将文件保存到设备的内部存储,而不是,<一个href=\"http://docs.blackberry.com/en/developers/deliverables/29299/Storing_objects_persistently_1554312_11.jsp\"相对=nofollow>例如,在PersistentStore 。

If so, you might want to save the file to the device's internal storage instead, for example, in the PersistentStore.

您可以关闭大容量存储功能,使您的SD卡可用于PC,如果你preFER有媒体卡始终可用的应用程序。 (如果你想这样做,告诉我它的OS版本你用......但是,明白这只能用于,如果你想你的用户是不是一个很好的解决方案避免这个问题)。

You could turn off the mass storage feature that makes your SDCard available to the PC, if you prefer to have the media card always available to the app. (if you want to do this, tell me which OS version you're using ... but, understand that this only works for you, and isn't a good solution if you want your users to avoid this problem).

你也可以在你的应用程序测试的SD卡,编程

<一个href=\"http://supportforums.blackberry.com/t5/BlackBerry-Bold/Access-SDCard-from-device-when-is-connected-PC/td-p/1274875\"相对=nofollow>在BlackBerry支持论坛参考

<一个href=\"http://docs.blackberry.com/en/developers/deliverables/29299/Data_storage_overview_1554355_11.jsp\"相对=nofollow>数据存储发展指南BlackBerry.com

这篇关于当设备连接到计算机和桌面管理器中打开没有找到黑莓CFG文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆