CursorAdapter notifyDataSetChanged doesn't work? What am I doing wrong?

by Moto » Fri, 02 Jul 2010 10:41:14 GMT

Sponsored Links
 Hi I'm trying to clean up some code and now I'm determined to get this
seemless ListView updating working...

I want my ListView to be updated when I call notifyDataSetChanged()
but nothing happens... I'm also passing the autoRequery flag to true
when creating my CursorAdapter.

Cursor c = FavoritesHandler.getCategoryFavorites(getSQLiteInstance(),

Any help is greatly appreciated!


Other Threads

1. Sockets and bluetooth

Hello Eveyone.

I have a bit of a problem.  It seems my code which opens a socket and
connects to a website causes other bluetooth devices to fail to

Anyone have any ideas why this would be.

Am I missing something in the sockets?  Here is a snippet of code.

socket=new Socket();
socket.connect(new InetSocketAddress("", 80), 5 * 1000);
if (socket.isConnected()){
             socket = null;
             return true;
             socket.close();  // just in case...
             socket = null;
             return false;

Any help would be appreciated...


2. Enabling audio in emulator

Since I found nothing about this while looking, I thought I would
document my findings here.

I had some trouble getting audio to work in the Android emulator.
Eclipse was displaying the following:
    [2008-10-06 16:18:12 - Emulator] emulator: warning: opening audio
output failed

Having a look at the emulator startup options for Android 1.0 SDK,
Release 1:

...I found some of the Media ones are not correct . Even the self
documentation inside emulator -help-audio is not correct:
    $ emulator -useaudio
    invalid command-line parameter: -useaudio
    $ emulator -help-audio-out
    unknown option: -audio-out
    $ emulator -help-audio-in
    unknown option: -audio-in

I tried the obvious, but got the same error I was getting through
Eclipse (I guess alsa is the default)
    $ emulator -audio alsa
    emulator: warning: opening audio output failed

The only way I got sound working was to run:
    $ emulator -audio oss

Please note that while the emulator is running, you will not be able
to use other audio apps (at least I couldn't).

I hope that helps someone out there. If I have missed something,
please let me know.


3. What requires android.permission.SET_WALLPAPER_HINTS ?

4. VerifyError with javac but not with JDT?

5. popup menus woes

6. IDEA: Android Applications I'd most like to see

7. Switches in Aapt tool