Android: String.split() method not actually splitting?
<p>Maybe it's been a long day and I've overlooked something, but this is driving me absolutely crazy. </p>

<pre><code>String[] address = "192.169.2.10".split(".");
Log.d(TAG, "Address array length: "+address.length); 
//Output: 'Address array length: 0'
</code></pre>

<p>I am resolving the device IP address, and trying to split it into an <code>String</code> array by splitting it on the period characters. Obviously this should return an array with a length of 4, but it's returning a length of 0. </p>

<p>Is there something blatantly obvious I am overlooking here? </p>

<p>NOTE: The real code is pulling that IP address in from <code>WifiManager</code>, but even if I put an arbitrary IP String in there like above, the length is 0.</p>
