RSS를 만들어 보고있는 한 사람입니다^^
여떠한 블로그를 참조해서 정상적으로 작동하는 것까지 실행했는데요
문제는 RSS리스트를 클릭한 후에 상세 페이지로 넘기는데
넘기기전에 상세페이지 URL이 한번 나오고 그 링크를 눌러야 넘어가도록되어있는구조인데요
제가 하고싶은건 리스트뷰에서 클릭시 상세 페이지 URL이 안나오고 바로 상세페이지로 넘어가게 하고싶은데
어떤 명령어를 써야하는지를 모르겠네요 ㅜㅜ
LIstActivity를 사용하였습니다..
protected void onListItemClick(ListView parent, View view, int position,
long id) {
Intent intent = new Intent(this, RssDetailActivity.class);
Bundle bundle = new Bundle();
bundle.putString("urlLink", mRssFeed.getItem(position).getLink());
intent.putExtras(bundle);
startActivity(intent);
super.onListItemClick(parent, view, position, id);
}
다른 것은 다 정상적이지만 이 부분만 어찌 수정하면될것가튼데... 조언부탁드릴게요^^
RssDetailActivity에요
package com.example.rssreader5;
import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;
public class RssDetailActivity extends Activity {
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("urlLink"));
}
}
여러분들의 조언부탁드릴게요^^