1

三星的智能手机有一个很好的功能,叫做直接通话——即在发信息的时候,只要把电话举到耳朵边,它就会开始打电话。

这种功能在 SGS-3、SGS-4 Note-1 和 Note-2 中实现。

我正在编写消息传递应用程序,只是在考虑如何使用此功能。

所以问题是:如何从 Android 应用程序开始直接呼叫?我知道它是非标准功能,但可能有某种 API 或 Intent 允许在三星上使用直接调用?

任何线索/提示/想法?

4

3 回答 3

1

I guess it is function using calling plus light sensor, which has bunch of examples around.

Updated

Sorry, it would be Proximity Sensor. just try putting on your hand when messaging, whether it calls or not. Here is the link for it. http://developer.android.com/guide/topics/sensors/sensors_position.html#sensors-pos-prox

于 2013-04-30T21:04:27.833 回答
1

我不认为有一些特殊的 API 可以解决这个问题。我相信这只是消息传递应用程序的功能。它结合了两个特点:

A. 打电话

它做这样的事情:

Intent callIntent = new Intent(Intent.ACTION_CALL);
callIntent.setData(Uri.parse("tel:1234567890"));
startActivity(callIntent);

B. 运动传感器的使用

您可以在这里查看如何使用。它检测到手机上升了一段时间(可能它还测量旋转以查看它是正确的手势)。

于 2013-04-30T15:10:00.330 回答
-3

To use the DIRECT CALL FEATURE on the SAMSUNG GALAXY NOTE II simply do this:

During a TEXT MESSAGE that you are having with another person just simply put your GALAXY NOTE II up to your ear and then it will automatically dial & call the person that you are currently having a TEXT MESSAGE CONVERSATION WITH

于 2013-04-30T20:59:15.260 回答