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

javascript - three.js lot of meshes optimization -

smartface.io - Proper way to change color scheme for whole application -

Email notification in google apps script -