On Tue, Sep 28, 2010 at 12:06 PM, john brown
<[email protected]>wrote:

> What is the error in my understanding of the split() method?


I don't have an actual answer for you, but I ran into the same issue where I
was trying to parse a server response string delimited by the pipe and it
failed miserably, as you've seen. The asterisk "*" was also a problem if I
recall correctly.

I didn't investigate too thoroughly, but I think these (and probably others)
might be special characters in the split logic for regex stuff, but that's
just a guess.

If you have control over the server, I'd say just use a different delimiter.
If you don't, you can do what I did and first replace the offending
character with something else you know will not exist in the string and
split on that. Lame, but it works.

-------------------------------------------------------------------------------------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to