From 15b84aab1678b7cfd58521d119a75ee6596608b1 Mon Sep 17 00:00:00 2001 From: Mathieu Maret Date: Sun, 12 Dec 2010 02:36:52 +0100 Subject: [PATCH] Rename Package --- .../multismssender}/ContactRow.java | 2 +- .../multismssender}/DeliveryDbAdapter.java | 2 +- .../multismssender}/EntryContentProvider.java | 2 +- .../multismssender}/GroupEditActivity.java | 4 +++- .../multismssender}/GroupsDbAdapter.java | 2 +- .../multismssender}/ListEntryActivity.java | 4 +++- .../multismssender}/MessageReceiver.java | 2 +- .../multismssender}/MultiSmsSender.java | 4 +++- .../multismssender}/MySMSManager.java | 2 +- .../multismssender}/PhoneNumberSelection.java | 4 +++- .../multismssender}/SelectDeliveryActivity.java | 4 +++- .../multismssender}/SelectGroupActivity.java | 13 ++++++++----- 12 files changed, 29 insertions(+), 16 deletions(-) rename src/com/{openwide/android => hectorone/multismssender}/ContactRow.java (97%) rename src/com/{openwide/android => hectorone/multismssender}/DeliveryDbAdapter.java (99%) rename src/com/{openwide/android => hectorone/multismssender}/EntryContentProvider.java (98%) rename src/com/{openwide/android => hectorone/multismssender}/GroupEditActivity.java (98%) rename src/com/{openwide/android => hectorone/multismssender}/GroupsDbAdapter.java (99%) rename src/com/{openwide/android => hectorone/multismssender}/ListEntryActivity.java (97%) rename src/com/{openwide/android => hectorone/multismssender}/MessageReceiver.java (97%) rename src/com/{openwide/android => hectorone/multismssender}/MultiSmsSender.java (99%) rename src/com/{openwide/android => hectorone/multismssender}/MySMSManager.java (98%) rename src/com/{openwide/android => hectorone/multismssender}/PhoneNumberSelection.java (98%) rename src/com/{openwide/android => hectorone/multismssender}/SelectDeliveryActivity.java (97%) rename src/com/{openwide/android => hectorone/multismssender}/SelectGroupActivity.java (91%) diff --git a/src/com/openwide/android/ContactRow.java b/src/com/hectorone/multismssender/ContactRow.java similarity index 97% rename from src/com/openwide/android/ContactRow.java rename to src/com/hectorone/multismssender/ContactRow.java index 6a55405..2fc93e7 100644 --- a/src/com/openwide/android/ContactRow.java +++ b/src/com/hectorone/multismssender/ContactRow.java @@ -1,4 +1,4 @@ -package com.openwide.android; +package com.hectorone.multismssender; import android.content.Context; import android.view.View; diff --git a/src/com/openwide/android/DeliveryDbAdapter.java b/src/com/hectorone/multismssender/DeliveryDbAdapter.java similarity index 99% rename from src/com/openwide/android/DeliveryDbAdapter.java rename to src/com/hectorone/multismssender/DeliveryDbAdapter.java index 80fec7e..36fa67e 100644 --- a/src/com/openwide/android/DeliveryDbAdapter.java +++ b/src/com/hectorone/multismssender/DeliveryDbAdapter.java @@ -1,4 +1,4 @@ -package com.openwide.android; +package com.hectorone.multismssender; import android.content.ContentValues; import android.content.Context; diff --git a/src/com/openwide/android/EntryContentProvider.java b/src/com/hectorone/multismssender/EntryContentProvider.java similarity index 98% rename from src/com/openwide/android/EntryContentProvider.java rename to src/com/hectorone/multismssender/EntryContentProvider.java index f909daa..78b6fbc 100644 --- a/src/com/openwide/android/EntryContentProvider.java +++ b/src/com/hectorone/multismssender/EntryContentProvider.java @@ -1,4 +1,4 @@ -package com.openwide.android; +package com.hectorone.multismssender; import android.content.ContentProvider; import android.content.ContentValues; diff --git a/src/com/openwide/android/GroupEditActivity.java b/src/com/hectorone/multismssender/GroupEditActivity.java similarity index 98% rename from src/com/openwide/android/GroupEditActivity.java rename to src/com/hectorone/multismssender/GroupEditActivity.java index dbf2417..e85ace5 100644 --- a/src/com/openwide/android/GroupEditActivity.java +++ b/src/com/hectorone/multismssender/GroupEditActivity.java @@ -1,7 +1,9 @@ -package com.openwide.android; +package com.hectorone.multismssender; import java.util.HashSet; +import com.openwide.android.R; + import android.app.ListActivity; import android.content.Context; import android.content.Intent; diff --git a/src/com/openwide/android/GroupsDbAdapter.java b/src/com/hectorone/multismssender/GroupsDbAdapter.java similarity index 99% rename from src/com/openwide/android/GroupsDbAdapter.java rename to src/com/hectorone/multismssender/GroupsDbAdapter.java index f27d2b0..bcd7008 100755 --- a/src/com/openwide/android/GroupsDbAdapter.java +++ b/src/com/hectorone/multismssender/GroupsDbAdapter.java @@ -14,7 +14,7 @@ * the License. */ -package com.openwide.android; +package com.hectorone.multismssender; import android.content.ContentValues; import android.content.Context; diff --git a/src/com/openwide/android/ListEntryActivity.java b/src/com/hectorone/multismssender/ListEntryActivity.java similarity index 97% rename from src/com/openwide/android/ListEntryActivity.java rename to src/com/hectorone/multismssender/ListEntryActivity.java index 6846e7e..a8d12bf 100644 --- a/src/com/openwide/android/ListEntryActivity.java +++ b/src/com/hectorone/multismssender/ListEntryActivity.java @@ -1,4 +1,6 @@ -package com.openwide.android; +package com.hectorone.multismssender; + +import com.openwide.android.R; import android.app.ListActivity; import android.content.Context; diff --git a/src/com/openwide/android/MessageReceiver.java b/src/com/hectorone/multismssender/MessageReceiver.java similarity index 97% rename from src/com/openwide/android/MessageReceiver.java rename to src/com/hectorone/multismssender/MessageReceiver.java index c0ea42c..ce5ffb9 100644 --- a/src/com/openwide/android/MessageReceiver.java +++ b/src/com/hectorone/multismssender/MessageReceiver.java @@ -1,4 +1,4 @@ -package com.openwide.android; +package com.hectorone.multismssender; import android.content.BroadcastReceiver; import android.content.Context; diff --git a/src/com/openwide/android/MultiSmsSender.java b/src/com/hectorone/multismssender/MultiSmsSender.java similarity index 99% rename from src/com/openwide/android/MultiSmsSender.java rename to src/com/hectorone/multismssender/MultiSmsSender.java index b600b9b..2c37a95 100644 --- a/src/com/openwide/android/MultiSmsSender.java +++ b/src/com/hectorone/multismssender/MultiSmsSender.java @@ -1,10 +1,12 @@ -package com.openwide.android; +package com.hectorone.multismssender; import java.text.DateFormat; import java.util.ArrayList; import java.util.Date; import java.util.HashSet; +import com.openwide.android.R; + import android.app.Activity; import android.app.AlertDialog; import android.app.Dialog; diff --git a/src/com/openwide/android/MySMSManager.java b/src/com/hectorone/multismssender/MySMSManager.java similarity index 98% rename from src/com/openwide/android/MySMSManager.java rename to src/com/hectorone/multismssender/MySMSManager.java index c1b34dd..4503835 100644 --- a/src/com/openwide/android/MySMSManager.java +++ b/src/com/hectorone/multismssender/MySMSManager.java @@ -1,4 +1,4 @@ -package com.openwide.android; +package com.hectorone.multismssender; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; diff --git a/src/com/openwide/android/PhoneNumberSelection.java b/src/com/hectorone/multismssender/PhoneNumberSelection.java similarity index 98% rename from src/com/openwide/android/PhoneNumberSelection.java rename to src/com/hectorone/multismssender/PhoneNumberSelection.java index b830ab5..190c144 100644 --- a/src/com/openwide/android/PhoneNumberSelection.java +++ b/src/com/hectorone/multismssender/PhoneNumberSelection.java @@ -1,7 +1,9 @@ -package com.openwide.android; +package com.hectorone.multismssender; import java.util.HashSet; +import com.openwide.android.R; + import android.app.ListActivity; import android.content.Context; import android.content.Intent; diff --git a/src/com/openwide/android/SelectDeliveryActivity.java b/src/com/hectorone/multismssender/SelectDeliveryActivity.java similarity index 97% rename from src/com/openwide/android/SelectDeliveryActivity.java rename to src/com/hectorone/multismssender/SelectDeliveryActivity.java index 36f0221..d9a3a7a 100644 --- a/src/com/openwide/android/SelectDeliveryActivity.java +++ b/src/com/hectorone/multismssender/SelectDeliveryActivity.java @@ -1,4 +1,6 @@ -package com.openwide.android; +package com.hectorone.multismssender; + +import com.openwide.android.R; import android.app.ListActivity; import android.content.Intent; diff --git a/src/com/openwide/android/SelectGroupActivity.java b/src/com/hectorone/multismssender/SelectGroupActivity.java similarity index 91% rename from src/com/openwide/android/SelectGroupActivity.java rename to src/com/hectorone/multismssender/SelectGroupActivity.java index a53f639..7bd7aa3 100644 --- a/src/com/openwide/android/SelectGroupActivity.java +++ b/src/com/hectorone/multismssender/SelectGroupActivity.java @@ -1,20 +1,23 @@ -package com.openwide.android; +package com.hectorone.multismssender; +import com.openwide.android.R; + import android.app.ListActivity; import android.content.Intent; import android.database.Cursor; import android.os.Bundle; import android.provider.Contacts.Phones; +import android.provider.ContactsContract.Groups; import android.view.ContextMenu; +import android.view.ContextMenu.ContextMenuInfo; import android.view.Menu; import android.view.MenuItem; import android.view.View; -import android.view.ContextMenu.ContextMenuInfo; +import android.widget.AdapterView.AdapterContextMenuInfo; import android.widget.ListView; import android.widget.SimpleCursorAdapter; -import android.widget.AdapterView.AdapterContextMenuInfo; public class SelectGroupActivity extends ListActivity{ @@ -47,11 +50,11 @@ public class SelectGroupActivity extends ListActivity{ public void fillData() { - Cursor groupsCursor = mDbHelper.fetchAllGroups(); + Cursor groupsCursor = getContentResolver().query(Groups.CONTENT_URI, new String[]{Groups._ID, Groups.TITLE}, null, null, Groups.TITLE); startManagingCursor(groupsCursor); - String[] from = new String[]{GroupsDbAdapter.KEY_GROUP_NAME}; + String[] from = new String[]{Groups.TITLE}; int[] to = new int[]{R.id.groupNameTextView};