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
Post a Comment