I can't seem to figure this one out. I hope someone can help.
All of my applications keep information in the Prefs area, using
PrefSetAppPreferences to save the data and PrefGetAppPreferences to retrieve
it. One of the things I like about this is that I can keep track of whether
a user has registered, and even if they delete the application, the Prefs
area stays. This allows at least a small amount of copy protection in that
a user can't just delete and reinstall the application when the time period
is over.
I recently did a major upgrade on one of my apps, and now I notice that
deleting the application also deletes the Prefs. If I change the AppType
(Creator ID) that I pass to the two functions above, all works well.
Deleting the app leaves the Prefs information. But for some reason if I use
the previous value of the AppType, the Prefs go away when the app is
deleted.
I think the Prefs are being written out correctly. When I exit the app and
come back in, the state is restored correctly. The original app was
developed for V3.0, and the updates that I just made are for V3.5. If you
have any clues about this, please let me know.
Thanks,
Mike Walters
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/