我应该向最终用户公开 BlackBerry 网络配置设置吗?

发布于 2024-10-20 03:09:20 字数 176 浏览 2 评论 0原文

在 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 技术交流群。

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

暖心男生 2024-10-27 03:09:20

是的,这是我在 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.

妖妓 2024-10-27 03:09:20

这取决于目标受众。您可以使用基本选项进行简化视图,并使用高级视图来处理阳光下的所有内容,这些内容可以通过重置按钮进行配置,以防用户迷路。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文