목록IT (1533)
오늘도 공부
출처 : http://www.gaanza.com/blog/android-autocompletetextview-mysql/ Well i have been playing around a lot with android client connectivity with remote MySQL database. Lately i wanted a UI/View, something input textfield, i wanted to show completion suggestions automatically in a drop down menu while the user is typing, suggestions would be coming from MySQL database. Basically whenever i type, i..
https://github.com/johannilsson/android-actionbar/
출처 : http://stackoverflow.com/questions/2646028/android-horizontalscrollview-within-scrollview-touch-handling public class CustomScrollView extends ScrollView { private GestureDetector gestureDetector; View.OnTouchListener gestureListener; public CustomScrollView(Context context, AttributeSet attrs) { super(context, attrs); gestureDetector = new GestureDetector(new YScrollDetector()); setFadingE..
안드로이드 프로그래밍에서 중요한 개념 'Intent'보고있는 책보다도 잘 정리를 해 놓았다.....[원문] http://gtko.springnote.com/pages/5254593?edit=1인텐트를 통한 액티비티를 명시적으로 시작하는 방법, 암시적인 인텐트로 데이터의 한 부분에 대해 수행되는 액션을 요청하는 방법, 안드로이드가 그 요청을 서비스할 수 있는 애플리케이션 콤포넌트를 결정하도록 하는 방법을 설명한다.브로드캐스트 인텐트는 시스템 전역에 이벤트를 알린다. 즉, 브로드캐스트로 전송하고 브로드캐스트 수신자로 이를 받아 처리한다.어댑터는 데이터 소스와 프리젠테이션(view 들)과 연결하는 방법. 인텐트 소개어 떤 액션이 수행되는데 특정 데이터의 특정 부분을 가지고 수행하라는 선언으로 메시지를 전달하는..
웹뷰 키보드 위치조절 1.webview 밖에 scrollview 넣고 2.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_PAN);
The core functions shown below are available by default. Date & Time functions and aggregate functions are documented separately. An application may define additional functions written in C and added to the database engine using the sqlite3_create_function() API. abs(X) The abs(X) function returns the absolute value of the numeric argument X. Abs(X) returns NULL if X is NULL. Abs(X) return 0.0 i..
출처:http://blog.naver.com/PostView.nhn?blogId=ezmo01&logNo=110093890027&viewDate=¤tPage=1&listtype=0&userTopListOpen=false&userTopListCount=5&userTopListManageOpen=false&userTopListCurrentPage=undefined Custom Android Button Style and ThemePosted by Tonio | Filed under Tutorial In this tutorial, we’ll see how it’s possible to create a custom button style for an Android application by using ..
출처 : http://blog.naver.com/PostView.nhn?blogId=ezmo01&logNo=110093886802 정말 이정도 되는예제 아니면 올리지 말았으면 좋겠다. 쓰레기같은 소스들때문에 허비한 시간이 아깝다. First, create an XML layout, name it popup_layout.xml and in the res/layout/ folder: Here I have created a linear layout and put three buttons inside. So that the popup is visible I have made the background white. Now to the code. You probably already have a class wher..
출처 : http://blog.naver.com/PostView.nhn?blogId=huewu&logNo=110095622035&parentCategoryNo=18&viewDate=¤tPage=1&listtype=0 Android Traceview War Story 원문: http://android-developers.blogspot.com/2010/10/traceview-war-story.html [이 포스트는 Tim Bray 에 의해 작성되었습니다.] Tim Bray 는 안드로이드 개발자 블로그의 운영자로, 실재 안드로이드 개발팀의 여러 엔지니어가 작성한 내용을 바탕으로 블로그 포스팅을 해왔습니다만, 오랜만에 자신이 직접 작성한, Trace View 사용법에 관한 블로그 포스트를 업데이트 ..
http://www.slideshare.net/motodev/designing-apps-for-motorla-xoom-tablet
출처 : http://blog.naver.com/PostView.nhn?blogId=huewu&logNo=110119643374&parentCategoryNo=18&viewDate=¤tPage=1&listtype=0 Optimizing Apps for Android 3.0 원문: http://developer.android.com/guide/practices/optimizing-for-3.0.html 간만에 Dev Guide 문서를 번역해 보았습니다. 와... 내용이 길군요. 본 문을 두 개의 포스트로 나누고, 중복된 부분과 그다지 필요없다고 여겨지는 부분은 임의로 건너 띈 만큼, 원문을 참고하시면 좋겠네요. 안드로이드 3.0 허니콤은 어플리케이션 사용자 경험을 향상 시킬 수 있는, 여러가지 ..
잘안쓰지만 언젠가는 사용할일이 있겠지 싶은 물건. 주의할점이라고 하면 RadioGroup , RadioButton은 직계 부모 자식 간이어야 합니다. 먼저 그룹값을 가져온뒤 RadioGroup sexGroup = (RadioGroup) findViewById(R.id.sex); 그중에 선택퇸 라디오버튼을 다시한번 가져와서 RadioButton sex = (RadioButton) findViewById(sexGroup.getCheckedRadioButtonId()); 그것의 라벨내용을 사용합니다. sex.getText().toString();
물론 플랫폼에서 res 에 보면 다 볼수 있지만 귀찮거나 급할때 유용할 것 같다. http://www.screaming-penguin.com/info/android_drawables/android_drawables.html
출처 : http://blog.naver.com/david_shkim?Redirect=Log&logNo=50112464359 2011/05/30 04:42 http://blog.naver.com/david_shkim/50112464359 Android Serial(COM)Port 사용 하기 ---- [easop에서 가져왔습니다.] 1) Serial Program 받기 http://code.google.com/p/android-serialport-api/ Serial Port 관련 정보을 얻을 수 있습니다. JNI로 개발 형태로 되어 있습니다. Source는 http://android-serialport-api.googlecode.com/svn/trunk/android-serialport-api/ 에서 하..
R.styleable xml을 사용하다보면 android:layout_width , android:layout_height 등 android: 로 정의된 각 속성을 정의하게 되어있다. 나만의 레이아웃이나 뷰를 커스텀하게 사용하고자 하는경우 추가로 요구되는 값들이 생길텐데 이러한 값을 xml에서 입력하고자 할때 어케 할까? 예제는 TextButton 에 대한 포스팅에 잘 나와있다. 이번 포스팅은 커스텀 styleable에 대한 내용만 정리해 본다~ 1. 나만의 styleable 을 정의하기 해당 내용을 정의할 xml 파일을 만든다. ( my_layout_styleable.xml ) 요렇게하면 MyLayoutAttribete 라는 이름으로 3개의 값을 가지고 있는 styleable이 생겨난다. R.java ..
출처 : http://www.androidpub.com/android_dev_info/636981 개인적으로 작성한 Post가 어느정도 모여서 글을 올려봅니다. 안드로이드 개인 개발자 분들은 주말에도 일하시니까 ^^ 도움이 되시길 바래요. (저는 개발자라서 주말에는 쳐다도 안보겠죠 ㅎㅎ;) 좋은 주말 보내시구요 질문사항이 있으시면 포스트에 남겨주세요 !~ 주말에 답변할수도 Recent Posts [Day22] Service와 Alarm으로 실행되는 Androday FakeCall App 소스 [Day21] Service와 Broadcast 로 실행되는 Androday pedometer App 소스 [Day20] Preference 사용하여 스마트폰 정보 저장 소스 [Day19] Android Iphone..
출처 : http://cafe.naver.com/embeddedcrazyboys.cafe?iframe_url=/ArticleRead.nhn%3Farticleid=9766& 13.안드로이드 블루투스 BlueTooth http://junho85.springnote.com/pages/6481569 목차 안드로이드 블루투스 BlueTooth 블루투스 다중 연결 안드로이드 블루투스 게임 UUID - Universally unique identifier 참고 안드로이드 블루투스 BlueTooth#블루투스#http://developer.android.com/reference/android/bluetooth/package-descr.html http://developer.android.com/reference/andr..
SWT를 본격적으로 시작하기에 앞서서~ Eclipse에서 SWT를 쉽게 사용할 수 있는게 없을까... 하고 찾아봤더니~ 있더라~ ㅋㅋㅋ 게다가 아주 잘 설명해놓은 블로그 포스팅까지 발견! 블로그 쥔장님 캄사캄사해요~ - Eclipse에서 SWT Designer 사용하기 - 첫번째. http://huikyun.tistory.com/221 - Eclipse에서 SWT Designer 사용하기 - 두번째. http://huikyun.tistory.com/222 - Eclipse에서 SWT Designer 사용하기 - 세번째. http://huikyun.tistory.com/223 . . . . . . . 점심 먹고와서 포스트를 따라해보려고 했는데...................... ㅡㅡ; 포스팅에서 언급한..
참고 사이트 #2 http://coozplz.blogspot.com/2011/09/java-active-directory.html import java.util.HashMap; import java.util.Hashtable; import java.util.Map; import javax.naming.Context; import javax.naming.NamingEnumeration; import javax.naming.NamingException; import javax.naming.directory.Attribute; import javax.naming.directory.Attributes; import javax.naming.directory.SearchControls; import javax.na..
출처 : http://evilimp.tistory.com/380 AD(ldap) 테스트용 Java 코드 어제 구글링을 하다가 SF에서 찾은 소스.... import java.util.Hashtable; import javax.naming.Context; import javax.naming.NamingEnumeration; import javax.naming.directory.Attributes; import javax.naming.directory.SearchControls; import javax.naming.directory.SearchResult; import javax.naming.ldap.InitialLdapContext; import javax.naming.ldap.LdapContext; pu..
[Android] 갤럭시탭을 위해 레이아웃 맞추기 Android / 개발 2010/12/28 14:47 http://blog.naver.com/notinoti/80121268628 어플 개발을 하다보면 갤럭시S기준으로 만들게 되고 나중에 갤럭시 탭에서도 실행해 보았는데 화면 레이아웃이 조금씩 어긋나는 경우가 있습니다. 그럴때 다음과 같이 바꾸어서 해보면 어느정도 잡힐것입니다^_^ 1. manifest 파일에 을 추가합니다. (버전 7이상 권장) 그렇지 않으면 화면 가운데로 몰리는 현상이 발생해버리기 때문에 추가해야만 화면크기에 맞게 꽉 차서 나옵니다. 2. http://blog.naver.com/notinoti/80118619288 위에서 말한 내용처럼 모든 단위는 dp(간격, 크기), sp(폰트 사이즈..
출처 : http://tjandroid.blogspot.com/2011/06/adb.html usb 악세서리를 개발하게 되면 폰이 악세서리와 usb 로 연결 되어 있기 때문에 디버깅 하기가 여간 힘든게 아니다. 만약 PC 와 안드로이드 폰이 같은 네트워크 안에 있다면 예를 들어 같은 무선 공유기에 접속해 있다면 adb 를 usb 연결 없이 네트워크로 사용할 수 있다. 참조: http://developer.android.com/guide/topics/usb/index.html 의 Debugging considerations 부분 일반적인 방법 1. PC 와 폰 모두 같은 공유기에 접속한다. 2. PC 와 폰을 usb 로 연결한다. 3. PC 의 terminal 창을 열고 adb 명령을 다음과 같이 수행한다..
1. Java Server import! java.io.BufferedReader; import! java.io.File; import! java.io.FileOutputStream; import! java.io.InputStreamReader; import! java.net.ServerSocket; import! java.net.Socket; public class TCPServer implements Runnable{ public static final int serverPort = 10200; @Override public void run(){ try{ System.out.println("대기중.."); ServerSocket serverSocket = new ServerSocket(serverPo..
출처 : http://endroid.tistory.com/entry/JAVASocket-Image-%EC%A0%84%EC%86%A1 두 가지의 경우가 있겠죠.. 1. 서버가 java이고 클라이언트는 다른 언어인 경우. 2. 서버와 클라이언트 모두 java로 구현하는 경우. 각각 다른 방식으로 프로그래밍을 할 수 있습니다. 1의 경우가 좀더 범용적이겠죠.. 두 가지를 모두 말씀드리겠습니다. - 1번의 경우... 일반적으로 통신은 byte 단위로 이루어집니다. 따라서 file을 읽으면 Image 클래스로 읽지 마시고, FileInputStream으로 읽으셔서 byte 단위로 전송하는 방법입니다. 전송할 파일의 크기를 클라이언트쪽에서 알 수 없으므로, 먼저 파일의 크기를 전송하고, 파일의 내용을 보내게 됩니다..
출처 : http://blog.naver.com/mujjingun/60144443786 1. 이클립스 없이 안드로이드 개발환경 구축하기1 ( JDK 설치, 안드로이드 SDK 설치, 에뮬레이터 실행 ) http://www.tipssoft.com/bulletin/tb.php/FAQ/902 2. 이클립스 없이 안드로이드 개발환경 구축하기2 ( 프로젝트 생성, 컴파일, 실행 ) http://www.tipssoft.com/bulletin/tb.php/FAQ/903 2-1 프로젝트 환경 파일 재구성하기 - Update Project http://www.tipssoft.com/bulletin/tb.php/FAQ/977 3. 안드로이드 프로그래밍 시작하기 http://www.tipssoft.com/bulletin/tb..
출처 : http://whitet8899.egloos.com/1322431 ADB (Android Debug Bridge) ADB의 구성 client : development machine에서 동작. shell에서 client를 invocation해서 command 실행 가능. ADT, DDMS도 client server : development machine의 background process이며, client와 daemon 사이에서의 communication을 관리 daemon : 각각의 device에서 동작하는 background process client를 시작하면, ADB server가 실행중인지 확인해서 실행중이지 않으면 server를 시작시킨다. server가 시작되면 TCP의 5037 po..
米持幸?(2005/11/17) 출처 : http://www.atmarkit.co.jp/fjava/rensai3/yonemochi02/yonemochi02.html SWT (이)란 무엇인가 SWT는, Eclipse의 가장 중심적인 윈도우·툴 킷입니다. 윈도우·시스템은 보통, 단순하게 윈도우를 관리·표시할 만한 기능을 제공합니다. 다만, 그 만큼이라면 윈도우는 「뒤로 숨어 있는 윈도우를 클릭하면 앞에 나온다」라고 하는 기본 동작을 해 주지 않습니다. 윈도우·어플리케이션은, 그렇게 말한 처리를 마우스 이벤트 처리등을 적절히 실시하는 것으로 개별적으로 실시하지 않으면 안되지 않고, 모든 윈도우의 출력은, 일일이 그래픽API를 이용하지 않으면 안됩니다. 거기서, 윈도우·시스템에는 모든 윈도우에 공통의 기능을 애드..
출처 : http://cafe.naver.com/javacircle.cafe?iframe_url=/ArticleRead.nhn%3Farticleid=36277& Socket을 이용한 서버로 파일 송수신 예제 입니다. // FileServer.java import java.net.ServerSocket; import java.net.Socket; import java.io.*; public class FileServer implements Runnable{ private final int PORT = 25573; public static void main(String[] args) { new Thread(new FileServer() ).start(); } public void run() { ServerS..
출처 : http://www.rgagnon.com/javadetails/java-0542.html A client module connects to a server then a file is sent to the client. This exemple is very simple with no authentication and hard-coded filename!First a server module. import java.net.*; import java.io.*; public class FileServer { public static void main (String [] args ) throws IOException { // create socket ServerSocket servsock = new Se..
