Moving activity to another activity when class extends ArrayAdapter
<p>when i click to edit_remainder button i want to move my activity to another activity . But here the class extends ArrayAdapter .  so i am not getting how to move to another activity.</p>

<p>please help me with an example of Intent class.</p>

<p>public class mylist extends ArrayAdapter implements OnClickListener 
{</p>

<pre><code>private final Context context;
private final String[] values;
Button edit_remainder;

public mylist(Context context, String[] values) {
    super(context, R.layout.some, values);
    this.context = context;
    this.values = values;
}
@Override
public View getView(int position, View convertView, ViewGroup parent) {
    LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
    View rowView = inflater.inflate(R.layout.buttonadd, parent, false);
    edit_remeinder=(Button) rowView.findViewById(R.id.btnEdit);
    edit_remeinder.setOnClickListener(this);
    return rowView;
}

public void onClick(View v) {
    Toast.makeText(getContext(), "hi", 1000).show();
    // please enter moving code here

}
</code></pre>

<p>}</p>
