[android-developers] How do you handle a pound sign (#) in a string?

2010-07-23 Thread Ken H
I built a music player in my app and just discovered a little quark while trying to play #1 Crush by Garbage. When I send the songs path to the MediaPlayer, everything from the # sign on gets dropped off. I tried inserting a \ in front of it, but that causes everything *after* the pound sign to

Re: [android-developers] How do you handle a pound sign (#) in a string?

2010-07-23 Thread Mark Murphy
Try replacing # with %23, or run it through a URL encoder. On Fri, Jul 23, 2010 at 5:33 PM, Ken H hunt1...@gmail.com wrote: I built a music player in my app and just discovered a little quark while trying to play #1 Crush by Garbage. When I send the songs path to the MediaPlayer, everything

Re: [android-developers] How do you handle a pound sign (#) in a string?

2010-07-23 Thread Frank Weiss
Is it a URL? Then you need to escape the #. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to