0

I am trying to pass http variables to a page on my website containing some PHP code, and retrieve a response using Android.

I directed URL.openStream() to the desired website, and collected the first string using BufferedRaader, but it gave me the first line of the source code, as opposed to what a browser would see if it were navigating the page.

This question is difficult to ask because I am not familiar enough with web language to describe exactly what I want, but...

Using Android, How would I retrieve what my browser sees on a page, and not the actual source code for the page?

Will Thomson
  • 875
  • 6
  • 19

1 Answers1

1

I think "webview" is what you are looking for.

Useful link: http://developer.android.com/reference/android/webkit/WebView.html

Deepak
  • 111
  • 9
  • I wasn't able to find a simple way to get a String from WebView that represented the displayed content, but you pointed me in the right direction; http://stackoverflow.com/questions/8200945/how-to-get-html-content-from-a-webview thank you! – Will Thomson Feb 03 '14 at 08:06