From 5f29b325542265323648abf4239725ae0eb887f2 Mon Sep 17 00:00:00 2001 From: Mathieu Maret Date: Mon, 25 Jan 2010 18:03:42 +0100 Subject: [PATCH] Correct some basic mistake --- src/com/openwide/android/DeliveryDbAdapter.java | 5 +++-- src/com/openwide/android/MultiSmsSender.java | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/com/openwide/android/DeliveryDbAdapter.java b/src/com/openwide/android/DeliveryDbAdapter.java index cf57823..731fc91 100644 --- a/src/com/openwide/android/DeliveryDbAdapter.java +++ b/src/com/openwide/android/DeliveryDbAdapter.java @@ -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()) { diff --git a/src/com/openwide/android/MultiSmsSender.java b/src/com/openwide/android/MultiSmsSender.java index 086281b..41f1511 100644 --- a/src/com/openwide/android/MultiSmsSender.java +++ b/src/com/openwide/android/MultiSmsSender.java @@ -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); } }