Thanks for your reply ...
In this function                                                                       PrefSetAppPreferences (advrDBCreator, appPrefID, appPrefVersionNum, &Phone,
                           sizeof (PNumberType), true);
only PNumberType is declared as the global structure.
 
Should i make it local too. If yes then can i access it while application is on or off ?


Neil Whitworth <[EMAIL PROTECTED]> wrote:
You should be able to access the prefs database when you are not the
current app. But remeber that you do not have access to your global
variables.

Prashant Batra wrote:
> Actually my application senses phone call and stores the data throgh
> PrefSetAppPreferences.
> It is working ok when my application is running but as my application
> can also sense the phone call while not running, when i use
> PrefSetAppPreferences at that time my system crashes.
>
>
> Is there any solution or should i make a new database that is accesible
> to both
>
>
>
>
> */Douglas Handy <[EMAIL PROTECTED]>/* wrote:
>
>
> >Can we access the appPreferences of one application from another
> if the former is not running currently ?
>
> Of course you can - that's how preference viewer / editor utilties
> work. :)
>
> The better question is what you'd do with it. By definition, the
> usage of
> meaning of any given app preference is determined by the app itself.
> So unless
> it is your own app or you have access to the source or reverse
> engineer what it
> stores, the information may not be too useful.
>
> Trying to change another app's preferences may cause unpredictable
> behavior if
> you create an incompatible combination of preferences. But viewing
> should be
> save.
>
> --
> For information on using the PalmSource Developer Forums, or to
> unsubscribe, please see http://www.palmos.com/dev/support/forums/
>
>
>
>
> */Cordially
> _Prashant Batra_/*
> È*:+91-9891420986*
>
>
>
>
> ------------------------------------------------------------------------
> Yahoo! India Answers: Share what you know. Learn something new Click
> here
>
>

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



Cordially
Prashant Batra
È:+91-9891420986
 
 


Yahoo! India Answers: Share what you know. Learn something new Click here -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Reply via email to