모든글(1105)
-
안드로이드에서 Thread 돌리기
출처: http://blog.naver.com/cherryzone12?Redirect=Log&logNo=90095973981 안드로이드에서는 그냥 Thread를 돌릴 수 없음. UI를 변경 적용해야 하는 경우에... UI Thread가 따로 있으므로 UI Thread와 통신해야함. application을 짜면 기본적으로 main Thread가 UI Thread와 통신을 한다. 그런데 새로 생성한 Thread까지도 UI를 직접 조작하려고 한다면 run-time exception이 발생. -> UI Thread에 통신을 하려는 Thread가 2개 생기는 꼴.. exception을 처리하지 않으면 강제 종료.. 새로 생성한 Thread에서 UI관련 조작을 main Thread로 보내준다. main Thread..
2011.01.14 -
가을이의 미투데이 - 2011년 1월 13일
서울이 개마고원이야?왜 이리 추워.온도계보고 깜짝.(me2mobile me2photo) 2011-01-13 07:52:20 일정대로 머리깎고 식당에서 대기중.(me2mobile) 2011-01-13 12:11:52 이 글은 가을이님의 2011년 1월 13일의 미투데이 내용입니다.
2011.01.14 -
네트워크에서 XML 파일 가져와 파싱하기
기상청 데이터 파싱 예 XmlPullParserFactory, XmlPullParser public class PullParserActivity extends ListActivity { ImageView conditionImage; TextView regionTextView; TextView conditionTextView; ArrayList weather = new ArrayList(); /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); t..
2011.01.13 -
서버에서 이미지 불러오기
http://drkein.tistory.com/169 안드로이드에서 서버의 이미지 파일을 불러와 이미지 뷰에 붙이기 할 때.. 서버에서 이미지 불러서 비트맵 만드는 방법. /* * 느리긴 한데 안정적인 동작.. */ // public static Bitmap getRemoteImage(URL url){ // System.out.println("IMAGE LOAD ----------------------------------> 1 " + url.toString()); // Bitmap bm = null; // HttpGet httpRequest = null; // try { // httpRequest = new HttpGet(url.toURI()); // } catch (URISyntaxException ..
2011.01.13 -
가을이의 미투데이 - 2011년 1월 12일
눈온 다음날임에도 불구하고 엄청 춥구나.부활 노래 오랜만에 다시 듣는데 참좋다.일찍 서두른 출근, 오늘도 열심히.안드로이드 개발자로의 전환을 위해.(me2mobile) 2011-01-12 08:13:16 이 글은 가을이님의 2011년 1월 12일의 미투데이 내용입니다.
2011.01.13 -
Spinner 사용하기
http://blog.naver.com/kyuhgmi/40119869063 android Spinner 사용하기 this.cuisine = (Spinner) findViewById(R.id.cuisine); this.grabReviews = (Button) findViewById(R.id.get_reviews_button); ArrayAdapter cuisines = new ArrayAdapter(this,R.layout.spinner_view,getResources().getStringArray(R.array.cuisines)); cuisines.setDropDownViewResource(R.layout.spinner_view_dropdown); this.cuisine.setAdapter(cuisine..
2011.01.12