Jefferson Samuel wrote:
Hello All,

I am pluging 30 day trial period counter in my application. I have created a
registration database with a different creator ID to store my Key
information.

I want to prevent a user from being able to delete a database from the
device.  I have been trying to hide the database, with no luck.
DmSetDatabaseInfo does not raise an error, but the database still shows up
in the Launcher's list of items that can be deleted.

Code:
   DmOpenDatabaseInfo(licedb, &dbID, NULL, NULL, &cardNo, NULL);
    DmDatabaseInfo(cardNo, dbID, NULL, &attributes, NULL, NULL,
       NULL, NULL, NULL, NULL, NULL, NULL, NULL);
    //attributes |= dmHdrAttrCopyPrevention;
    //attributes |= dmHdrAttrCopyPrevention | dmHdrAttrHidden;
    attributes |= dmHdrAttrHidden;
    err = DmSetDatabaseInfo(cardNo, dbID, NULL, &attributes, NULL, NULL,
       NULL, NULL, NULL, NULL, NULL, NULL, NULL);


http://www.escribe.com/computing/pcpqa/m16715.html

There is no way to prevent a database from being deleted.

saved preference is not my choice. I want to prevent him from deleteing &
reinstalling.

You can save the preferences w/ a different Creator ID just like you're doing w/ the database. I think that will keep it from being deleted when your app is deleted.


What about storing the info in a resource record in your application db. Anyone know if that's possible?

--
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to