Here is what I'm trying to do:
I wanted to create an android app to capture email address and phone number of the android phone.
And then, use those information to prepopulate a multi submit web form.
Say, I have a form http://unlimited-trials.com/mobijob/search.php (just think of it as text boxes for email address and phone number). If this link is opened in my phone it should be populated with my email address and phone number.
I already have a form and I can already capture phone number and email add on my app using this code below:
tMgr =(TelephonyManager)this.getSystemService(Context.TELEPHONY_SERVICE);
mPhoneNumber = tMgr.getLine1Number();
My problem is on how to populate this data to my form. Please let me know if I'm on the right track here. Thanks
Edit:
I tried Sir Milos' idea:
HTML Code:
<input class="ui-input-text ui-body-a ui-corner-all ui-shadow-inset" data-theme="a" id="location" name="location" type="text">
Android Code:
webView.loadUrl("javascript: document.forms['location'].value ='" + somevalue+ "')");
But it didn't work. I don't know why.