Android WebView: Insert dynamic URL once -


i'm trying make webview ask user first time insert url , saved , opened automatically on next run.

use sharedpreference:

sharedpreferences sp = getsharedpreferences(preference_name, context.mode_private); sp.edit().putstring(url, url).commit(); //save sp.getstring(url, null); //load 

Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -