android (2) 썸네일형 리스트형 Thread 와 Database 의 Connection 문제. 서비스 개발이 거의 막바지에 다달았습니다. Server 쪽 개발하랴 Client 쪽 개발하랴 눈코뜰새 없이 바빴습니다만 결과물들을 보니 고생한 보람을 느낄 수 있네요. Android Client 의 형태는 탭 view 들로 되어 있으며 전체적인 형태는 카톡을 상상하시면 됩니다. 탭들이 화면 하단에 4개 있으며 해당 탭들마다 다른 view 의 내용들을 출력해주는 방식입니다. server 와 통신을 하면서 local database 에 데이터를 가져오고 보내주면서 그 데이터들을 Thread 로 처리하는 방식인데 client 에서 많은 thread 를 실행하다 보니 개발도중에 자꾸 여러가지 문제점들이 발생했었습니다. 가장 대표적인 문제점이 thread 의 database 사용에 따른 connection 과 l.. 서버에서 이미지 로딩하기. Loading images from a remote serverThis tutorial demonstrates how to load a remote image into your application and bind this image to an ImageView object. HttpURLConnection is used to download the image data and BitmapFactory is used to produce the bitmap which will be used as ImageView resource. Here is the Java code: import java.io.IOException; import java.io.InputStream; import java.net.HttpU.. 이전 1 다음