Dynamic updation on gallery in android
<p>I want to upload the images in gallery view,when i supposed to do the following error is thrown.
<strong>Error:Observer is null</strong></p>

<blockquote>
<pre><code>   public void uploadGallery()
 {
</code></pre>
</blockquote>

<pre><code>     gallery.setAdapter(new GalleryAdapter(this));  
 }
</code></pre>

<p>if i call this function ,when i click the button the error is thrown</p>
