使用接近传感器如何接收来电?怎么样的服务?
这也许是我试着在我的服务中做的....
try{
//new DoBackgroundTask().execute()
Object powerManager = null;
Method method = powerManager.getClass().getDeclaredMethod("getSupportedWakeLockFlags");
int supportedFlags = (Integer) method.invoke(powerManager);
Field f= PowerManager.class.getDeclaredField("PROXIMITY_CALL_RECIEVE_WAKE_LOCK");
}
catch(Exception E){
}