[android-beginners] Re: Confusion with Preferences

2010-02-09 Thread katti
Hi, Thanks for the help. It worked. I had not set the default vale so it was giving null. Thanks again. Regards On Feb 6, 3:35 pm, katti wrote: > Thanks. I will check and let you know. Thanks again. > > On Feb 6, 1:45 pm, Mark Murphy wrote: > > > > > katti wrote: > > > Sorry I wasn't done but p

[android-beginners] Re: Confusion with Preferences

2010-02-06 Thread katti
Thanks. I will check and let you know. Thanks again. On Feb 6, 1:45 pm, Mark Murphy wrote: > katti wrote: > > Sorry I wasn't done but pressed send accidentally. So for the > >preferencesto be loaded the user must go to the settings and then > > start the game for the first time. This isn't a good

Re: [android-beginners] Re: Confusion with Preferences

2010-02-06 Thread Mark Murphy
katti wrote: > Sorry I wasn't done but pressed send accidentally. So for the > preferences to be loaded the user must go to the settings and then > start the game for the first time. This isn't a good option. Since there's no code to examine, it is difficult to provide you with much advice. Here

[android-beginners] Re: Confusion with Preferences

2010-02-06 Thread katti
Sorry I wasn't done but pressed send accidentally. So for the preferences to be loaded the user must go to the settings and then start the game for the first time. This isn't a good option. Thanks. On Feb 6, 1:35 pm, katti wrote: > Hi, >  " Is you game trying to use the pfrefences before they are

[android-beginners] Re: Confusion with Preferences

2010-02-06 Thread katti
Hi, " Is you game trying to use the pfrefences before they are set?" Let me just tell you what excatly happens: I install the game. Then click on the new button, I thought by then the preference should be loaded correct me if I am wrong, but no I get null for the preferences. So to check I alway h

[android-beginners] Re: Confusion with Preferences

2010-02-06 Thread Kitzy
Is you game trying to use the pfrefences before they are set? Preferences themselves are set on a device so even if you shut it off, it remembers them. You may need to check for null or empty string, or set a default preference. -Kitzy On Feb 5, 11:34 am, katti wrote: > Hi, >    I am developing