Im trying to add adsense code in one app that I have built. The adsense code is stored in a html file on my website. And this is how I call it:
WebView ads = (WebView) findViewById(R.id.topads);
ads.getSettings().setJavaScriptEnabled(true);
ads.loadUrl("http://www.site.com/code/adsense.html");
And on activity main xml:
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<WebView
android:id="@+id/topads"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
/>
</LinearLayout>
I tried setting LinearLayots to: android:layout_width="fill_parent" android:layout_height="fill_parent" And it does not work either.
On AndroidManifest.html I have added:
<uses-permission android:name="android.permission.INTERNET" />
All I see is a black container after webview loads. Im trying this on the
android emulator, using android 4.4.
Can someone help me?
Thanks in advance.

android:layout_height="match_parent"for LinearLayout. And yes, that url doesn't open in my browser. Getting message: "You found a page we don't have anymore or never had" - MysticMagicϡ