The white rectangular area (which cover whole screen when MMedia banner is displayed) exists on devices with Android 4.0+ while using only the pure Java code. Adding lines which specify width and height doesn't fix a thing (white screen still persists). Hope the issue will get investigated by Millennial team. Cheers
MMSDK.initialize(this);
millennialView = new MMAdView(this);
millennialView.setApid(MILLENNIAL_BANNER_ID);
millennialView.setId(MMSDK.getDefaultAdId());
RelativeLayout.LayoutParams lay2 = new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT);
lay2.addRule(RelativeLayout.ALIGN_PARENT_TOP);
layout.addView(millennialView, lay2);
Map<String, String> metaData = new HashMap<String, String>();
metaData.put("width", "480");
metaData.put("height", "60");
MMRequest mmediaRequest = new MMRequest();
mmediaRequest.setMetaValues(metaData);
millennialView.setMMRequest(mmediaRequest);
millennialView.setListener(getMillennialListener());
millennialView.getAd();
I've ended up putting all the MMedia related code to the xml file and wrapping it with android:layout_width="480dp" android:layout_height="60dp"