0

Im trying to put admob ads in my preferencescreen. I have looked around and i've found a few threads about this. Though i can't get i working. For example this:

Android Admob advert in PreferenceActivity

You have an activity as is supposted to be the launcher activity? Ain“t that activity supposted to be connected with the ad_layout.xml file in any way?

In my own application I have a class that extends PreferenceActivity, and in that way i can launch my preferencescreen with this line:

addPreferencesFromResource(R.xml.prefs);

Where should I do that in the "Admob in PreferenceActivity" example, linked above?

Im sorry if it got a bit unclear, in that case, please ask! Thanks!

Community
  • 1
  • 1
Sebastian
  • 2,698
  • 2
  • 17
  • 26

1 Answers1

0

Ah, I figured it out how they were connected. Used this example to understand: How do I create one Preference with an EditTextPreference and a Togglebutton?

Community
  • 1
  • 1
Sebastian
  • 2,698
  • 2
  • 17
  • 26