1
我想知道如何通過代碼找到黑莓手機的應用程序大小? 我想顯示應用程序的名稱,隨着它的大小,按下按鈕,所以我應該怎麼做?如何通過代碼找到黑莓手機的應用程序大小?
我想知道如何通過代碼找到黑莓手機的應用程序大小? 我想顯示應用程序的名稱,隨着它的大小,按下按鈕,所以我應該怎麼做?如何通過代碼找到黑莓手機的應用程序大小?
我給了一些解釋,請參閱此鏈接
這裏是你的問題的答案。 您將通過此鏈接得到您的答案。
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);
}
}
你能告訴我該怎麼做準確讀音字全新至BB?一個例子,通過點擊按鈕顯示它...........請 – iWatch
它顯示我「組爲空」。其實我已經得到了正在運行的應用程序名稱,但我希望他們的內存大小也....這個應用程序顯示我是組爲null爲什麼它是這樣的? – iWatch
此代碼將提供應用程序的完整詳細信息,但不能提供應用程序的大小。 對不起。 –