목록전체 글 (1533)
오늘도 공부
private String writeXml(List messages){ XmlSerializer serializer = Xml.newSerializer(); StringWriter writer = new StringWriter(); try { serializer.setOutput(writer); serializer.startDocument("UTF-8", true); serializer.startTag("", "messages"); serializer.attribute("", "number", String.valueOf(messages.size())); for (Message msg: messages){ serializer.startTag("", "message"); serializer.attribute..
http://blog.naver.com/baram918/120133119914
http://lomohome.com/316
출처 : http://bench87.tistory.com/38 외국사이트에서 퍼왔습니다. 스샷에 보이듯이 말풍선만 뛰울수 있습니다... 소스는 자꾸 안된다는 분이 많아서 제가 되도록 살짝 고쳤습니다.. Android MapView Balloons This project provides an easy way to annotate map overlay items with a simple information balloon when using the Android Maps external library (com.google.android.maps). It consists of BalloonOverlayView, a view representing the balloon that is displayed over ..
출처 : http://www.dingpong.net/tt/277 안드로이드의 EditText에 포커스가 가게 되면 기본적으로 폰에서 설정한 기본 언어에 대한 키보드로 노출이 됩니다. 그런데 ID 값과 같은 것을 입력 받아야 하는 EditText와 같은 경우에는 처음에 영문 키보드가 나오도록 하고 싶은 경우가 있을 수 있습니다. 그럴 경우 아래와 같은 라인을 추가하면 영문 키보드가 바로 나오도록 할 수 있습니다. android:inputType="textVisiblePassword" EditText의 XML에 위 라인을 추가하면 됩니다. 이것은 EditText에 password 모드를 설정하면 키보드가 영문으로 띄워지는 것을 생각해서 구현한 방법입니다. 검색을 해보면 privateOption 같은 것을 조..
출처 : http://www.mtalking.com/?p=403안드로이드 device 에서 3G나 WIFI 연결 정보를 알아볼때 사용 우선 AndroidManifest.xml에 " android.permission.ACCESS_NETWORK_STATE " permission이 필요하다. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 ConnectivityManager cManager; NetworkInfo mobile; NetworkInfo wifi; cManager=(ConnectivityManager)getSystemService(Context.CONNECTIVITY_SERVICE); mobile = cManager.getNetworkInfo(ConnectivityManager.TY..
출처 : http://blog.tacticalnuclearstrike.com/2010/01/using-multipartentity-in-android-applications/ Using MultipartEntity in Android applications Posted on 2010/01/13 by Fredrik To be able to upload files from an Android application and use the Multipart content type you need to add some additional jar files to your application. The files needed are apache-mime4j, httpclient, httpcore and httpmime..
출처 : http://www.softwarepassion.com/android-series-get-post-and-multipart-post-requests/ Today I will describe shortly how to execute http GET and POST request on Android platform. The code is very simple and straightforward, for post request with attachement, you would have to add apache-mime4j-0.6.jar and httpmime-4.0.1.jar to your build path. HTTP GET try { HttpClient client = new DefaultHttp..
출처 : http://blog.daum.net/haha25/5387297
안드로이드 공부하시는 분들은 자신이 만든 어플리케이션이 멋지게 작동하는걸 원하실 겁니다. 그중에하나가 에니메이션이죠. 그런데 에니메이션 하면 보통 ViewFlipper 를 많이들 생각하실겁니다. 하지만 ViewFlipper는 뷰를 컨트롤하는거지 Activity간의 에니메이션을 컨트롤하지는 않습니다. 그래서 있는것이 overridePendingTransition 입니다. 사용 예) overridePendingTransition(R.anim.push_right_in, R.anim.push_right_out); 인텐트로 넘어갈때 써주시면 됩니다. 다만 아셔야 할것이 있습니다. 이것은 안드로이드 버전과 관련이있더군요. 제가 1.5로 어플을 만드는데 처음에 이걸썻다가 오작동 혹은 오류가 뜨길래 잘못된 정보인줄 알..
