views:

45

answers:

1

There is a HTML page that has a javascript function in it.This function returns a frame with a random picture. Is there a way to call this function and get the HTML code that is hidding? (So i get the image)

Exactly i want to get a html stream from GoogleServices.js by calling:

GS_googleAddAdSenseService("ca-pub-YOU
RPUBIDHERE");
  GS_googleEnableAllServices();
  GA_googleAddSlot("ca-pub-YOURPUBIDHERE", "ADSLOT_NAME_HERE");
  GA_googleFetchAds();
GA_googleFillSlot("ADSLOT_NAME_HERE");
+1  A: 

An example of how Java and JavaScript can call each other using a WebView in Android can be found here: http://code.google.com/p/apps-for-android/source/browse/trunk/Samples/WebViewDemo/src/com/google/android/webviewdemo/WebViewDemo.java

elevine
i was looking at that before, didn't help me.Even if i got the webview to return the right content how could i take the code?
weakwire