Namespaces
Variants
Actions

Inserting elements recursively to List fails in Series 40 6th Edition (Known Issue)

Jump to: navigation, search
SignpostIcon Asha UI.png
Article Metadata

Tested with
Devices(s): All Series 40, 6th Edition devices

Compatibility
Platform(s): Series 40, 6th Edition

Article
Keywords: List.insert()
Created: User:Kbwiki (10 Dec 2010)
Last edited: lpvalente (13 Apr 2012)


Description

Inserting elements recursively (for example by using a for loop) to List by using the method insert(int elementNum, String stringPart, Image imagePart) fails as follows:

  • when the number of elements is less than 12, only one element will be shown on the List;
  • when the number of elements is 12 or more, the List hangs.

How to reproduce

This issue can be reproduced by using this test MIDlet: File:PopulateList.zip

The MIDlet tests a use case where the number of elements is 12.

After launching the MIDlet, press Populate.

On the affected devices, the MIDlet hangs.

Solution

The method insert(int elementNum, String stringPart, Image imagePart) should not be used to populate a List recursively. If a List needs to be recursively populated with elements, using the method append(String stringPart, Image imagePart) is recommended instead for the purpose.

This page was last modified on 13 April 2012, at 18:59.
107 page views in the last 30 days.
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved