MMS: Fix lookup of vanity addresses

Avoid the use of the function PhoneNumberUtils.stripSeparators for non-strict
phone numbers.

Change-Id: I9db09780fd066f07fd0c22a8dad7431d34805b25
JIRA: CYAN-57
Issue: https://jira.cyanogenmod.org/browse/CYAN-57
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
Fix up receiver declaration.

The intent this receiver listens to is used by the BT MAP implementation
to send out SMS it queued. As the manifest and the
SmsReceiverService.java were in disagreement about the action name, this
didn't work.
Also secure the receiver in the process, it can be used to send out SMS
without having the SEND_SMS permission otherwise.

Change-Id: Ia8d181731baea586865ce3f18fe0864636c2b6f4
Fix SMS sending.

ACTION_SEND_MESSAGE must be routed through the privileged receiver now,
otherwise it'll be dropped in SmsReceiver.

Change-Id: Ifbe6e222d16053c038ca79a98e6bc837090ea3a3
Fix 'vibrate on call' option.

JIRA:CYAN-1325
Change-Id: Ia01945aa281a1ebef38c80c5896e5be79c290435
Some cleanup.

Change-Id: I47d867f3eaed55b53fdc26b463eef29994ecfd22
Mms: Delay unicode stripping from a message

Using an InputFilter for stripping has some unwanted
consequences. First of all it totally messes up dictionaries
for suggestions. Usually user taking advantage of unicode
stripping wants to text without non-GSM chars, but wants
to have full and correctly spelled suggestions in other apps
(e.g. email). The InputFilter approach results in having stripped
suggestions everywhere.

With this change the app strips unicode characters only for the
purpose of counting available characters counting and to convert
the text right before sending the message. This way the user
can compose messages (and have his drafts stored) with all
characters and can see his stripped messages in the conversation
history after (to be aware that it has been stripped
of unicode chars).

This makes the app behavior consistent with many popular apps
(e.g. GO SMS, Handcent) meeting users' expectations.

Patch set 2: fixed initialization order in QuickMessagePopup.java
Patch set 3: rename class: StripUnicode -> UnicodeFilter

Change-Id: I44ac859d286958d036ddd67a6820a4c09a393644
Prevent FC in low memory conditions

Add missing null cursor checks

Signed-off-by: Michael Bestas <mikeioannina@gmail.com>

Change-Id: I974eea82cac3dfe3a01e5d79c1721d3514f940f6