align="center" src="http://www.gushitang.com/java-text.html" frameborder="0" width="360" scrolling="no" height="280"> |
第三方的S60程序可以同时提供GPRS和GSM通话
适用平台
S60 3rd Edition
解决方案
S60设备根据活动GSM通话时的GPRS能力分为3类:
A类
能够同时使用链接GPRS服务和GSM服务(语音和短信)。这些设备现在主要包括:S60第三版的设备(Nokia N73/N80/N91/N93, Nokia E60/E61/E70等等)
B类
能够使用链接GPRS服务和GSM服务(语音和短信),但是同一时间只能使用一个。在GSM服务期间,GPRS服务被拒绝,当GSM结束后,GPRS将自动恢复。大多数S60第二版的设备都是B类(Nokia N70, Nokia N90, Nokia 6680等等)。
C类
能够链接GPRS服务和GSM服务(语音和短信)自己中的任一个,但必须手动在服务间切换。
Note: There is no direct API to query about the supported GPRS class in a device. Most S60 3rd Edition 3G (WCDMA) phones support GPRS and belong to class A. The Feature Discovery API can be used to detect if the phone supports WCDMA stack. Here is a code snippet:
注意:在设备中没有直接的API(关于支持GPRS的类)可以查询。大多数S60第三版的3G(WCDMA)手机支持GPRS并属于A类。如果手机支持WCDMA堆栈,则可以通过API来发现。代码段如下:
TBool isSupported = CFeatureDiscovery::IsFeatureSupportedL(KFeatureIdProtocolWcdma);
if (isSupported)
{
// activate the service
}
if (isSupported)
{
// activate the service
}