I want to start a new activity from this base adapter.
public class EfficientAdapter extends BaseAdapter {
private Activity activity;
private ArrayList
set clickListener on listview in mainactivity from there start the intent
lv.setAdapter(adapter);
lv.setOnItemClickListener(new OnItemClickListener()
{
@Override public void onItemClick(AdapterView> arg0, View arg1,int position, long arg3)
{
Intent intent = new Intent(getActivity,Test.class);
startActivity(intent);
}
});