I have a problem. My receiver is run very succesfull but when on private numbers not work my code.
private class MyPhoneStateListener extends PhoneStateListener {
public void onCallStateChanged(int state, String incomingNumber) {
Log.d("MyPhoneListener", state + " incoming no:" + incomingNumber);
if (state == 1) {
Cursor numaralar = NumaralariGetir();
while (numaralar.moveToNext()) {
String numara = numaralar.getString(numaralar
.getColumnIndex("numara"));
if (incomingNumber.equals(numara)) { // DialedNumber
// checking.
abortBroadcast();
}
}
}
}
}
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…