Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

BlackBerry® OS Smartphones

Reply
Developer
Posts: 61
Registered: ‎05-21-2009
My Device: Not Specified

BB application list working with curve but not working with bold

I developed one application.. in this i am fetching the mobile application list using the code below. It is perfectly working with curve 8900. But not working with Bold. Can anyone give me a solution for this. 

 

The code i userd is....

 

--------------------------------------------------------------------------------------------------------------------   

private void ApplicationList() {
        if (systemApplicationDetails.isEmpty()) {

            try {
                int modHandles[] = CodeModuleManager.getModuleHandles();
                for (int j = 0; j < modHandles.length; j++) {
                    int modHandle = modHandles[j];

                    ApplicationDescriptor[] apDes = CodeModuleManager
                            .getApplicationDescriptors(modHandle);

                    try {
                        for (int i = 0; i < apDes.length; i++) {
                            ApplicationDescriptor applicationDescriptor = apDes[i];
                            String name = applicationDescriptor
                                    .getLocalizedName();
                            int flag = applicationDescriptor.getFlags();

                            if (flag != 3 && name != null
                                    && Character.isUpperCase(name.charAt(0))
                                    && name.indexOf("_") < 0
                                    && !excludeApplications.contains(name)) {

                                systemApplicationDetails.put(name, ""
                                        + modHandle);
                            }
                            break;
                        }
                    } catch (Exception e) {
                        // TODO: handle exception

                    }
                }

            } catch (Exception e1) {
                // TODO: handle exception

            }

            int size = systemApplicationDetails.size();

            SYSTEM_APPLICATIONS = new String[size + 1];
            Enumeration enumeration = systemApplicationDetails.keys();
            int i = 1;

            SYSTEM_APPLICATIONS[0] = "APPLICATIONS";
            while (enumeration.hasMoreElements()) {
                Object object = (Object) enumeration.nextElement();
                SYSTEM_APPLICATIONS[i] = object.toString();
                i++;
                // if(i == 10)break;
            }

            appChoiceField = new ObjectChoiceField("Label :",
                    SYSTEM_APPLICATIONS, 0, ChoiceField.FIELD_LEFT);

        }
    }
------------------------------------------------------------------------------------------------------------------------

 

Thanks in advance

 

Joe

Developer
Posts: 61
Registered: ‎05-21-2009
My Device: Not Specified

Re: BB application list working with curve but not working with bold

It is perfectly working in the bold simulator. But not in the actual phne