Home > Back-end >  Why am I getting the default value the first time running the app?
Why am I getting the default value the first time running the app?

Time:11-25

I'm following the steps US

Expectation: -1

I realize the default value is US, but their codelab default is also US, yet the codelab says it should display first time -1.

default

CodePudding user response:

I still don't know why, but I went ahead and recreated the project and this time I checked the sub-screens settings when creating a settings activity template to create various settings screens instead of the root_preferences screen.

subscreens

This time I see -1 displayed the first time so it's working this way now.

  • Related