, .
, , , , , , int currentValue, , , ( )
int currentValue = 0;
private void checkMMSRows(){
Cursor curPdu = getContentResolver().query(Uri.parse("content://mms/part"), null, null, null, null);
if (curPdu.moveToNext()){
int newValue = curPdu.getCount();
if (newvalue != currentValue) {
currentValue = newValue;
}
System.out.println(newValue);
}
}