Inserting Admob PreferenceScreen / lwp_settings.xml

Discussion in 'Archive - LWC 2.1' started by Vinicius, Apr 16, 2013.

  1. Vinicius In the know

    Member Since:
    Apr 16, 2013
    Message Count:
    25
    Likes Received:
    7
    Trophy Points:
    25
    Hi I need to insert admob lwp_settings.xml the file,but I'm not getting! Could someone help me!

    I can not insert a LinearLayout inside a PreferenceScreen.

    Help me!

    Sorry my english .. I'm from Brazil ... rsrsrsrsrs


    Insert admob in this file ...




    <?xml version="1.0" encoding="utf-8"?>


    <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
    android:key="settings"
    android:title="Settings" >

    <PreferenceCategory
    android:key="main_preference_category"
    android:title="Made with Live Wallpaper Creator :)" >

    <Preference
    android:key="demo_tag"
    android:summary="Get the full version to enable settings such as item speed, direction and hit counters"
    android:title="This is a free version" />

    <CheckBoxPreference
    android:key="hide_items"
    android:summary="Do not display moving items. Only background is visible. Hit Counter is also disabled"
    android:title="Hide Items" />
    <CheckBoxPreference
    android:key="disable_interaction"
    android:summary="Touching moving items has no effect"
    android:title="Disable Interaction" />

    <ListPreference
    android:defaultValue="@string/direction"
    android:entries="@array/direction_entries"
    android:entryValues="@array/direction_values"
    android:key="direction_settings"
    android:summary="Choose direction of moving items"
    android:title="Direction" />
    <ListPreference
    android:defaultValue="slow"
    android:entries="@array/speedNames"
    android:entryValues="@array/speedValues"
    android:key="speed_settings"
    android:summary="Select movement speed of items"
    android:title="Speed" />
    <ListPreference
    android:defaultValue="hide"
    android:entries="@array/counterNames"
    android:entryValues="@array/counterValues"
    android:key="counter_settings"
    android:summary="Display a hit counter in the background"
    android:title="Hit Counter" />
    </PreferenceCategory>

    </PreferenceScreen>

    I tried to put it inside PreferenceScreen , but it did not work! Follow the Code:



    <com.google.ads.AdView android:id="@+id/adView"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    ads:adUnitId="a151519f7a54ad6"
    ads:adSize="BANNER"
    ads:loadAdOnCreate="true"/>
  2. Vas Origin

    Member Since:
    Jan 4, 2012
    Message Count:
    770
    Likes Received:
    167
    Trophy Points:
    500
  3. Vinicius In the know

    Member Since:
    Apr 16, 2013
    Message Count:
    25
    Likes Received:
    7
    Trophy Points:
    25
  4. Vas Origin

    Member Since:
    Jan 4, 2012
    Message Count:
    770
    Likes Received:
    167
    Trophy Points:
    500
    You can put banners into settings using the method shown in that link. Maybe I'll do a tutorial on that sometime (so many tutorials piling up for me :eek:)
    If you want to use other advertising methods, there are plenty already discussed here on these forums. Look around in the Advertising Discussion and the Tutorials sections.
  5. Vinicius In the know

    Member Since:
    Apr 16, 2013
    Message Count:
    25
    Likes Received:
    7
    Trophy Points:
    25
    Tank You Vas!

    =D
  6. martha lui New Guy

    Member Since:
    Mar 29, 2015
    Message Count:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Please help me about that i also want ti add admob banner in preference activity. I tried above method but didn't work for me. So please help....
  7. leilei3915 Keeps coming back

    Member Since:
    Nov 13, 2018
    Message Count:
    10
    Likes Received:
    0
    Trophy Points:
    10
    20181113 leilei3915
    ralph lauren outlet

    christian louboutin shoes

    red bottoms

    michael kors outlet online

    cheap ray ban sunglasses

    coach outlet online

    ray ban sunglasses

    uggs outlet online

    coach factory outlet

    longchamp outlet online

    ugg outlet

    canada goose

    ugg boots clearance

    canada goose outlet store

    nba jerseys wholesale

    pandora jewelry

    coach factory outlet

    ugg boots

    herve leger dresses

    uggs outlet

    canada goose jackets

    ralph lauren polo

    ugg boots

    uggs outlet

    pandora outlet

    canada goose outlet store

    canada goose coats

    christian louboutin shoes

    cheap ray ban sunglasses

    oakley sunglasses wholesale

    uggs outlet

    pandora charms sale clearance

    air jordan shoes

    christian louboutin shoes

    mbt outlet

    michael kors handbags outlet

    mulberry handbags sale

    longchamp handbags

    true religion outlet store

    coach factory outlet

    christian louboutin shoes

    canada goose jackets outlet

    ugg boots clearance

    ugg boots clearance

    san antonio spurs

    cheap oakley sunglasses

    coach outlet store online

    ralph lauren outlet

    michael kors outlet clearance

    kobe bryants shoes

    michael kors outlet store

    coach outlet online

    christian louboutin

    michael kors outlet

    uggs outlet online

    air max 90

    pandora charms outlet

    fitflops shoes

    coach outlet online

    swarovski crystal

    coach outlet

    ugg boots outlet

    tory burch outlet store

    pandora jewelry

    canada goose outlet store

    ed hardy outlet

    nike outlet online

    coach outlet store online

    golden state warriors jersey

    ugg boots

    ugg outlet online

    coach outlet online

    true religion outlet

    kate spade outlet online

    coach outlet online

    chrome hearts outlet store

    ugg boots

    fitflops sale clearance

    cheap jordans

    ugg outlet store

    kobe shoes

    adidas crazy

    pandora outlet

    pandora outlet

    ugg boots

    ugg boots clearance

    supra shoes sale

Share This Page