I have a button inside my ListItem that I want to click and launch a new Activity.
In my CustomListAdapter class, I binded the button to an onClickListener but I have no idea how to launch an ActivityforResult from the Activity that contains the ListView.
public View getView(int position, View convertView, ViewGroup parent) {
View row = convertView;
PostHolder holder = null;
if(row == null)
{
holder.btnQuickAdd = (LinearLayout) row.findViewById(R.id.btnQuickAdd);
}
holder.btnQuickAdd.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
//Launch An Activity
}
});
I have found an Solution.