[안드로이드] XMLPullParser를 이용한 RSS 파싱과 구글 & 네이버 OpenAPI를 활용한 국가별 정보검색
*훈
다운로드
장바구니
소개글
본 프로젝트는 RSS 파싱과 구글맵을 이용한 프로젝트로써,사용자가 입력한 국가의 뉴스, 관련정보, 위치 등을 표시해 주는 어플리케이션입니다.
모든 내용에는 상세한 주석이 달려있습니다.
목차
1. 프로젝트 설명2. 프로젝트 소스 설명
3. 프로젝트 실행 화면
본문내용
public class Tab_Activity extends TabActivity{/** Called when the activity is first created. */
static String search_nation = ""
// 1. 옵션값을읽어오기위하여SharedPreferences 사용
SharedPreferences pref
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.tab_activity);
// 2. SharedPreferences를이용하여저장된데이터값를얻어옴
pref = getSharedPreferences("pref", Activity.MODE_PRIVATE);
search_nation = pref.getString("edt_Nation", "대한민국");
// 3. Intent를 통하여로그인을시도한ID 추출
Intent i = new Intent(this.getIntent());
Toast.makeText(Tab_Activity.this, i.getStringExtra("Login")+"님의접속을환영합니다.n기본데이터소스는" + i.getStringExtra("Source")+"로지정되어있습니다.", Toast.LENGTH_LONG).show();
Resources res = getResources();// Resource object to get Drawables
// 4. TabHost 객체추가
TabHost tabHost = getTabHost();// The activity TabHost
TabHost.TabSpec spec;// Resusable TabSpec for each tab
// 5. 인텐트객체생성
Intent intent;// Reusable Intent for each tab
// 6. intent 객체생성및설정
intent = new Intent().setClass(this, Home_Activity.class);
intent.putExtra("Search", search_nation);
// 7. 탭버튼에대한세부설정(식별자, 명칭, 이미지, 클릭에대한전환)
spec = tabHost.newTabSpec("Home").setIndicator("Home",
res.getDrawable(R.drawable.ic_tab_home))
참고 자료
없음압축파일 내 파일목록
JoHoon_FinalTerm/assets/
JoHoon_FinalTerm/bin/com/JoHoon_FinalTerm/Home_Activity$1.class
JoHoon_FinalTerm/bin/com/JoHoon_FinalTerm/Home_Activity$2.class
JoHoon_FinalTerm/bin/com/JoHoon_FinalTerm/Home_Activity.class
JoHoon_FinalTerm/bin/com/JoHoon_FinalTerm/Info_Activity.class
JoHoon_FinalTerm/bin/com/JoHoon_FinalTerm/JoHoon_FinalTerm$1.class
JoHoon_FinalTerm/bin/com/JoHoon_FinalTerm/JoHoon_FinalTerm$2.class
JoHoon_FinalTerm/bin/com/JoHoon_FinalTerm/JoHoon_FinalTerm$3.class
JoHoon_FinalTerm/bin/com/JoHoon_FinalTerm/JoHoon_FinalTerm.class
JoHoon_FinalTerm/bin/com/JoHoon_FinalTerm/MapView_Activity$Overlay.class
JoHoon_FinalTerm/bin/com/JoHoon_FinalTerm/MapView_Activity.class
JoHoon_FinalTerm/bin/com/JoHoon_FinalTerm/News_Activity$1.class
JoHoon_FinalTerm/bin/com/JoHoon_FinalTerm/News_Activity$XmlListAdapter.class
JoHoon_FinalTerm/bin/com/JoHoon_FinalTerm/News_Activity.class
JoHoon_FinalTerm/bin/com/JoHoon_FinalTerm/R$array.class
JoHoon_FinalTerm/bin/com/JoHoon_FinalTerm/R$attr.class
JoHoon_FinalTerm/bin/com/JoHoon_FinalTerm/R$drawable.class
JoHoon_FinalTerm/bin/com/JoHoon_FinalTerm/R$id.class
JoHoon_FinalTerm/bin/com/JoHoon_FinalTerm/R$layout.class
JoHoon_FinalTerm/bin/com/JoHoon_FinalTerm/R$string.class
JoHoon_FinalTerm/bin/com/JoHoon_FinalTerm/R.class
JoHoon_FinalTerm/bin/com/JoHoon_FinalTerm/Setting_Activity$1.class
JoHoon_FinalTerm/bin/com/JoHoon_FinalTerm/Setting_Activity$2.class
JoHoon_FinalTerm/bin/com/JoHoon_FinalTerm/Setting_Activity.class
JoHoon_FinalTerm/bin/com/JoHoon_FinalTerm/StreetView_Activity.class
JoHoon_FinalTerm/bin/com/JoHoon_FinalTerm/Tab_Activity.class
JoHoon_FinalTerm/bin/com/JoHoon_FinalTerm/Tutorial$1.class
JoHoon_FinalTerm/bin/com/JoHoon_FinalTerm/Tutorial$2.class
JoHoon_FinalTerm/bin/com/JoHoon_FinalTerm/Tutorial.class
JoHoon_FinalTerm/bin/com/JoHoon_FinalTerm/Tutorial_Sub$1.class
JoHoon_FinalTerm/bin/com/JoHoon_FinalTerm/Tutorial_Sub$2.class
JoHoon_FinalTerm/bin/com/JoHoon_FinalTerm/Tutorial_Sub.class
JoHoon_FinalTerm/bin/com/JoHoon_FinalTerm/XmlData.class
JoHoon_FinalTerm/bin/JoHoon_FinalTerm.apk
JoHoon_FinalTerm/bin/classes.dex
JoHoon_FinalTerm/bin/resources.ap_
JoHoon_FinalTerm/gen/com/JoHoon_FinalTerm/R.java
JoHoon_FinalTerm/res/drawable-hdpi/about.png
JoHoon_FinalTerm/res/drawable-hdpi/about2.png
JoHoon_FinalTerm/res/drawable-hdpi/background.png
JoHoon_FinalTerm/res/drawable-hdpi/earth.png
JoHoon_FinalTerm/res/drawable-hdpi/ic_tab_home.xml
JoHoon_FinalTerm/res/drawable-hdpi/ic_tab_home_grey.png
JoHoon_FinalTerm/res/drawable-hdpi/ic_tab_home_white.png
JoHoon_FinalTerm/res/drawable-hdpi/ic_tab_info.xml
JoHoon_FinalTerm/res/drawable-hdpi/ic_tab_info_grey.png
JoHoon_FinalTerm/res/drawable-hdpi/ic_tab_info_white.png
JoHoon_FinalTerm/res/drawable-hdpi/ic_tab_map.xml
JoHoon_FinalTerm/res/drawable-hdpi/ic_tab_map_grey.png
JoHoon_FinalTerm/res/drawable-hdpi/ic_tab_map_white.png
JoHoon_FinalTerm/res/drawable-hdpi/ic_tab_news.xml
JoHoon_FinalTerm/res/drawable-hdpi/ic_tab_news_grey.png
JoHoon_FinalTerm/res/drawable-hdpi/ic_tab_news_white.png
JoHoon_FinalTerm/res/drawable-hdpi/ic_tab_set.xml
JoHoon_FinalTerm/res/drawable-hdpi/ic_tab_set_grey.png
JoHoon_FinalTerm/res/drawable-hdpi/ic_tab_set_white.png
JoHoon_FinalTerm/res/drawable-hdpi/ic_tab_street.xml
JoHoon_FinalTerm/res/drawable-hdpi/ic_tab_street_grey.png
JoHoon_FinalTerm/res/drawable-hdpi/ic_tab_street_white.png
JoHoon_FinalTerm/res/drawable-hdpi/icon.png
JoHoon_FinalTerm/res/drawable-hdpi/johoon.png
JoHoon_FinalTerm/res/drawable-hdpi/mark.png
JoHoon_FinalTerm/res/drawable-hdpi/marker2.png
JoHoon_FinalTerm/res/drawable-ldpi/icon.png
JoHoon_FinalTerm/res/drawable-mdpi/icon.png
JoHoon_FinalTerm/res/layout/home_activity.xml
JoHoon_FinalTerm/res/layout/info_activity.xml
JoHoon_FinalTerm/res/layout/main.xml
JoHoon_FinalTerm/res/layout/map_activity.xml
JoHoon_FinalTerm/res/layout/news_activity.xml
JoHoon_FinalTerm/res/layout/row.xml
JoHoon_FinalTerm/res/layout/setting_activity.xml
JoHoon_FinalTerm/res/layout/tab_activity.xml
JoHoon_FinalTerm/res/layout/tutorial.xml
JoHoon_FinalTerm/res/layout/tutorial_sub.xml
JoHoon_FinalTerm/res/values/array.xml
JoHoon_FinalTerm/res/values/strings.xml
JoHoon_FinalTerm/src/com/JoHoon_FinalTerm/Home_Activity.java
JoHoon_FinalTerm/src/com/JoHoon_FinalTerm/Info_Activity.java
JoHoon_FinalTerm/src/com/JoHoon_FinalTerm/JoHoon_FinalTerm.java
JoHoon_FinalTerm/src/com/JoHoon_FinalTerm/MapView_Activity.java
JoHoon_FinalTerm/src/com/JoHoon_FinalTerm/News_Activity.java
JoHoon_FinalTerm/src/com/JoHoon_FinalTerm/Setting_Activity.java
JoHoon_FinalTerm/src/com/JoHoon_FinalTerm/StreetView_Activity.java
JoHoon_FinalTerm/src/com/JoHoon_FinalTerm/Tab_Activity.java
JoHoon_FinalTerm/src/com/JoHoon_FinalTerm/Tutorial.java
JoHoon_FinalTerm/src/com/JoHoon_FinalTerm/Tutorial_Sub.java
JoHoon_FinalTerm/src/com/JoHoon_FinalTerm/XmlData.java
JoHoon_FinalTerm/.classpath
JoHoon_FinalTerm/.project
JoHoon_FinalTerm/AndroidManifest.xml
JoHoon_FinalTerm/default.properties
JoHoon_FinalTerm/proguard.cfg
원본이미지/News.png
원본이미지/about.png
원본이미지/about2.png
원본이미지/earth.png
원본이미지/home.png
원본이미지/ic_tab_home_grey.png
원본이미지/ic_tab_home_white.png
원본이미지/ic_tab_info_grey.png
원본이미지/ic_tab_info_white.png
원본이미지/ic_tab_map_grey.png
원본이미지/ic_tab_map_white.png
원본이미지/ic_tab_news_grey.png
원본이미지/ic_tab_news_white.png
원본이미지/ic_tab_set_grey.png
원본이미지/ic_tab_set_white.png
원본이미지/ic_tab_street_grey.png
원본이미지/ic_tab_street_white.png
임베디드 과제#Final - 200746134 조훈.hwp
JoHoon_FinalTerm/bin/com/JoHoon_FinalTerm/Home_Activity$1.class
JoHoon_FinalTerm/bin/com/JoHoon_FinalTerm/Home_Activity$2.class
JoHoon_FinalTerm/bin/com/JoHoon_FinalTerm/Home_Activity.class
JoHoon_FinalTerm/bin/com/JoHoon_FinalTerm/Info_Activity.class
JoHoon_FinalTerm/bin/com/JoHoon_FinalTerm/JoHoon_FinalTerm$1.class
JoHoon_FinalTerm/bin/com/JoHoon_FinalTerm/JoHoon_FinalTerm$2.class
JoHoon_FinalTerm/bin/com/JoHoon_FinalTerm/JoHoon_FinalTerm$3.class
JoHoon_FinalTerm/bin/com/JoHoon_FinalTerm/JoHoon_FinalTerm.class
JoHoon_FinalTerm/bin/com/JoHoon_FinalTerm/MapView_Activity$Overlay.class
JoHoon_FinalTerm/bin/com/JoHoon_FinalTerm/MapView_Activity.class
JoHoon_FinalTerm/bin/com/JoHoon_FinalTerm/News_Activity$1.class
JoHoon_FinalTerm/bin/com/JoHoon_FinalTerm/News_Activity$XmlListAdapter.class
JoHoon_FinalTerm/bin/com/JoHoon_FinalTerm/News_Activity.class
JoHoon_FinalTerm/bin/com/JoHoon_FinalTerm/R$array.class
JoHoon_FinalTerm/bin/com/JoHoon_FinalTerm/R$attr.class
JoHoon_FinalTerm/bin/com/JoHoon_FinalTerm/R$drawable.class
JoHoon_FinalTerm/bin/com/JoHoon_FinalTerm/R$id.class
JoHoon_FinalTerm/bin/com/JoHoon_FinalTerm/R$layout.class
JoHoon_FinalTerm/bin/com/JoHoon_FinalTerm/R$string.class
JoHoon_FinalTerm/bin/com/JoHoon_FinalTerm/R.class
JoHoon_FinalTerm/bin/com/JoHoon_FinalTerm/Setting_Activity$1.class
JoHoon_FinalTerm/bin/com/JoHoon_FinalTerm/Setting_Activity$2.class
JoHoon_FinalTerm/bin/com/JoHoon_FinalTerm/Setting_Activity.class
JoHoon_FinalTerm/bin/com/JoHoon_FinalTerm/StreetView_Activity.class
JoHoon_FinalTerm/bin/com/JoHoon_FinalTerm/Tab_Activity.class
JoHoon_FinalTerm/bin/com/JoHoon_FinalTerm/Tutorial$1.class
JoHoon_FinalTerm/bin/com/JoHoon_FinalTerm/Tutorial$2.class
JoHoon_FinalTerm/bin/com/JoHoon_FinalTerm/Tutorial.class
JoHoon_FinalTerm/bin/com/JoHoon_FinalTerm/Tutorial_Sub$1.class
JoHoon_FinalTerm/bin/com/JoHoon_FinalTerm/Tutorial_Sub$2.class
JoHoon_FinalTerm/bin/com/JoHoon_FinalTerm/Tutorial_Sub.class
JoHoon_FinalTerm/bin/com/JoHoon_FinalTerm/XmlData.class
JoHoon_FinalTerm/bin/JoHoon_FinalTerm.apk
JoHoon_FinalTerm/bin/classes.dex
JoHoon_FinalTerm/bin/resources.ap_
JoHoon_FinalTerm/gen/com/JoHoon_FinalTerm/R.java
JoHoon_FinalTerm/res/drawable-hdpi/about.png
JoHoon_FinalTerm/res/drawable-hdpi/about2.png
JoHoon_FinalTerm/res/drawable-hdpi/background.png
JoHoon_FinalTerm/res/drawable-hdpi/earth.png
JoHoon_FinalTerm/res/drawable-hdpi/ic_tab_home.xml
JoHoon_FinalTerm/res/drawable-hdpi/ic_tab_home_grey.png
JoHoon_FinalTerm/res/drawable-hdpi/ic_tab_home_white.png
JoHoon_FinalTerm/res/drawable-hdpi/ic_tab_info.xml
JoHoon_FinalTerm/res/drawable-hdpi/ic_tab_info_grey.png
JoHoon_FinalTerm/res/drawable-hdpi/ic_tab_info_white.png
JoHoon_FinalTerm/res/drawable-hdpi/ic_tab_map.xml
JoHoon_FinalTerm/res/drawable-hdpi/ic_tab_map_grey.png
JoHoon_FinalTerm/res/drawable-hdpi/ic_tab_map_white.png
JoHoon_FinalTerm/res/drawable-hdpi/ic_tab_news.xml
JoHoon_FinalTerm/res/drawable-hdpi/ic_tab_news_grey.png
JoHoon_FinalTerm/res/drawable-hdpi/ic_tab_news_white.png
JoHoon_FinalTerm/res/drawable-hdpi/ic_tab_set.xml
JoHoon_FinalTerm/res/drawable-hdpi/ic_tab_set_grey.png
JoHoon_FinalTerm/res/drawable-hdpi/ic_tab_set_white.png
JoHoon_FinalTerm/res/drawable-hdpi/ic_tab_street.xml
JoHoon_FinalTerm/res/drawable-hdpi/ic_tab_street_grey.png
JoHoon_FinalTerm/res/drawable-hdpi/ic_tab_street_white.png
JoHoon_FinalTerm/res/drawable-hdpi/icon.png
JoHoon_FinalTerm/res/drawable-hdpi/johoon.png
JoHoon_FinalTerm/res/drawable-hdpi/mark.png
JoHoon_FinalTerm/res/drawable-hdpi/marker2.png
JoHoon_FinalTerm/res/drawable-ldpi/icon.png
JoHoon_FinalTerm/res/drawable-mdpi/icon.png
JoHoon_FinalTerm/res/layout/home_activity.xml
JoHoon_FinalTerm/res/layout/info_activity.xml
JoHoon_FinalTerm/res/layout/main.xml
JoHoon_FinalTerm/res/layout/map_activity.xml
JoHoon_FinalTerm/res/layout/news_activity.xml
JoHoon_FinalTerm/res/layout/row.xml
JoHoon_FinalTerm/res/layout/setting_activity.xml
JoHoon_FinalTerm/res/layout/tab_activity.xml
JoHoon_FinalTerm/res/layout/tutorial.xml
JoHoon_FinalTerm/res/layout/tutorial_sub.xml
JoHoon_FinalTerm/res/values/array.xml
JoHoon_FinalTerm/res/values/strings.xml
JoHoon_FinalTerm/src/com/JoHoon_FinalTerm/Home_Activity.java
JoHoon_FinalTerm/src/com/JoHoon_FinalTerm/Info_Activity.java
JoHoon_FinalTerm/src/com/JoHoon_FinalTerm/JoHoon_FinalTerm.java
JoHoon_FinalTerm/src/com/JoHoon_FinalTerm/MapView_Activity.java
JoHoon_FinalTerm/src/com/JoHoon_FinalTerm/News_Activity.java
JoHoon_FinalTerm/src/com/JoHoon_FinalTerm/Setting_Activity.java
JoHoon_FinalTerm/src/com/JoHoon_FinalTerm/StreetView_Activity.java
JoHoon_FinalTerm/src/com/JoHoon_FinalTerm/Tab_Activity.java
JoHoon_FinalTerm/src/com/JoHoon_FinalTerm/Tutorial.java
JoHoon_FinalTerm/src/com/JoHoon_FinalTerm/Tutorial_Sub.java
JoHoon_FinalTerm/src/com/JoHoon_FinalTerm/XmlData.java
JoHoon_FinalTerm/.classpath
JoHoon_FinalTerm/.project
JoHoon_FinalTerm/AndroidManifest.xml
JoHoon_FinalTerm/default.properties
JoHoon_FinalTerm/proguard.cfg
원본이미지/News.png
원본이미지/about.png
원본이미지/about2.png
원본이미지/earth.png
원본이미지/home.png
원본이미지/ic_tab_home_grey.png
원본이미지/ic_tab_home_white.png
원본이미지/ic_tab_info_grey.png
원본이미지/ic_tab_info_white.png
원본이미지/ic_tab_map_grey.png
원본이미지/ic_tab_map_white.png
원본이미지/ic_tab_news_grey.png
원본이미지/ic_tab_news_white.png
원본이미지/ic_tab_set_grey.png
원본이미지/ic_tab_set_white.png
원본이미지/ic_tab_street_grey.png
원본이미지/ic_tab_street_white.png
임베디드 과제#Final - 200746134 조훈.hwp