近接センサーを使用して着信を受けるにはどうすればよいですか?? そのためのサービスはどうなりますか??
これはおそらく私が自分のサービスでやろうとしたことです....
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){
}