Caslor
Android Fan
Profile
Posts: 191
Reg: Jul 26, 2013
athens
1,910
03/23/14 01:18 AM (10 years ago)

Admob adds - android

Hi my friends. i have added some Admob adds in my application. i have two version of my app. one with Btv2 core version and one with Btv3 core version. in both version have manage to make them work (with the help of previous posts and the tutorials) My app consists from 4 screen plugins image advange menu = admob works fine htlml pro = admob works fine simple quiz= admob works with some issues menu buttons = Never make them work here has any one make them work in this screen plug-in ?? is any special procedure in order to make them work there? thanks in adance ps : will post later the problem with quiz screen as i am out of my pc now and want to attach some pictures to see where is the problem
 
KennedyE
Android Fan
Profile
Posts: 373
Reg: Dec 07, 2013
PH, Nigeria
3,730
like
03/23/14 08:23 AM (10 years ago)
if it work for one that means it will work for all...
 
Caslor
Android Fan
Profile
Posts: 191
Reg: Jul 26, 2013
athens
1,910
like
03/24/14 12:41 AM (10 years ago)
unfortunately never manage to make it work in this cind of plugin (menu buttons) Maybe needs something more to work.... i will post details later this day...
 
Caslor
Android Fan
Profile
Posts: 191
Reg: Jul 26, 2013
athens
1,910
like
03/24/14 09:06 AM (10 years ago)
ok here is a screenshot from my application.. in menu buttons how it apears without the admob adda http://i30.photobucket.com/albums/c316/caslor_1978/diafora/application/2014-03-24-17-09-38_zpsa9283343.jpg this is the info from plugin ''BT_screen_menuListButtons.java is the Activity class that displays the buttons. The layout is handled by screen_menubuttons.xml for the activity. Each button is represented in the menu_buttons_item.xml file. The screen uses an Android ScrollView to manage button scrolling.'' so in ''BT_screen_menuListButtons.java'' i add this to import http://i30.photobucket.com/albums/c316/caslor_1978/diafora/application/Clipboard03_zpsdb7bb77b.jpg and then this lines : http://i30.photobucket.com/albums/c316/caslor_1978/diafora/application/Clipboard04_zpsc30c65a3.jpg then in xml file ''screen_menubuttons.xml'' i add this lines : http://i30.photobucket.com/albums/c316/caslor_1978/diafora/application/Clipboard05_zpsd1976bc7.jpg i think that has something to do with the scroll view
 
Caslor
Android Fan
Profile
Posts: 191
Reg: Jul 26, 2013
athens
1,910
like
03/24/14 09:52 AM (10 years ago)
And here is the problem i have with the simple quiz and displaying add to it i am placing the admob code to my xml file http://i30.photobucket.com/albums/c316/caslor_1978/diafora/application/Clipboard01_zpse433b6cd.jpg and i have this problem in my app : http://i30.photobucket.com/albums/c316/caslor_1978/diafora/application/2014-03-24-17-07-36_zpsf86aad1f.jpg the header image is going back from the selection buttons Now if i change the admob code by removing the line ''android:layout_alignParentBottom="true" '' or replacing it with this line ''android:layout_alignParentTop="true" '' http://i30.photobucket.com/albums/c316/caslor_1978/diafora/application/Clipboard02_zps0de16dab.jpg the add is at the top but hides the image and this is not good as the images are part of the questions in my quiz http://i30.photobucket.com/albums/c316/caslor_1978/diafora/application/2014-03-24-09-45-43_zps67a1ed35.jpg
 
KennedyE
Android Fan
Profile
Posts: 373
Reg: Dec 07, 2013
PH, Nigeria
3,730
like
03/25/14 04:21 AM (10 years ago)
I think this kind of ads banner covering buttons and app content, need to be fixed by android plugin developers, the android plugin developers should create space(top and bottom) for us to display banner ads in every plugin. I suggest you open a new thread calling android plugin developers in BT market to fix ads banner covering buttons and app content, using these picture examples above ... Every android plugin should have space(top and bottom) to display banner ads...
 
Caslor
Android Fan
Profile
Posts: 191
Reg: Jul 26, 2013
athens
1,910
like
03/25/14 04:42 AM (10 years ago)
thanks did you see and the previous post with the menu buttons pluging? it is above the one i post with the quiz menu problem in this one (menu buttons) cant display the adds...
 
Caslor
Android Fan
Profile
Posts: 191
Reg: Jul 26, 2013
athens
1,910
like
03/26/14 06:27 AM (10 years ago)
ok fixed :) i make a small app in order to experiment with the adds to this screens/plugins Thanks to the graphic interface of the eclipse i manage to solve the problem for the menu buttons menu screen the solution i found and worked for me is this one : in the xml file i went and place the admob code to the top before scrol view http://i30.photobucket.com/albums/c316/caslor_1978/diafora/application/yu1_zpsb3c64dcb.jpg here it is how was before the code http://i30.photobucket.com/albums/c316/caslor_1978/diafora/application/yu7_zpsd7698151.jpg and here is after the code to the right place http://i30.photobucket.com/albums/c316/caslor_1978/diafora/application/yu2_zps5947a6d0.jpg take a notice the blue arrow that points the order of the admob to the tree at left red arrow points to the admob where would be apear at the app i found solution that worked well both in protrait and landscape for admob at top displaying at the bottom didnt work for landscape ------------------------------------------------------------------ Here it is the solution i found for quiz menu... works fine with scroll option added.. copy and replace the text below to the quiz xml file in layout folder <?xml version="1.0" encoding="utf-8"?> <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" > <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/containerView" android:background="@android:color/transparent" android:layout_height="fill_parent" android:layout_width="fill_parent" xmlns:app="http://schemas.android.com/apk/res-auto"> <RelativeLayout android:id="@+id/layoutButtons" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@+id/imgQuestion" android:orientation="vertical" android:gravity="center_horizontal" android:layout_marginTop="40dip" xmlns:android="http://schemas.android.com/apk/res/android" > <Button android:id="@+id/btnAnswer_1" android:layout_width="fill_parent" android:layout_height="58dip" android:gravity="center_vertical|center_horizontal" android:layout_marginLeft="5dip" android:layout_marginRight="5dip" android:text="Answer 1" android:textSize="18dip" android:layout_below="@+id/txtScore" /> <Button android:id="@+id/btnAnswer_2" android:layout_width="fill_parent" android:layout_height="58dip" android:gravity="center_vertical|center_horizontal" android:layout_marginLeft="5dip" android:layout_marginRight="5dip" android:layout_marginTop="5dip" android:textSize="18dip" android:text="Answer 2" android:layout_below="@+id/btnAnswer_1" /> <Button android:id="@+id/btnAnswer_3" android:layout_width="fill_parent" android:layout_height="58dip" android:gravity="center_vertical|center_horizontal" android:layout_marginLeft="5dip" android:layout_marginRight="5dip" android:layout_marginTop="5dip" android:textSize="18dip" android:text="Answer 3" android:layout_below="@+id/btnAnswer_2" /> <Button android:id="@+id/btnAnswer_4" android:layout_width="fill_parent" android:layout_height="58dip" android:gravity="center_vertical|center_horizontal" android:layout_marginLeft="5dip" android:layout_marginRight="5dip" android:layout_marginTop="5dip" android:textSize="18dip" android:text="Answer 4" android:layout_below="@+id/btnAnswer_3" /> </RelativeLayout> <com.google.android.gms.ads.AdView xmlns:ads="http://schemas.android.com/apk/res-auto" android:id="@+id/adView" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignParentBottom="true" ads:adUnitId="Your_admob_id_here" ads:adSize="SMART_BANNER"/> <ImageView android:id="@+id/imgQuestion" android:layout_width="300dip" android:layout_height="150dip" android:layout_alignParentTop="true" android:layout_centerHorizontal="true" android:gravity="center_vertical|center_horizontal" android:scaleType="centerCrop" android:src="@drawable/bt_screen_quiz_bgsmall" /> <ImageView android:id="@+id/imgRight" android:layout_width="85dip" android:layout_height="85dip" android:scaleType="centerCrop" android:src="@drawable/bt_screen_quiz_star" android:layout_alignParentTop="true" android:layout_alignParentLeft="true" android:layout_marginTop="125dip" /> <ImageView android:id="@+id/imgWrong" android:layout_width="85dip" android:layout_height="85dip" android:scaleType="centerCrop" android:src="@drawable/bt_screen_quiz_wrong" android:layout_alignParentTop="true" android:layout_alignParentRight="true" android:layout_marginTop="125dip" /> <ImageView android:id="@+id/imgBonus" android:layout_width="85dip" android:layout_height="85dip" android:scaleType="centerCrop" android:src="@drawable/bt_screen_quiz_1x" android:layout_alignParentTop="true" android:layout_alignParentLeft="true" android:layout_marginTop="125dip" /> <TextView android:id="@+id/txtTimer" android:layout_width="fill_parent" android:layout_height="30dip" android:textSize="14dip" android:textColor="#FFFFFF" android:background="@android:color/transparent" android:text="" android:layout_below="@+id/layoutButtons" android:gravity="center_vertical|center_horizontal" /> <TextView android:id="@+id/txtScore" android:layout_width="fill_parent" android:layout_height="40dip" android:background="@android:color/transparent" android:gravity="center_vertical|center_horizontal" android:text="0" android:textColor="#FFFFFF" android:textSize="23dip" /> <TextView android:id="@+id/txtQuestion" android:layout_width="300dip" android:layout_height="150dip" android:layout_centerHorizontal="true" android:layout_marginTop="0dip" android:background="@android:color/transparent" android:gravity="center_vertical|center_horizontal" android:maxLines="10" android:textColor="#FFFFFF" android:textSize="26dip" /> </RelativeLayout> </ScrollView>
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.