목록Android/Tip&Tech (399)
올해는 머신러닝이다.
출처 :http://pppplqqqq.blog.me/100107860575 ProgressBar 설정 styles.xml 파일에 추가 (res/values/styles.xml) drawable 폴더에 progress_large_color.xml 추가
http://ecogeo.tistory.com/278
출처 : http://jsharkey.org/blog/2008/08/18/separating-lists-with-headers-in-android-09/ Separating Lists with Headers in Android 0.9Monday August 18, 2008 at 4:42 PM Earlier today the latest Android 0.9 SDK was released, and it’s packed full of wonderful changes. As you play around, you might see ListViews split into sections using separating headers. (Example shown on the right is the browser set..
출처 : http://blogingtutorials.blogspot.com/2010/11/android-listview-header-two-or-more-in.html Hello Friends, There are two or many more header listview in android. So Today we are discussed about the two header of android. And See Also Simple Listview Display In Android Device. So This are the all java and xml file given below. and this are the very useful projects. main.xml header.xml Now The j..
출처 : http://blog.naver.com/PostView.nhn?blogId=kippee&logNo=130048583564 아직 까지는 이 세개의 관계가 정리가 안된다. http://codinghard.wordpress.com/2009/05/16/android-thread-messaging/ 에서는 Handler와 Looper의 역할에 대하여 아래와 같이 예를 들어 설명한다. 안드로이드는 Thread간에 통신하기 위해서 Handler와 Looper를 제공하고 있다. Child Thread가 웹으로 부터 이미지를 가져와 생성하려고 할때의 예를 제시하고 있다. 생성이 끝나고 (아마도 imageView형태로 바꾸어서) Main Thread의 Message Queue와 연동된 Handler를 이용하여 M..
http://www.faqs.org/rfcs/rfc1867.html Content-type: multipart/form-data, boundary=AaB03x --AaB03x content-disposition: form-data; name="field1" Joe Blow --AaB03x content-disposition: form-data; name="pics" Content-type: multipart/mixed, boundary=BbC04y --BbC04y Content-disposition: attachment; filename="file1.txt" Content-Type: text/plain ... contents of file1.txt ... --BbC04y Content-dispositio..
Android: how to create transparent or opeque background 출처 : http://zaman91.wordpress.com/2010/03/22/android-how-to-create-transparent-or-opeque-background/ You can implement application styles as you like in android platform. If you want to create a transparent background Activity then follow the steps below. Transparency of background: create an activity set activity’s theme as “@android:style..
You need to use the new android.animation framework (object animators) withFragmentTransaction.setCustomAnimations as well as withFragmentTransaction.setTransition.Here's an example on using setCustomAnimations from ApiDemos' FragmentHideShow.java:ft.setCustomAnimations(android.R.animator.fade_in, android.R.animator.fade_out);and here's the relevant animator XML from res/animator/fade_in.xml: xm..
출처 : http://www.androidpub.com/878847 안녕하세요 그냥가자입니다. 오늘 만들어볼 것은 (무슨 오늘의 요리 삘이네요..) Sliding Toggle 버튼입니다. 토글버튼으로 만들면 드래그 효과가 안나죠? 그렇다고 그냥 직접 끌고 다니게 만들자니 코딩량이 만만찮습니다. 전 언제나 짧고 간단하게 만듭니다. 귀찮거든요 ㅡㅡㅋ 그럼 시작해보겠습니다. SlideButton.java 01.public class SlideButton extends SlidingDrawer implements Checkable, 02.OnDrawerOpenListener, OnDrawerCloseListener{ 03.int mButtonResource = 0; 04.OnCheckChangedListner ..
Java Language RulesExceptions: 예외 무시하지말고 처리하기.Exceptions: 상위 Exception으로 싸잡아서 처리하지 않기.Finalizers: 왠만하면 쓰지않기 (언제 적용될지 모름)Imports: *쓰지말고 정확하게 풀네임 적기.Java Library Rules표준 코딩컨벤션이 바뀌어서 예전 코딩컨벤션과 충돌이 난다면 예전 코딩컨벤션으로 작성해서 일관성을 유지하기.Java Style Rules자바표준 컨벤션에서 추가사항:Comments/Javadoc: 표준대로 작성하기.Short methods: 메소드는 40줄이 넘지않게 짧게 작성하기Fields: 초기에 선언하기나 사용하기 바로 전에 선언할 것.Local variables: 지역변수 범위는 최소화하기.Imports: 안..
출처 : http://isulnara.com/tt/227 안드로이드(android) 앱이 실행되면서 스플래시(splash, 로딩) 화면을 띄우는 소스입니다. 여러가지 방법이 있겠지만 제가 사용하는 방법은 아래와 같습니다. AndroidManifest.xml MainActivity .java public class MainActivity extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); startActivity(new Intent(this, SplashActivity.class)); initiali..
출처 : http://blog.naver.com/oklmg/70105002506 태스크란? (Task, Activity Stack) 어피니티란? (Android Affinity) 플래그란? (Android Flag) 안드로이드 태스크란? (Android Task, Activity Stack) - Task는 어플리케이션에서 실행되는 액티비티를 보관하고 관리하며 Stack형태의 연속된 Activity로 이루어진다 - 선입후출(First In Last Out)형태로 나중에 적재된 액티비티일 수록 가장 먼저 사용된다 만약 1페이지>2페이지>3페이지 순으로 액티비티를 이동했을때 실행순서대로 Task에 push해 놓았다가 back버튼을 누르면 3페이지>2페이지>1페이지순으로 Task에서 pop시켜 되돌아 간다고 생..
출처 : http://blog.softwaregeeks.org/archives/616 리플렉션(Reflection)을 활용한 안드로이드 위젯 매핑(Mapping) 간소화 하기 Dec 5 11 under Android, Develop | 1 Comment 안드로이드 어플을 만들다보면 안드로이드 위젯(Widget)을 매핑하는 코드를 작성합니다. 위젯이 3~4개 정도면 쉽게 작성할 수 있지만 복잡한 액티비티(Activity)의 경우는 십여개가 넘는 위젯이 존재하고 아래와 같은 코드의 반복이 일어납니다. 자바의 리플렉션을 활용하면 아래의 코드를 간소화 할 수 있습니다. ? 1 2 3 4 EditText trackEditText = (EditText) findViewById(R.id.title); EditText..
참조 : http://blog.naver.com/PostView.nhn?blogId=kippee&logNo=130048583564 Android 에서는 thread 간에 통신을 하기 위해서 handler 와 looper 를 제공하고 있다. child thread 에서 어떤 작업 결과를 main thread 에 알려주는 방법은 handler 를 이용해서 message 를 보내는 것이다. main thread 는 message queue 와 연결되어 있기 때문이다. child thread 에서도 main thread 와 같이 handler 를 이용해 message 를 받고자 한다면, looper 를 써야 한다. looper 가 없으면 이런 실행 에러가 난다. ("Can't create handler insi..
출처 : 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://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 허니콤은 어플리케이션 사용자 경험을 향상 시킬 수 있는, 여러가지 ..
물론 플랫폼에서 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..
[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(폰트 사이즈..