How can I filtering message using split method?
<p>I have a problem with filtering message.</p>

<p>I want to make coordinates of GPS with Latitude and Longitude and I use GPS device with it (not in Android GPS device).</p>

<p>I use message to send Latitude and Longitude coordinates.</p>

<p>I use StringTokenizer to split a message with "-6.321123,106.321123" form. So I will get -6.321123 as Latitude and 106.321123 as Longitude. The problem is, if I get some message but not with that form, how can I filtering it? I use if condition but it still doesn't work.</p>
