protected void onCreate(Bundle bundle) { super.onCreate(bundle); setContentView(0x7f030070); bundle = (RelativeLayout) findViewById(0x7f0a00be); mTimer = new Timer(); if (sSlot != null) { sSlot.setParameter("renderer.html.shouldUseDip", "true"); android.widget.RelativeLayout.LayoutParams layoutparams = new android.widget.RelativeLayout.LayoutParams(-1, -1); layoutparams.addRule(13); ViewGroup viewgroup = sSlot.getBase(); viewgroup.setLayoutParams(layoutparams); try { ((ViewGroup) viewgroup.getParent()).removeView(viewgroup); } catch (Exception exception) { } bundle.addView(viewgroup); sSlot.play(); mTimer.schedule(new HomeTask(), 5000L); return; } else { mTimer.schedule(new HomeTask(), 0L); return; } }
public static void setSlot(ISlot islot) { sSlot = islot; if (sSlot != null) { sSlot.setParameter("renderer.html.shouldUseDip", "true"); } }