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

c# - Unity IoC Lifetime per HttpRequest for UserStore -

Change the color of an oval at click in Java AWT -

I am trying to solve the error message 'incompatible ranks 0 and 1 in assignment' in a fortran 95 program. -