Android and androidadt
Save the user's first use status (SharedPreferences)
Address: http://blog.csdn.net/caroline_wendy
UserFirst LoginYou may needUser Education, Explains interface operations, but should not be displayed in the future login, You need to record the user login status; can useSharedPreferencesRecord.
In the library, you can useEncapsulated PreferenceUtils class libraryThe usage is as follows:
Boolean hasShown = PreferenceUtils. get (this, FIRST_ACCESS_VOICE_PREF_TAG, false); if (! HasShown) {mPromptStub = (ViewStub) findViewById (R. id. promptcover_vstub_voice); mPromptLayout = (FrameLayout) mPromptStub. inflate (); mPromptLayout. setOnClickListener (mPromptListener); // listen to overwrite the box event PreferenceUtils. set (StartAskActivity. this, FIRST_ACCESS_VOICE_PREF_TAG, true );}
Determines whether it is true. If it is false, it is set to true.