Correct some basic mistake

This commit is contained in:
Mathieu Maret 2010-01-25 18:03:42 +01:00
parent 4e92cc6c1e
commit 5f29b32554
2 changed files with 4 additions and 3 deletions

View File

@ -236,8 +236,9 @@ public class DeliveryDbAdapter {
public String nameFromNumber(String number) {
Cursor c1 = mCtx.getContentResolver().query(Phones.CONTENT_URI, new String[] { Phones.NUMBER }, null, null, null);
Cursor c = mCtx.getContentResolver().query(Phones.CONTENT_URI, new String[] { Phones.NUMBER }, Phones.NUMBER +"="+number, null, null);
//TODO
//Cursor c1 = mCtx.getContentResolver().query(Phones.CONTENT_URI, new String[] { Phones.NUMBER }, null, null, null);
Cursor c = mCtx.getContentResolver().query(Phones.CONTENT_URI, new String[] { Phones.NAME }, Phones.NUMBER +"="+number, null, null);
if(c != null) {
c.moveToFirst();
if(c.isFirst()) {

View File

@ -139,7 +139,7 @@ public class MultiSmsSender extends Activity {
this, 0, intent , PendingIntent.FLAG_CANCEL_CURRENT));
}
}
manager.sendMultipartTextMessage(newN, null, messages, sentIntents, null);
manager.sendMultipartTextMessage(newN, null, messages, null, sentIntents);
}
}