[Logo] FantasticX Support - FantasticX Support
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
banner unable to display (Android)  XML
Forum Index » FantasticX SDK Support
Author Message
howehxli@Hotmail.com



Joined: 01/07/2012 19:58:11
Messages: 5
Offline

I followed the FantasticX SDK (Android documentation) of the Banner part, but it doesn't show anything on android emulator.

I put this code in my activity, added the appkey, appcode, uses-permission and create a ad_layout for it, is there anything else to add?

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);

//Create the FTUIBannerAdView
FTUIBannerAdView adView = new FTUIBannerAdView(this);

//Find the layout your are going to add the adView
LinearLayout layout = (LinearLayout)findViewById(R.id.ad_layout);

//Add the adView to the layout
layout.addView(adView);

//Load the banner
adView.load();

}
FX Support



Joined: 01/07/2012 08:36:56
Messages: 73
Offline

Did you enable the banner on the console?

http://www.fantasticx.com/forum/posts/list/22.page
[WWW]
 
Forum Index » FantasticX SDK Support
Go to:   
Powered by JForum 2.1.9 © JForum Team