목록IT (1047)
올해는 머신러닝이다.
private Bitmap overlayMark(Bitmap bmp1, Bitmap bmp2,int distanceLeft,int distanceTop) { Bitmap bmOverlay = Bitmap.createBitmap(bmp1.getWidth()+distanceLeft, bmp1.getHeight()+distanceLeft, bmp1.getConfig()); Canvas canvas = new Canvas(bmOverlay); canvas.drawBitmap(bmp1, distanceLeft, distanceTop, null); canvas.drawBitmap(bmp2, 0, 0, null); return bmOverlay;
http://rintiantta.blog.me/40121658531
출처 : http://trend21c.tistory.com/1046 안드로이드 2.2(프로요, froyo) 부터 모바일 웹에서 파일첨부가 가능하다는것 알고 계셨나요? http://blog.flickr.net/en/2010/09/23/new-browser-based-uploads-on-android-2-2/ http://blog.daum.net/ahahblog/13757408 특정 파일들에 한해서 안드로이드 2.2부터 모바일 브라우저를 통한 파일 업로드가 가능해졌습니다. 즉 을 지원하게 되었습니다. 개발자분들은 모바일을 위한 별다른 코드를 써야할 필요없이 기존 웹에서 업로드 기능 구현하던 그대로 구현하시면 됩니다. 이미 플리커부터 다음카페 등 속속 모바일 웹에서 파일 첨부를 기능을 포함한 사이트들이 늘어나..
출처 : http://androidhuman.tistory.com/entry/액션바의-변신은-무죄-다양한-액션바의-모습들 이전 글 ( 2011/05/30 - 액션바(Action bar) 따라잡기 - 액션바가 뭔가요?) 에서 알아보았던 것처럼, 액션바는 메뉴를 대신하는 것 외에도 다양한 역할을 수행할 수 있습니다. 그 중에서 대표적인 기능이 사용자가 애플리케이션 내 흐름을 잘 알 수 있도록 도와주는 것입니다. 애플리케이션 흐름을 알려주는 액션바의 요소들 애플리케이션을 사용하다 보면 화면이 전환되어 홈 화면보다 하위 단계의 화면에 오게 되는 경우가 많은데, 간혹 내가 보고 있는 화면이 홈 화면인지, 하위 단계의 화면인지 혼동되는 경우가 있습니다. 액션바는 위와 같은 사용자들의 혼동을 방지하기 위해, 하위 단..
출처 : http://androidhuman.tistory.com/472 안드로이드 3.0, 허니컴(Honeycomb)에서는 태블릿 단말에 최적화된 컴포넌트들이 많이 추가되었는데요, 프래그먼트(Fragment)와 함께 허니컴에서 추가된 대표적인 UI 컴포넌트 중 하나가 바로 액션바(Action bar)입니다. 액션바는 기존 안드로이드 애플리케이션의 타이틀바(Title bar)를 대체하는 컴포넌트로, 기존 타이틀바가 단순히 제목만을 표시하거나 간단한 정보만을 표시할 수 있던 것에 반해 액션바는 제목 표시 뿐만 아니라 메뉴 제공, 액션 아이템(Action item)을 통한 단축 메뉴 제공, 탭 지원 등 다양한 기능을 포함하고 있습니다. 다음은 전형적인 액션바의 모습을 보여줍니다. 액션바(Action bar)..
[번역] The Android 3.0 Fragments API 안드로이드 2011/02/08 22:58 http://huewu.blog.me/110102599243 The Android 3.0 Fragments API [이 포스트는 안드로이드 개발에 핵심적인 역할을 담당하는, 소프트웨어 엔지니어 Dianne Hackborn 에 의해 작성되었습니다. - Tim Bray] 원문: http://android-developers.blogspot.com/2011/02/android-30-fragments-api.html 안드로이드 3.0 의 주요 목표 중 하나는, 개발자들이 보다 쉽게 다양한 해상도를 지원하는 어플리케이션을 작성할 수 있도록 만들어 주는 것 입니다. 다양한 해상도를 지원하는 어플리케이션을 개발 할..
article from : http://p-xr.com/android-tutorial-dynamicaly-load-more-items-to-the-listview-never-ending-list/ We pretty much all know the nice technique apps like GMail / Facebook use to dynamically load more items to the ListView then you scroll to the bottom. In this post i want to shed some light on how to make such a list ourselves! We can approach this from a few sides: The first option is ..
출처 : http://appsforge.tistory.com/169 우리나라 시각으로 지난 새벽 (북미기준 8월 1일 월요일) 어도브(Adobe)사가 새로운 프로그램을 발표했습니다. 이번에 새로 발표한 프로그램은 놀랍게도 HTML5 웹 애니메이션 도구인 Edge™ 입니다. 그동안 플래시(Flash)만을 고집해오던 어도브 였죠. 하지만 아이폰과 아이패드가 전세계적으로 유행하면서 플래시의 황혼이 찾아왔습니다. 아이폰과 아이패드에서 사용되는 iOS에서는 Flash를 지원하지 않기 때문이었죠. 애플과 어도브가 극도로 사이가 좋지 않은 탓도 있지만 iOS의 보안체계로 인해 플래시를 지원하는 것은 거의 불가능하다고 봐도 과언이 아니었으니까요. 수많은 사람들이 아이폰과 아이패드를 사용하고 있고 그에 맞추어 많은 웹사..
출처 : http://blog.sptechnolab.com/2011/03/09/android/android-upload-image-to-server/ Android: Upload image to Server Filed Under: Android by bhargav — 37 Comments March 9, 2011 [번역] Easy AdSense by Unreal I have searched lot on Internet that how to upload image from android device to server. As a result of that, I am posting this tutorial. At server side, I used PHP script. So, you need to learn ..
$file_name = 'test.html'; if(strstr($HTTP_USER_AGENT, "MSIE 5.5")) { header("Content-Type: doesn/matter"); header("Content-Disposition: filename=$file_name"); header("Content-Transfer-Encoding: binary"); header("Pragma: no-cache"); header("Expires: 0"); } else { Header("Content-type: file/unknown"); Header("Content-Disposition: attachment; filename=$file_name"); Header("Content-Description: PHP3..
http://underclub.tistory.com/367 랩하는 프로그래머 블로그
// VideoView에는 기본 버튼들이 정의되어 있어서 앞에 글에서처럼 // MediaPlayer을 이용해 만들었을 때 버튼을 만들고 정의하는 과정이 필요없다. // 하지만 VIdeoView로 객체를 만들어 동영상을 재생시키면 무슨 설정을 해도 전체화면으로 나오게 할 수 없다 // 때문에 VIdeoView를 상속받은 클래스를 만들어 사용해야 한다. // manifest에서 해당 activity에 android:theme="@android:style/Theme.NoTitleBar.Fullscreen" // 옵션을 설정해도 해결되지 않아 만들게 되었다. class MyVideoView extends VideoView { public MyVideoView(Context context, AttributeS..
출처 : http://web3.kr/40034737395 주석이 없다.. 나만 쓸려고 만들어 놓은거라서... 관련되서 공부하고자 하는 분들이 있으면 참고하시라... #DBConn.Class.php 사용방법 Oracle DB 사용시 #oracle.php MySQL DB 사용시 #mysql.php 눈치 빠른 분들은 벌써 눈치 쳈겠지만... $uri 값만 바까줌으로써.. MySQL 이든 Oracle 이든 모두 사용가능 하다. Sybase 및 기타 다른 DB도 해보고 싶지만 설치 되어 있는 환경이 없어서 테스트 불가.
출처 : http://sexy.pe.kr/tc/30 페이징이란? 많은 수의 자료(레코드)를 한꺼번에 가져와 활용하기에는 비효율적이기에 일정 크기로 나누어 페이지 번호를 부여하는 방법을 방법을 말한다. 즉, 원하는 페이지번호에 해당하는 영역의 자료만 가져와 활용하기 위함이다. 페이징을 하기전에 몇가지 사전 설정을 해야한다. 한페이지에 몇개의 레코드(자료)를 출력할 것인가? 한화면에 페이지번호를 몇개를 출력할 것인가? 현재 보고자 하는 페이지가 몇번째 페이지인가? 그리고 아래와 같은 항목이 필요하다. 가져올 시작 레코드 번호 가져올 마지막 레코드 번호 전체 페이지 갯수 페이지번호 출력 시작 번호 페이지번호 출력 마지막 번호 전체 레코드 갯수 전체 블록 갯수 현재 속해있는 블록 번호 등등을 계산해야 한다. 위..
http://stackoverflow.com/questions/6520313/how-to-get-rtsp-links-android 에서 참조 package jp.ddo.gallop.android; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.UnsupportedEncodingException; import java.net.URI; import java.net.URISyntaxException; import java.net.URLEncoder; import jp.ddo.gallop.android.youtube.*; import org.apache.http.HttpR..
package org.apache.android.media; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.net.URL; import java.net.URLConnection; import android.app.Activity; import android.os.Bundle; import android.os.Handler; import android.util.Log; import android.view.View; import android.view.View.OnClickListener; import android.webkit.URLUt..
출처 : 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
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..