I am trying to insert a java string into phonegap javascript.
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
String myName = "Xxxxx";
super.loadUrl("file:///android_asset/www/login.html");
}
I just want to insert myName string into login.html so that I can use the string from javascript. Any idea plz?
is there any simpler way except plugin, like localstorage or anything else?
If it is must to make a plugin, then what is the way to fetch this string from here into that plugin?
I am new in both phonegap and android. Plz help.