Update Listview from Service Android
<p>I've a service in which I get notifications.Based on the notifications I check if the activity  is running I try to directly update the listview otherwise I create a new one.</p>

<p>My problem is that I am not able to find out that how I am able to update my Activity Listview from my service.</p>

<p>My activity uses the LazyAdapterClientList to create listview.</p>

<p>The <code>LazyAdapterClientList</code> updates or creates the listview.
The <code>MyIntentService</code> recieve's the notification.</p>

<p>Here's so far what I've tried.</p>

<p>In my service (MyIntentService) I try to call the static function in the LazyAdapterClientList to update listview like this.</p>

<pre><code>LazyAdapterClientList.InsertIntoExistingClients(ip);
</code></pre>

<p>In my LazyAdapterClientList class I use this function to update the list.</p>

<pre><code>public static  void InsertIntoExistingClients(String ip)
{       
    LazyAdapterClientList.iplist.add(ip);
//  LazyAdapterClientList.notifyDataSetChanged();    &lt;-- this is not possible due to static function
}
</code></pre>

<p>Now how can I accomplish this.</p>
