how to replace space with %20 in url in android in jsonparsing
<p>In my application i want to replace space with %20 in my string.I tried in this way,</p>

<pre><code>String flag1="http://74.208.194.142/admin/upload_image/1342594079_images (2).jpg";
flag1.replaceAll("", "%20");
</code></pre>

<p>But it is not working please help me.I am getting null pointer exception.</p>
