Mms: Device crashes when sending message with attachment.

Need to handle IllegalStateException in addition of the
MMSException when creating draft MMS.

Change-Id: Ieb1618872d7faa472a6fea08c1b3ef1ae0cde183
Author: Jianli Zhang <jianli.zhang@borqs.com>
Signed-off-by: Frederic Predon <frederic.predon@intel.com>
Signed-off-by: Xiaokang Qin <xiaokang.qin@intel.com>
Signed-off-by: Beare, Bruce J <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Author-tracking-BZ: 7844
Mms: fix CRASH when the address contains only spaces

Rootcause: If the address contains spaces only,when Mms
format this address,it will get an address string the length
of which is -1. So crash happen when call span(object,0,-1,flag)
function.

Solution: When user press back key to restore the message.
This patch will check the address is valite or not, if it is
invalite,it show a dialog to tell user he can't restore the message.
So it avoid crashing when enter the message again.

Change-Id: Ia847ee6a7c9666376ea6fcc56d18105e6e5474a7
Author: Jianping Li <jianpingx.li@intel.com>
Signed-off-by: Jianping Li <jianpingx.li@intel.com>
Signed-off-by: Shuo Gao <shuo.gao@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Author-tracking-BZ: 56634
Mms: Upon already initialized, return immediately

If the sInstance parameter is already initialized then there is
no need to create a new one, this will lead to memory leaks.
Just return immediately.

Change-Id: I68dc53766b5a7e37c591ad253fbd65cf6416658a
Author: Hongyu Zhang <hongyu.zhang@intel.com>
Signed-off-by: Hongyu Zhang <hongyu.zhang@intel.com>
Signed-off-by: Frederic Predon <frederic.predon@intel.com>
Signed-off-by: Shuo Gao <shuo.gao@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Author-tracking-BZ: 28037
Mms: Add a check on the Media model

In case there is no image and no video in the slideshow, the
media model might be null.
Add a check to avoid a null pointer access.

Change-Id: I55d63b226835acfa53199eee0d706b8c5ae553c2
Author: Hongyu Zhang <hongyu.zhang@intel.com>
Signed-off-by: Hongyu Zhang <hongyu.zhang@intel.com>
Signed-off-by: Frederic Predon <frederic.predon@intel.com>
Signed-off-by: Shuo Gao <shuo.gao@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Author-tracking-BZ: 28037
Mms: Cursor doesn't appear when pressing up/down/right/left key

When pressing up/down/right/left key on the keypad, the cursor
doesn't appear in the messagebox.
This is because the layout container is not focusable.

Change-Id: I48815debbc369c41076e4705386b0049da9929ca
Author: Erjun Ding <erjunx.ding@intel.com>
Signed-off-by: Erjun Ding <erjunx.ding@intel.com>
Signed-off-by: Bin Yang <bin.y.yang@intel.com>
Signed-off-by: Shuo Gao <shuo.gao@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Author-tracking-BZ: 23638
Mms: process stops after sharing a video through Messaging

Some logic should be added to deal with different MMS content uri.

testcase: 1> In the messaging application, create a new message
          2> Attach a recorded video
          3> View the video once
          4> View the video twice
          5> Share it through Messaging when playing it

Some logic should be added to deal with different MMS content uri.

Change-Id: I2d7f2ec034823a17ecc517f0861a00958bbb1b38
Author: Frederic Predon <frederic.predon@intel.com>
Signed-off-by: Frederic Predon <frederic.predon@intel.com>
Signed-off-by: Bin Yang <bin.y.yang@intel.com>
Signed-off-by: Shuo Gao <shuo.gao@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Author-tracking-BZ: 27059
German translation: SMS delivery notification

Changed the SMS delivery notification, so it doesn't imply that you have just received a message.

Change-Id: I095af7f3a2746cd0d7451200bc0a0a0e517a9469
Fix reference to static fields through instance

START_TAG and END_DOCUMENT are static fields and should be
accessed in a static way as per notes in the official documentation
at http://docs.oracle.com/javase/tutorial/java/javaOO/classvars.html

Change-Id: I6a626f9efe33605d08ea136eca7be8fc9a7e402d
Signed-off-by: Manuel R. Ciosici <manuelrciosici@gmail.com>
Merge "Fix reference to static fields through instance"
am fa79c1a6: Merge "Fix reference to static fields through instance"

* commit 'fa79c1a671342f584282e8e54440a2606d6f9a9a':
  Fix reference to static fields through instance
am f546d84f: (-s ours) Import translations. DO NOT MERGE

* commit 'f546d84f1a68e275ba8d01d3a007fe11581482ea':
  Import translations. DO NOT MERGE
am fbdbe592: Up the sms/mms recycler limits

* commit 'fbdbe592be42faf5ea3c2fabd5ea84ba19954c88':
  Up the sms/mms recycler limits
am 3fe0a201: (-s ours) Merge "Import translations. DO NOT MERGE" into klp-dev

* commit '3fe0a20140eff5ce66ca9395512e2d052533c9ff':
  Import translations. DO NOT MERGE
Fix one NPE in Mms app

For tablet we usually declare not support mobile_* networkAttributes but ethernet,
wifi,bt in config.xml. this will trigger this NPE.

Change-Id: I761c8514f5569bef1242f9fddc321c0aed564d9e
Signed-off-by: Jianzheng Zhou <jianzheng.zhou@freescale.com>
Merge "Fix one NPE in Mms app"
Merge "Mms: Device crashes when sending message with attachment."
am e5cb24d4: Merge "Fix one NPE in Mms app"

* commit 'e5cb24d42b27de8daddb499ae430a8be6667ba23':
  Fix one NPE in Mms app
am 4b88d04e: Merge "Mms: Device crashes when sending message with attachment."

* commit '4b88d04e5fe016f303ba63ba1abdc7d6b53ba360':
  Mms: Device crashes when sending message with attachment.
am 1ac223fe: (-s ours) Import translations. DO NOT MERGE

* commit '1ac223fe67dbf00f2b7fc4cbeca4fed3e458c974':
  Import translations. DO NOT MERGE
Merge "Mms: Add a check on the Media model"