android - Why does it say "unfortunately -- has stopped"? -


i'm working on note app. pretty new , wonder why says "unfortunately -- has stopped". start activity called start , when button pressed should "pg2" activity app stopps. think abot getsharedpreferences. please help, here link: https://dl.dropboxusercontent.com/u/97063669/error.png

error text

assuming error occurs when click of reftext, error caused when attempt string string out of shared preferences. should supply actual string, empty one, default rather null.

so line like:

final string string=sgareprefences.getstring("string", ""); 

Comments

Popular posts from this blog

PHPMotion implementation - URL based videos (Hosted on separate location) -

javascript - Using Windows Media Player as video fallback for video tag -

c# - Unity IoC Lifetime per HttpRequest for UserStore -