标签:android http io os sp on log c html
import com.android.internal.telephony.ITelephony;
import android.os.ServiceManager;
private boolean phoneIsInUse() {
boolean phoneInUse = false;
try {
ITelephony phone = ITelephony.Stub.asInterface(ServiceManager.checkService("phone"));
if (phone != null) phoneInUse = !phone.isIdle();
} catch (RemoteException e) {
Log.w(TAG, "phone.isIdle() failed", e);
}
return phoneInUse;
}
参照:http://www.myexception.cn/android/922374.html
标签:android http io os sp on log c html
原文地址:http://www.cnblogs.com/xiayexingkong/p/3986022.html