使用接近传感器如何接听来电?服务如何?
这也许是我试图在我的服务中做的......
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){
}