manager = new LocalActivityManager(this , true);
manager.dispatchCreate(savedInstanceState);
viewList=new ArrayList<View>();
for (int i = 0; i < ids.length; i++) {
ImageView iv = new ImageView(this);
iv.setImageResource(ids[i]);
ViewGroup.LayoutParams params = new ViewGroup.LayoutParams(
ViewGroup.LayoutParams.FILL_PARENT,
ViewGroup.LayoutParams.FILL_PARENT);
iv.setLayoutParams(params);
iv.setScaleType(ScaleType.FIT_XY);
viewList.add(iv);
}
Intent intent = new Intent(getApplicationContext(), A.class);
viewList.add(getView("A", intent));