앞서 질문에 답변을 받았는데 잘 이해가안가서 다시올려봐요..
public void onListItemClick(ListView parent, View view, int position, long id) {
Intent intent = new Intent(this, RssDetailActivity.class);
Bundle bundle = new Bundle();
bundle.putString("gogo", mRssFeed.getItem(position).getLink());
intent.putExtras(bundle);
startActivity(intent);
super.onListItemClick(parent, view, position, id);
}
위코드는 ListActivity를 사용해서 나온 함수구요 Intent로 클래스를 넘겨주는데요
public class RssDetailActivity extends Activity {
private RssFeed mRssFeed = null;
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.detail);
TextView detailsLink = (TextView)findViewById(R.id.detailslink);
Bundle bundle = this.getIntent().getExtras();
detailsLink.setText(bundle.getString("gogo"));
}
}
궁금한 것은 여기서 리스트뷰로 나와있는 것을 클릭할 시
상세 내용 Url 주소가 나오고 그것을 누르면 상세 페이지로 넘어가는데요
Url주소가 안뜨고 바로 상세 페이지로 넘길 수 있는 법없을까요?
앞서 답변을 받았으나 제가 이해를 제대로못하였고, 하나씩 전부 주소를 입력해줘야되나? 이런 생각도해서
다시한번 조언구하려고 올려봐요.