我应该向最终用户公开 BlackBerry 网络配置设置吗?
在 BB OS 5.0(ConnectionFactory 等)中使用网络 API 时,有大量用于配置连接的选项。其中有多少内容适合/期望向应用程序的最终用户公开?
当然,我将为我的应用程序设置我认为合适的默认值,但有些事情(例如首选和不允许的传输)似乎是用户可以或应该回答的问题。
这里有什么最佳实践吗?
When using the networking API in BB OS 5.0 (ConnectionFactory, etc.) there are a ton of options for configuring the connection. How much of this is it appropriate/expected to expose to the end user of the application?
Certainly, I will be setting what I think are appropriate defaults for my application, but some things (e.g. preferred and disallowed transports) seem like they are questions that the user can or should answer.
Is there any kind of best practice here?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
是的,这是我在 BB 开发中不喜欢的事情之一 - 你永远不知道 BB 用户在设备上拥有什么类型的连接。因此,检测可用传输的代码很复杂(尽管 RIM 有 一些示例代码说明如何执行此操作)。
在我参与的应用程序开发中,有不同的方法。然而,每个应用程序都有隐含由用户填充的网络设置。
例如,一个应用程序要求用户在应用程序启动时选择一种传输类型。 :) 这对于开发人员来说绝对是一个理想的解决方案,但对于用户来说却不是(他们可能根本不知道“网络传输”是什么)。如果目标受众主要由高级用户组成,那么这会很有效。
另一种方法是使用一些代码来自动检测可用的传输类型,但是这种方法也可能会失败(例如,如果代码试图覆盖广泛的操作系统版本和设备品牌,那么很可能会出现一些问题)意外的排除)。因此,作为后备方案,最好有一些网络设置屏幕,用户可以在其中检查要使用的传输(可能只是唯一的传输)和 APN 设置。
Yes, this is one of the things I dislike in BB development - you never know what type of connectivity a BB user has on the device. As a result the code to detect a usable transport is complicated (even despite RIM has some sample code on how to do this).
In the apps development I've been involved in there were different approaches to this. However each app had networking settings which were implied to be populated by user.
For instance, one app asks user to select a transport type on app startup. :) This is definitelly an ideal solution for developers, but not for users (they simply may not know what the "network transport" is). If the target audience mostly consists of advanced users, then this will work good.
Another approach is to use some code to auto-detect a usable transport type, however this approach may also fail (for instance, if the code tries to cover a wide range of OS versions and device makes, then there are most likely will be some unexpected exclusions). So as a fallback scenario it is good to have some networking settings screen where user could check what transports to use (maybe just the only one) and APN settings.
这取决于目标受众。您可以使用基本选项进行简化视图,并使用高级视图来处理阳光下的所有内容,这些内容可以通过重置按钮进行配置,以防用户迷路。
It depends on the target audience. You could do a simplified view with basic options and and advanced view with every thing under the sun that is configurable with a reset button in case the user gets lost.