how to find application size in blackberry by code?

前端 未结 2 699
时光取名叫无心
时光取名叫无心 2021-01-25 19:07

i want to know how to find application size in blackberry by code? I want to display application name which are running along with its size on click of button, so how should i d

相关标签:
2条回答
  • 2021-01-25 19:07

    Here the answer of your question. You will get your answer with this link.

    app details.

    public class readjad extends FullScreen{
    public readjad() {
          VerticalFieldManager vfm = new VerticalFieldManager(VERTICAL_SCROLL);
            ApplicationDescriptor desc = ApplicationDescriptor.currentApplicationDescriptor();
            CodeModuleGroup[] group = CodeModuleGroupManager.loadAll();
            if(group != null) {
                for( int i=0;i<CodeModuleGroupManager.getNumberOfGroups();i++) {
                    Enumeration e = group[i].getPropertyNames();
                    e.hasMoreElements();
                    vfm.add(new RichTextField("\n\nGroup: " + group[i].getName() ));
                    String name = (String)e.nextElement();
                    vfm.add(new RichTextField(name + ": " + group[i].getProperty(name)));
                    vfm.add(new RichTextField("Copyright" + ": " + group[i].getCopyright()));
                    vfm.add(new RichTextField("Vendor" + ": " + group[i].getVendor()));
                }
            } else {
                vfm.add(new RichTextField("Group is null"));
            }
           add(vfm);
        }
    }
    
    0 讨论(0)
  • 2021-01-25 19:21

    I gave some explanation please see this link

    https://stackoverflow.com/a/9074486/914111

    0 讨论(0)
提交回复
热议问题