Android: It is possible to load an activity as a view?
<p>For example like,</p>

<p>View v = MapActivity.class;</p>

<p>below works as an activity but it doesnt work when i try to build the view with an adapter.</p>

<pre><code>    setContentView(R.layout.zoommain);

mZoomControl = new DynamicZoomControl();

mBitmap = BitmapFactory.decodeResource(getResources(), R.drawable.image800x600);

mZoomListener = new LongPressZoomListener(getApplicationContext());
mZoomListener.setZoomControl(mZoomControl);

//not working... loading custom view
mZoomView = (ImageZoomView)findViewById(R.id.zoomview);
//mZoomView = (ImageZoomView)context.getResources().findViewById(R.id.zoomview);
//context.getResources()
mZoomView.setZoomState(mZoomControl.getZoomState());
mZoomView.setImage(mBitmap);
mZoomView.setOnTouchListener(mZoomListener);

mZoomControl.setAspectQuotient(mZoomView.getAspectQuotient());

resetZoomState();
</code></pre>
