lukeme / gobible

Automatically exported from code.google.com/p/gobible
1 stars 0 forks source link

SMS message sizes #102

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Different phones have different maximum SMS message sizes! See
http://en.wikipedia.org/wiki/SMS#Message_size

e.g. My friend's older phone had an upper limit of 195 characters. His new
phone has only 160. (English alphabet).

Now that I've read the section in the Wikipedia page, it looks like being
"a can of worms".

Calculating how many messages should be sent for Go Bible Send SMS is wrong
for some phones and some Go Bible apps.

Sometimes, using Send SMS to send a single verse gives a momentary display
indication that two messages are to be sent, even though only one message
actually gets sent, and that is the full passage!

There may therefore be a further issue in the way GoBibleCore calculates
how many messages are needed. Even for the present default maximum message
size, is the number of messages calculated correctly, or is there an
"off-by-one" error?

In future perhaps we should make make the SMS message size a user
preference. Likewise the MMS message size. Then each user can adjust the
behaviour to match his or her phone, and what script the particular Go
Bible uses.  

Original issue reported on code.google.com by DFH...@gmail.com on 7 Feb 2010 at 2:55

GoogleCodeExporter commented 8 years ago
"..... characters in languages such as Arabic, Chinese, Korean, Japanese or 
Cyrillic
alphabet languages (e.g. Russian, Serbian, Bulgarian, etc) must be encoded 
using the
16-bit UTF-16 character encoding " (Pasted from the same Wikipedia page.) 

cf. Octavian Lupu has included both message size values as BiblePhone build 
options
in his online PHP script that replaces using Go Bible Creator. IMHO, this is 
not the
best place to implement this, as subsequent transfer of the JAR file to someone
else's phone would end up with the wrong values.

Original comment by DFH...@gmail.com on 7 Feb 2010 at 2:56