I am trying to set an application's Category
programatically. For
example, you can go to the Launcher > Category... menu
option and
change an application's category.
However, I have'nt had any luck with it. Where is the
Category
information stored? I looked in the AppInfo block but
that is not set
for most apps; I'm trying to look for
defaultCategoryRscType but that
does'nt seem to work either...
Here is the code snippet -
---------------------------
numRsc = DmNumResources(dbRef);
for(resIndex=0; resIndex < numRsc; resIndex++) {
err = DmResourceInfo(dbRef, resIndex,
&resType, &resID,
&locID);
if(resType == defaultCategoryRscType) {
bFound = true;
break;
}
}
if(bFound) {
resP = (Char *)MemLocalIDToLockedPtr(locID,
0);
FrmCustomAlert(GenericAlert, "Category:",
resP, NULL);
MemPtrUnlock(resP);
}
---------------------------
Questions:
How does one get/set an app's category
programmatically?
Is it even possible for one app to change another
app's category
resource?
Thanks,
Vinay
__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/