rockhack
rockhack

Reputation: 55

how to pass data from activity to webview with external website

I am making an app for tracking courier. the user will enter tracking no.in apps textview and click submit this will open couriers website tracking page i.e fedex in a webview inside the App.

Now i want a way to pass those tracking no from my app to webview's website input field and click the submit button on the website automatically

Upvotes: 0

Views: 602

Answers (1)

Mohammad Abbas
Mohammad Abbas

Reputation: 245

I don't think this the way you should do that, you should look for a url that takes the tracking location number as a query and return the proper page

something like that http://example.com/over/there?number=441222

Update

I've looked at the page you've mentioned in the comments and all I can get is that it submits a post request as a form input

POST url: https://www.myutiitsl.com/PAN_ONLINE/PANTrackerSearch.action parameter names are appNo panNo

I wish I had more knowledge as a web developer but this the way that could work with you try to make sure the post url is correct and the parameters I mentioned also correct and it should work with you

Upvotes: 2

Related Questions