简体   繁体   中英

How to call a javascript function and get the html code it returns ,Java,Android

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");

可以在以下位置找到有关Java和JavaScript如何使用Android中的WebView相互调用的示例: http : //code.google.com/p/apps-for-android/source/browse/trunk/Samples/WebViewDemo/src /com/google/android/webviewdemo/WebViewDemo.java

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM