목록전체 글 (1341)
오늘도 공부
출처 : http://croute.me/392 예전에 한번 버튼의 클릭이벤트에 대해서 고찰한적이 있었습니다. onClick()의 구현이 더 좋을까, OnClickListener 객체를 각각 생성해서 구현하는 것이 좋을까에 대한 내용이었습니다. 어쨋든 전 결론을 onClick()의 구현(implements)으로 내렸었죠. ( 버튼 클릭 이벤트 처리에 관한 고찰 : http://croute.me/326 ) 이번에는 저번과는 조금 다른 고찰입니다. 수많은 버튼을 사용해야 하는 경우, 하나씩 아이디를 onClick()에서 siwtch 문 안에 case로 정의내려 처리하기는 너무 곤욕이죠. 휴... 그래서 이런 방법을 생각해 보았습니다. 향상된 for문과 배열을 이용하는 방법. 접기 주의 깊게 향상된 반복문(En..
출처 : http://www.londatiga.net/it/how-to-create-quickaction-dialog-in-android/ I have updated the quickaction implementation code so it can be used more efficient and the dialog will be automatically dismissed after pressing the action item. All the source codes now available via github so you can track the changes. Official Twitter application for Android has introduced new Android UI features a..
link from : http://www.siegmann.nl/epublib/android Android Epublib-core runs on Android. Reading, writing and manipulating epub files is fully supported. Requirements Slf4j-android. You can download this at http://www.slf4j.org/android/ Getting started Download epublib-core-latest.jar from https://github.com/downloads/psiegman/epublib/epublib-core-latest.jar Download slf4j-android Add both to yo..
http://dlucky.tistory.com/168
출처 : http://sankarganesh-info-exchange.blogspot.com/2011/04/dynamically-loading-datas-in-listview.html Dynamically Loading Data's (Adding Footer to ListView ) in ListView in Android Add a footer to List View and when the user clicks that Footer, you can show parse the next set of data and show it in the list. Step1: Create a Button Step2: Make it as Footer to the List View ListView myList; View ..
Monday, August 3, 2009 HTTP connection reuse in Android Alright, time for something new and hopefully useful, re-using HTTP connections in your application. I've yet to write an Android application that doesn't make any HTTP requests, and they tend to do it frequently. Since all of my applications are also heavily concurrent, passing around a default HttpClient instance will give you thread cont..
출처 : http://bluejames77.blog.me/80124862451 예전에 HttpClient을 쓴 법을 있는데.. 최신에 이것을 다시 쓸일이 있어 정리해봅니다. ^-^; 제가 짠 메소드인데 이것만 보면 아마 감이 딱 오시지 않을까 생각됩니다. private static String requestConvert ( String szFilePath, int nPageCount, String szThumbnailSize) { // 아래처럼 해서 넘길 값이 있다면 키와 밸류 형식으로 파라메타를 넘기게 됩니다 List qparams = new ArrayList(); qparams.add(new BasicNameValuePair("FilePath", szFilePath)); qparams.add(new ..
http://blog.naver.com/kippee/130068924726
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