Mms: Fix wrong message selection in context menu

Sometimes when the user open a message's context menu for the
first time, the action will be performed on the incorrect message
(i.e. deleting the wrong message). This is because the menu click
listener relies on the fact that that the cursor points to the
current message, which is not always true because bindView can
be called on other messages causing the cursor to move.

Fix: Cache the position of the message and move the cursor back.

Change-Id: I4e8fdd2956987fc3f12c80def46c107a4089d0ae
Added "Strip unicode" feature

PS1: Initial
PS2: Rebase for merge
PS3: Fix duplicate characters with some keyboards

Option which attempts to substitute characters that cannot
be encoded in the limited GSM 03.38 character set. In many
cases this will prevent the keyboards auto-correction
feature or copy/paste from inserting characters that would
switch the message from 7-bit GSM encoding (160 char limit)
to 16-bit Unicode encoding (70 char limit).

This is ready for use with simple alphabets like Spanish
and French, but may need extra special cases for languages
which use unusual characters.

Unfiltered characters:
demo.icu-project.org/icu-bin/convexp?conv=gsm-03.38-2000

Auto-filtered characters:
Aesthetic ligatures like ﬀ
Anything with an accent on this table;
    unicode.org/charts/PDF/U0300.pdf

Special cases so far:
Œ -> OE
œ -> oe

Change-Id: Ibec615edd371a040a56dd04904218594e851dbd8
Mms: Add Ł and ł special case to strip unicode

Needed in Polish. (Mentioned by yaatzek on XDA.)

Change-Id: I1cec637704f4e2f1496d047ed820f1b92b2f9f5a
Added "Support for emojis" on the MMS app

Support for the Unicode subset dedicated for emojis, as used on the iPhone, or even the Gmail website.

The full list with Unicode codes is available here: http://barrow.io/posts/iphone-emoji/.
The pictures used here are not bound to any licenses, even GitHub is using them (https://github.com/blog/816-emoji).

The size of the icons seems OK to me, but I could only test on an HDPI device (Galaxy S II i9100). MDPI icons are also included, but I couldn't really test it.

A new checkbox preference has been added to be able to toggle the feature.
The feature will be disabled if the "Strip Unicode" feature is enabled (obviously).

PS1: Initial commit
PS2: pngcrush on all the pictures + XHDPI emojis
PS3-7: Fixed indentation and removed useless whitespaces

Change-Id: I8a457498fb655ea3f1bb273d7756f7c224b81466
Make notifications consistent with the Gapps'.

When a notification indicates new messages from multiple senders, show the
avatar of the most recent one (like GMail and GTalk).
Use the default icon in notifications when the contact has none.
Remove broken and unnecessary bitmap resizing code.

Change-Id: I5440012f6dc9a006d632eeff8c8a4b88d9747c1d

Conflicts:

	src/com/android/mms/transaction/MessagingNotification.java
Import Android preference properties for restored options
Added SMS Split by encoding and counter at end of message with settings

Change-Id: I4f6dd3878b64eb46862a77e550661e82fe54665a

Conflicts:

	res/xml/preferences.xml
	src/com/android/mms/transaction/SmsMessageSender.java
Added Sent/Recieved time Toggle xml part

Change-Id: Ic1d76e010835045a2b5b0301179a3661c139e307

Conflicts:

	res/values/strings.xml
	res/xml/preferences.xml
Added Sent/Recieved time Toggle

Change-Id: Idbc0b6065a7a3752efe86bcf83d9909a9752ea92

Conflicts:

	src/com/android/mms/ui/MessagingPreferenceActivity.java