Issue
I'm trying to make a WebView which ask user only the first time to insert the URL and then it will be saved and opened automatically on next run.
Solution
Use SharedPreference:
SharedPreferences sp = getSharedPreferences(PREFERENCE_NAME, Context.MODE_PRIVATE);
sp.edit().putString(URL, url).commit(); //save
sp.getString(URL, null); //load
Answered By - CrazyOrr
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.