bug with notifyDataSetChanged() in ArrayAdapter ?

by Christophe » Wed, 16 Jun 2010 21:08:03 GMT


Sponsored Links
 hello everyone,

I have a strange problem with one of my ListActivity. I have overrided
the default ArrayAdapter in order to customize my list. I have then
filled the adapter with an ArrayList.

If I insert an element on the list and then call
notifyDataSetChanged() on the adapter everything works fine.

But if I insert an element at the END of the list and then call
notifyDataSetChanged(), the new element doesn't  appear ...

And finally if I override getCount() on my adapter like this :

@Override
public int getCount() {
        return myArrayList.size();
}

then everything works fine.
Is this a bug or am I doing something wrong ?

--



Other Threads

1. SIM NFC (card emulation). SWP support?

Hi,

I have just get a SIM card where a MIFARE Classic 1k tag has been
emulated. I put it into the Samsung GT-5230N mobile phone and I can
read it with my NFC reader as a common tag. This is possible because
the 5230N has full SWP (Single Wire Protocol). Moreover, I can connect
to the applet running in the SIM and check the values as I can do with
the reader and show the values on the screen, e.g. the tickets
remaining.

As far as I see in the Internet, the Nexus S has SWP support. Is that
true? I mean, right now is the SWP available? If I insert the SIM into
the Nexus S would it work as well as it does with the S5230n? Is it
possible to access the applets and read the values to show them on the
screen??

Thanks a lot.

-- 

2. Monkey not playing video using Music app

Hi,

We are trying to test the Music Player (Music.apk) with Monkey.

We have added the permissions in AndroidManifest.xml of Camera
application (Camera.apk):

<uses-permission
android:name="android.permission.SET_ACTIVITY_WATCHER" />

In the same file, we have added intent for MovieView Activity:
<category android:name="android.intent.category.MONKEY" />

We use the following commands:

# Launch the Music Player
am start -a android.intent.action.MAIN -n com.android.music/
com.android.music.VideoBrowserActivity

# Launch Monkey to test Music player
monkey -p com.android.music -v -v -v 500

But, we get the error message:
"// Rejecting start of Intent { action=android.intent.action.VIEW
data=content://media/external/video/media/3 type=video/mp4 comp=
{com.android.camera/com.android.camera.MovieView} } in package
com.android.camera"


Any suggestions to solve the issue ?
Regards,
Vrukesh

--~--~---------~--~----~------------~-------~--~----~

3. Storing Context vs Passing As Parameter Where Needed

4. How to implement a vertical Gallery with fixed focus?

5. Android Security Discuss is uninteresting

6. Simulation of user interaction.

7. ABSEN PENGGUNA EVO JOGJA