how to test a string in both emulator 1.6 and 2.2 in android as same
<p>Hi guys I have a problem in testing a string while running on emulator1.6 and emulator2.2 in android . My problem is as follows.</p>

<pre><code>String phone="";


if(phone!=""&amp;&amp;!phone.equals(" ")){

}
</code></pre>

<p>In the android emulator1.6 it is working fine (i.e.,not entering into the if). But in the emulator2.2 it is entering into the if statement and executing the code. Please help me immediate response is needed.</p>
