http://hoskinator.blogspot.com/2006/11/trouble-using-pipe-with-stringsplit.html.

On Sat, Jul 2, 2011 at 3:24 PM, doles <[email protected]> wrote:
> Hello Everybody,
> On 3.1, I have a string like
> this: 130097|2.AQBZGBy6H.600.109.3-4061710|SLC2X7cz9e5-3J68Q . It looks like
> 3 parts separated by a '|'. So, when I use split on it like this:
> String [] parts = accessToken.split("|");
> I expect parts to be of length 3. Surprisingly, when i run and step into
> that part, the length for parts comes to as many characters there are in
> that string and not 3. So android String.split does not work like java's
> string.split?
> Thanks!!!
>
> --
> 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



-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_Android Programming Tutorials_ Version 3.5 Available!

-- 
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