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
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);
}
}
I gave some explanation please see this link
https://stackoverflow.com/a/9074486/914111