0

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");
2
  • Can you explain this in more detail? How does your question relate to Java and Android? Maybe posting some of the code you have tried would help put this into context... Commented Sep 24, 2010 at 17:23
  • Well finally i came accross with admob home ads that was what i was looking for at the end! Commented Sep 24, 2010 at 20:14

1 Answer 1

1

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

Sign up to request clarification or add additional context in comments.

1 Comment

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?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.