As am getting article title on textview on first activity.how can i pass these textview to next activity...
I have used below code:
for ( j = 0; j <Appscontent.Sub_arraylisttwo.size(); j++)
{
LinearLayout ly = new LinearLayout(this);
ly.setOrientation(LinearLayout.VERTICAL);
ly.setOnClickListener(mArticleClick);
TextView tv = new TextView(this);
tv.setText(Appscontent.Sub_arraylisttwo.get(j));
ly.addView(tv);
lLayout.addView(ly);
}
int num=Integer.parseInt(number);
number=String.valueOf(num=num+1);
System.out.println("the Number Value Is"+number);
Appscontent.Sub_arraylisttwo.clear();
hSroll.addView(lLayout);
viewLayout.addView(headerText);
viewLayout.addView(hSroll);
verticalLayout.addView(viewLayout);
Log.i("12", "" + lLayout.getChildCount());}
}
private OnClickListener mArticleClick = new OnClickListener() {
@Override
public void onClick(View v) {
Intent in = new Intent(MainActivity.this, SubCate.class);
startActivity(in);
}
};
Here i have to click one article means that article name only pass to next activity and display that article title.. how can i do ??? please give me solution for these ???