[Q] Evo Shift 4G carriage return in app development issue

wemmert

Member
May 8, 2009
7
0
0
I am developing an application for my job, where an install is complete we will use our company issued HTC Evo Shift 4G phones and fill out specific information about the customer . . . installed features . . . blah blah etc.

The problem comes when I process all of the information into a string with new line special characters (\n) at the end of the lines (that way it processes better in the email app on the phones).

If I run the application on ANY OTHER PHONE I GET MY HANDS ON the application works like a charm . . . processes the information . . . passes it to email . . . carriage return / new line at the correct positions . . . adds in all of the information flawlessly. Likewise if I run the application on the Emulator it works just fine.

Running the application on . . . for some God knows why reason . . . an Evo Shift 4G the "\n" string special character seems to freak out the email app and cause only the first line of the body to be passed.

In an effort to not fill up this screen with code, I will demonstrate in pseudo-code.

Code:
method for email submission
         true false check mark value resolutions
                   turn true or false into string
         true false check mark value resolution
                   turn true or false into string
         concatenate strings into "body text"
                    text box 1 \n
                    text box 2 \n
                    text box 3 \n
                    check box returned string \n
                    text box 4 \n
                    check box returned string \n
         email URI
                    mailto:email address?
                    subject=install checklist&
                    body= "body text"
         initiate email activity
         pass values



*********************************************************
the returned email text should look like
*********************************************************

Textbox 1
Textbox 2
Textbox 3
check box true / false
Textbox 4
check box true / false

*********************************************************
What it returns as in the email app
*********************************************************

Textbox 1

*********************************************************
Everything just stops after that.


I'm tired . . . rambling . . . and slowly making less and less sense . . . and slowly going insane, please help.

Real code / pseudo code / statements / I don't really care, I'm just at my wits-end with these damn Evo Shift phones.
 

Dread 7us

Inactive Recognized Developer
Jul 25, 2010
1,315
1,095
0
Why not just use a StringBuilder or StringBuffer and append all the textboxes, ect together? That's all I could suggest without seeing any of your actual code.

Sent from my PG06100 using xda premium
 
Last edited:

wemmert

Member
May 8, 2009
7
0
0
hmmmmm interesting, I will give that a shot as soon as I can. I guess my main problem is that I am the worst programmer alive, seeing as how I just concatenated stuff and special characters together.

I like your idea tho, I will give it a shot, hopefully the evo shift agrees.

Sent from my SAMSUNG-SGH-I897 using XDA App