Correct some basic mistake
This commit is contained in:
parent
4e92cc6c1e
commit
5f29b32554
@ -236,8 +236,9 @@ public class DeliveryDbAdapter {
|
|||||||
|
|
||||||
|
|
||||||
public String nameFromNumber(String number) {
|
public String nameFromNumber(String number) {
|
||||||
Cursor c1 = mCtx.getContentResolver().query(Phones.CONTENT_URI, new String[] { Phones.NUMBER }, null, null, null);
|
//TODO
|
||||||
Cursor c = mCtx.getContentResolver().query(Phones.CONTENT_URI, new String[] { Phones.NUMBER }, Phones.NUMBER +"="+number, null, null);
|
//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) {
|
if(c != null) {
|
||||||
c.moveToFirst();
|
c.moveToFirst();
|
||||||
if(c.isFirst()) {
|
if(c.isFirst()) {
|
||||||
|
@ -139,7 +139,7 @@ public class MultiSmsSender extends Activity {
|
|||||||
this, 0, intent , PendingIntent.FLAG_CANCEL_CURRENT));
|
this, 0, intent , PendingIntent.FLAG_CANCEL_CURRENT));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
manager.sendMultipartTextMessage(newN, null, messages, sentIntents, null);
|
manager.sendMultipartTextMessage(newN, null, messages, null, sentIntents);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user