Mms: Handle Disk Storage Full Crash

- When a device is out of disk storage space, the messages apk will crash
and become unresponsive
- This changes now handles the SQLiteFullException thrown by
the app and displays a toast to the user to indicate that the
storage is full.
CRs-Fixed: 487749

CM changes:
- Remove printStackTrace while it is redirected to logcat and not to console on Android
- Internationalize the error msg
- Only return null if an error occurs

Change-Id: I89956d06e5fdd008a31802c10f33364eb327dff7
Mms: Add resend function for message

Add a resend menu when send message failed.

Change-Id: I2d29ee3455fc647461b6338dd344107aebccd840
Mms: Add changes to search video and messages

--Add changes to search video and messages in searchable items
 --Click search icon on home screen.
 --Click menu key->search setting
 --Click searchable items

Change-Id: I83e4718c573b99e886fdba6762d2720a0f8f750c
CRs-Fixed: 394450
Mms: Filter invalid characher for recipient address

Check if all of recipient numbers are valid when send message,
if all are valid, send message directly, if some of them invalid,
notify user if still try to send the valid number, if all are
invalid numbers, notify user there is no valid recipient, and
can not send the message.

In android default design, it will ignore the invalid characher in
recipient address.

Change-Id: I9a8102e2f4195a9d71f4c19d88bc289e6dfa60f1

Conflicts:

	res/values/strings.xml
Mms: Copy url function

Add a function to copy the url in message body into
clipboard.

Change-Id: I6a3980eb3dc7588d4ea34d5a9c861b0fb2142a5e
Mms: Send message to multiple recipients

Add a function that user can send message to multiple recipients.
It allows user pick multiple recipients from contacts and
send message to them at the same time.

Change-Id: I23503e4a1454d501153884e61bc39b259d8030ed
Mms: Share vCard and contacts information

Add share contacts function for message:
 - Share vCard via mms
 - Share contacts information via sms

Change-Id: I7cbcb7600240329cd0e05df63e476be02e5725a9
MMS: Handle case when mobile data is not available

mmsNetworkInfo is null on APQ targets where mobile data is not available
causing a null pointer crash

CRs-Fixed: 517339

Change-Id: I2522d9da3cea1599d7b865e12134b508b636bde9
Mms: Fix crash when tap messaging icon while previewing slide

It is the IllegalArgumentException which cause application
crash.

Catch it and set the type by mp4 to avoid crash.

CRs-Fixed: 509483

Change-Id: Ifaa85ac4c150ac060d2176587a353abf98b41b84
Mms: Occur empty contact when input full width spaces

The RecipientsEditor will only filter the half width spaces,
it will be look as a contact when input full width spaces.

Filter full width spaces in RecipientsEditor.

CRs-Fixed: 430126

Change-Id: I7a16a832a18edfd091136ce38156a95801c672dc
MMS: Display blank pictures a while when send mms

If image do not load completed, it will Display blank picture
in the interface.

Do not Show the image until it load completed.

CRs-Fixed: 410249

Change-Id: Id3e6ef08688ac33e93fddd68b274a9ec89f59800
MMS: Fix monkey issue about mms

MMS monkey test with command.monkey -p com.android.mms -v 5000

If there is no notification in pre-load list, do not show
notification.

CRs-Fixed: 405257

Change-Id: Ie223c0d03614192957b5810849364e57cddfc118
MMS: Receive two when edit the sending sms and resend

If edit a sms which is in sending status. The database will
only refresh the bodytext and will not add a new record.

Do not support edit if sms is in sending status.

CRs-Fixed: 410739

Change-Id: Idffb42d2e9c8e6a5db86c46daa88858ef21babc9
MMS: The subject disappear after add Sildeshow

If we create a new slideshow. We will drop the old
workingMessage and create a new one. So subject will be
disapper.

Keep the subject from the old mWorkingMessage before we
reassigned.

CRs-Fixed: 409142

Change-Id: I1cc175f8143e702d432d86ae1d69841e8a3a7a47
Mms: Can't display recipient number

The address of draft is null in the DB(table:sms),
so we get the value of null, and can't display
the recipient.

Use the thread_id to get the contactList when the
address is null, and get the numberAndName for the
draft to display.

CRs-Fixed: 439049

Change-Id: I203353712817d541c0c99664a7dba54499ccbf78
MMS: First Mms will be deleted when edit second sending Mms

When we edit a sending Mms, this Mms will be draft status.
At this moment, if we edit another sending Mms, the first Mms
will be delete and the second Mms will be a draft message and
in edit status, becase one threadID just have only one draft
message.

Send the first Mms then make the second Mms to edit status.

CRs-Fixed: 410267

Change-Id: Icd55230ca8ab57dd9875762a4364f88dde5bf795
Mms: Can't display "draft" over than 6

Because we set android:ellipsize to flag end
so it is unable to display "draft" when recipients
is too long.(draft is a part of recipients content)

My solution is that set display text of combination
of recipient/draft/unread count is middle ellipsize.

CRs-Fixed: 432987

Change-Id: Ied73167e6fbb9c1c4282007c045018728d497a39
MMS: Add email address to "Phone" field in new contact

This is due to that whether the recipient is a phone number
or an email address,it always call assignContactFromPhone to
pass the data as phone number to Contact.

Call assignContactFromEmail if the recipient address is email
address.In other cases,call assignContactFromPhone.

CRs-Fixed: 409640

Change-Id: I09323c9da1e83221baa41c9007d23973b33431aa
MMS: The MMS subject is still exist when launch again

Mms draft do not delete when convert Mms to Sms.

If convert one Mms Draft to Sms and send it, need delete Mms
Draft.

CRs-Fixed: 408450

Change-Id: I19188c6e75e2ef25e399b92b5372bcdaf69ef7c1
MMS: The sound file name disppear after wake up UE

It will clear the element and removeEventListener of
SMIL_DOCUMENT_END_EVENT when activity onPause().

Add eventListener in onResume(). Because it will be removed
in onPause() and only delete the element when this activity
finish.

CRs-Fixed: 397577

Change-Id: Ic0603312a133339c120570bf3ef8fe8276715729