notifying Adapter from Service, adapter refreshes but ListView doesnt?

im Experiencing a Strange problem with my ListView, im Trying to update my LisView from a service,my adapter is static and so is my ListView, When i Call notifyDatasetChanged() ,i can see my adapter working, but my ListView doesnt refresh itself, i tried to use eventManager,Handler(),Handler with Main Looper, runOnUithread from the EventManager, all of them same result ,but when i use any of those methods from the Fragment itself (Which Contains the ListView), it works Perfectly :

    mHandler.post(new Runnable() {                                   


            @Override
public void run() {


                //Refresh View if its CurrentView
                if(NotificationsManager.CurrentView.equals(SplittedName)){
                    SingleChat.adapter.notifyDataSetchanged();

                    System.out.println("Adapter Notified");
                }

and here is my adapter :

 adapter = new      
ChatAdapter(MainActivity.MAcontext,android.R.layout.two_line_list_item, 
aCursor,headers,new int[]{android.R.id.text1, android.R.id.text2}, 0);  

Answers


Found the God damn Problem, i wasnt Calling the God Damn Cursor.requery , God Damn it


Need Your Help

Python function overloading

python design method-overloading function-overloading

I know that Python does not support method overloading, but I've run into a problem that I can't seem to solve in a nice Pythonic way.

Is there a way to “tag”,“flag” or to “label” a folder on the eclipse navigator panel?

eclipse productivity tagging

I was thinking if there's a way to tag a folder on eclipse with a color, kinda like if you were using a highlighter pen. I have many folders on a project but i use 3 of them more constantly then i ...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.