Search code examples
androidandroid-intentgalaxysamsung-mobiletelephonymanager

How to start Direct Call in Samsung?


Samsung's smartphones has one nice feature called direct call - i.e. while messaging one can just lift telephone to ears and it starts calling.

This kind of function implemented in SGS-3, SGS-4 Note-1 and Note-2.

I'm writing messaging application and just thinking how to use this feature.

So the question is: how to start direct call from Android app? I understand that it's non-standard function but probably there's some kind of API or Intent which allows to use direct call on Samsungs?

Any clues/hints/ideas?


Solution

  • 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