목록전체 글 (1341)
오늘도 공부
SAMSUNG, LG, Smart Phone Android Open Source 삼성 안드로이드폰 소스 입니다. http://opensource.samsung.com/reception/reception_main.do?method=reception_list&menu_item=mobile LG 안드로이드 소스 입니다. http://opensource.lge.com 옵티머스 큐는 LU2300입니다
출처 : http://www.androidpub.com/index.php?mid=android_dev_info&search_target=title_content&search_keyword=%EB%A9%94%EB%89%B4&document_srl=1577289 안드로이드에 기본 내장되어 있는 QuickContactBadge 은 주소록에 한정해서 사용이 가능한듯합니다. http://developer.android.com/reference/android/widget/QuickContactBadge.html 검색해 보니까 같은 방식의 UI를 아무곳에나 적용기 가능한 소스를 공개한 사람이 있더군요. http://www.londatiga.net/it/how-to-create-quickaction-dialog-in-..
Intent intent = new Intent(); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); intent.setAction(android.content.Intent.ACTION_VIEW); intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); if (file.getName().endsWith(".pdf")){ intent.setDataAndType(Uri.fromFile(file), "application/pdf"); }else if (file.getName().endsWith(".hwp")){ intent.setDataAndType(Uri.fromFile(file), "application/hwp"); } try{ star..
안녕하세요~ 이번에 안드로이드에 대해 독학으로 공부하고 있는 학생입니다. 기본 지식이 많이 없는 편이라 이렇게 질문을 올리게 되었습니다. 귀찮더라두 끝까지 봐주시고 저에게 좋은 스승이 되어주세요 질문은 가속도 센서를 이용해서 만보기를 만들어 볼라고 하는데요 여차여차 소스를 구하게 되었습니다. 그래서 이것을 토대로 공부를 하고 싶어하는데요 소스들이 무엇을 의미하는지 몰라서 이렇게 질문을 하게 되었습니다 스승님들 저에게 가르침을 주세요~ 자세한 설명 부탁드리겠습니다!! (__)꾸벅! [MainActivity.java] package com.androday.test; import! android.app.Activity; import! android.content.BroadcastReceiver; import!..
/********************************************************** 설명 : 범용적으로 db를 컨트롤 할수 있는 class* 홈페이지 : http://www.mjava.net * 만든사람 : 명랑폐인™ merong@hanmir.com (MSN id 동일)* 저작권 : 없으니까 맘대로 쓰세요. ********************************************************//* common_config.php 파일은 {dbhost, dbuser, dbpass, dbname} 에 대한 정보를 가진 설정파일이다.다른 파일명을 include할때는 해당파일에 네 변수값을 설정해 놓도록 한다.*/$include "common_config.php";clas..
출처 : http://www.mokasocial.com/2011/02/create-a-custom-styled-ui-slider-seekbar-in-android/ Create a Custom-Styled UI Slider (SeekBar) in Android By Koa Metter On February 17, 2011 In Android Development, Design, Tutorials With 4 Comments Permalink An Android slider (or a SeekBar as it’s called in the Android world) is a pretty slick UI tool which we recently used in our Call Your Folks! app as ..
출처 : http://www.androidside.com/bbs/board.php?bo_table=B52&wr_id=7278 아래 싸이트를 보고 이미지만 편집해서 해봤는데요 nine-patch이미지 만드는게 쉽지 않네요. 리소스를 잘 만들지 못해서 깔끔하지가 않지만 찾으시는 분이 많은 것 같아서 해봤습니다. 커스텀 토글 만드실 분은 아래 링크 참고 하셔서 만드시면 되겠습니다. http://www.mokasocial.com/2011/07/sexily-styled-toggle-buttons-for-android/#more-1259 그리고 이렇게 토글로 만들면 이미지만 변경되는 것일 뿐 슬라이드 처리가 되지 않기 때문에 seekbar로 만들면 더 효과가 비슷할 것으로 보이네요. 위에 링크 걸어놓은 싸이트로 들..
- 화면 해상도 알아내기 - 방법 #1 1 DisplayMetrics metrics = new DisplayMetrics(); 2 getWindowManager().getDefaultDisplay().getMetrics(metrics); 3 4 int ScreenWidth = metrics.widthPixels 5 int ScreenHeight = metrics.heightPixels 방법 #2 1 WindowManager wm = (WindowManager)getSystemService(Context.WINDOW_SERVICE); 2 Display dsp = wm.getDefaultDisplay(); 3 4 int height = dsp.getHeight(); 5 int width = dsp.getWi..
출처 : http://kpbird.blogspot.com/2011/08/android-check-application-is-running.html Android: Check application is running ? Posted by Ketan Parmar at 11:25 PM | Wednesday, August 17, 2011 Android has different application lifecycle, Many times user press Home hardware button and application goes in background, Application is still running but it's in background, Now We want to identify that applic..
자답입니다. 출처 : http://blog.naver.com/kkamci25?Redirect=Log&logNo=10098212677 각 위젯에서 제공하는 setTextSize Method는 2가지를 제공하고 있다. 1. Pixel 값으로 설정하는 방법 setTextSize(float size) : size는 pixel value를 입력하면 된다. 2. Unit Type을 함께 설정하는 방법 setTextSize(int unit, float size) unit 값은 TypedValue class에 정의되어 있는 값으로 다음과 같은 값을 갖는다. /** {@link #TYPE_DIMENSION} complex unit: Value is raw pixels. */ public static final int C..