목록Android/Tip&Tech (399)
올해는 머신러닝이다.
하나의 앱으로 여러 해상도를 지원하고자 할 때 이클립스에서의 layout, drawable 폴더 명을 달리 해줄 필요가 있다. 갤럭시S drawable-hdpi layout-hdpi 갤럭시S2 drawable-xhdpi-1280x720 layout-xhdpi-1280x720 갤럭시 노트 drawable-xhdpi-1280x800 layout-xhdpi-1280x800 갤럭시탭 10.1 drawable-xlarge-mdpi layout-xlarge-mdpi [출처] [Android 개발] Eclipse의 해상도별 layout, drawable 폴더 만들기(갤럭시 노트, 갤럭시 S2, 갤럭시S, 갤럭시 탭, 옵티머스 시리즈)|작성자 konori
이원희 maestro.wh@gmail.com, 변광민 yelllo wsun@gmail.com, 신정수 hello_mile2@ naver.com|삼성전자 소프트웨어 멤버십 정회원이며 현재 S펜 SDK를 사용한 프로젝트를 진행하고 있다. 안드로이드 플랫폼뿐만 아니라 모바일 생태계, 소프트웨어 엔지니어링, 병렬처리, 신호처리, 자연어 처리 등 다양한 분야에 관심을 가지고 관련 분야를 연구하고 있는 학생들이다. 2011년 11월 국내 출시된 갤럭시 노트는 출시 7개월이 지난 지금까지도 돌풍을 일으키고 있다. 특히 5.3인치의 큰 화면과 사용자의 필기압력을 256단계로 인식하는 노트 그리고 S펜만의 강점은 안드로이드 애플리케이션 개발자들에게 새로운 도전 기회를 부여하고 있다. S펜 SDK 문서 클래스 구조도 현재..
출처 : http://blog.naver.com/tyboss/70038694288 1. 첫번째 방법 2. 두번째 방법 3. 세번째 방법 (한파일에 기본 페이지와 엑셀 다운로드 설정할때) 4. 네번째 방법 (한글 제목에 브라우저별 처리) titleName = "한글제목"; titleName = new String(titleName.getBytes("KSC5601"), "8859_1"); if(clientBrowser.indexOf("MSIE 5.5")>-1 || clientBrowser.indexOf("MSIE 6.0") > -1 ){ response.setHeader("Content-Type", "doesn/matter;"); response.setHeader("Content-Disposition", "..
출처 : http://spoqa.github.com/2012/07/23/android-open-library.html 안드로이드 오픈 라이브러리 akaz안드로이드 개발을 하면서 곧바로 적용할만한 라이브러리들이 무엇이 있을지 항상 궁금했었는데, 이번 기회에 조사를 해 보았습니다. 앞으로 소개할 라이브러리가 조금이라도 프로젝트에 도움이 되었으면 합니다.Actionbar Sherlock 구글은 허니콤 이후부터 기존의 타이틀바를 대체한 액션바를 이용하도록 권고하였습니다만 프로요나 진저브레드같은 허니콤 이전의 플랫폼에서는 액션 바를 사용할 수 있는 방법이 없었습니다. 그렇지만 액션바 셜록을 이용하면 그 이전 버전의 안드로이드에서도 액션바를 사용할 수 있습니다. 또한 ICS스타일의 UI컴포넌트들도 제공하므로 ICS..
public int measureCellWidth( Context context, View cell ) { // We need a fake parent FrameLayout buffer = new FrameLayout( context ); android.widget.AbsListView.LayoutParams layoutParams = new android.widget.AbsListView.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT); buffer.addView( cell, layoutParams); cell.forceLayout(); cell.measure(1000, 1000); int width = cell.getMeasure..
출처 : http://blog.daum.net/mailss/19 *ADT 17 버전 부터는 라이브러리 파일을 프로젝트 내 libs 폴더에 넣어야 제대로 인식한다. 빌드패스를 따로 잡아주지 않아도 자동으로 인식한다. 샘플 소스는 libs 폴더에 넣지 않았기 때문에 ADT 17버전에서는 실행시 Exception이 발생한다. libs 폴더로 jar 파일을 이동시키고 빌드패스를 수정하면 된다. 지난번 ViewPager에 대해서 간단한 예제를 만들어봤다. 이번에는 ViewPager에서 사용하는 다른 Adapter 및 다른 기능에 대해서 조금 설명하고자 한다. 1. Fragment를 사용하는adapterFragment는 Android 3.0 (허니콤)부터 추가된 기능이다. Fragment를 잘 모르시는 분이라면 조..
출처 : http://blog.naver.com/PostView.nhn?blogId=huewu&logNo=110116958816 Horizontal View Swiping with ViewPager[이 포스트는 Rich “geekyouup” Hyndman 에 의해 작성되었습니다. 인생을 조금 쉽게 만들기 위하여 노력하는 사람이지요. — Tim Bray] 여러분이 이제 막 안드로이드 어플리케이션 개발을 시작한 개발자이건, 능숙한 베테랑이건 상관 없이, 수평으로 스크롤 되는 View 를 만들 경우가 있습니다. 이미 많은 안드로이드 어플리케이션들이 이 기능을 활용하고 있습니다. 예를 들어 새로운 안드로이드 마켓 어플리케이션이나, 구글 닥스, 구글+ 등이 그렇지요. ViewPager 는 이런 기능을 구현하기 위..
출처 : http://marakana.com/s/android_fragments_tutorial,1250/index.html Overview Android runs on variety of devices, from phones with small screen sizes, to tablets and large-screen TV sets. Fragments in a nutshell represent a smaller part of a user interface that could take a whole screen, or be part of a larger UI. By creating and using fragments, your app can adapt to a variety of devices and s..
홈페이지 제작과 XE를 처음 접하는 초보님들을 위한 강좌를 소개합니다.조금만 시간을 투자하면 멋진 홈피를 갖게될 것이라고 확신합니다. 1. 제로보드 xe 공식매뉴얼입니다http://www.xpressengine.com/manual http://xe.xpressengine.net/?mid=wiki&act=dispWikiTreeIndex(구 매뉴얼) http://xe.xpressengine.net/?mid=wiki&act=dispWikiTitleIndex(구 매뉴얼) http://www.xpressengine.com/?_filter=search&vid=&mid=tip&category=&search_keyword=%EB%A7%A4%EB%89%B4%EC%96%BC&search_target=title(구 매뉴얼)..
The below snippet helps to implement three level list in android. First Group --Sub Group --- Child1 --- Child 2 --- Child 3 in this pattern..... main.xml: Home.java package com.threeelevellist.activities; import android.app.Activity;import android.content.Context;import android.graphics.Color;import android.os.Bundle;import android.view.View;import android.view.ViewGroup;import android.widget.B..
############################################################### contents = myDB.repWord(contents, "&", "&amt;"); contents = myDB.repWord(contents, "", ">"); contents = myDB.repWord(contents, " ", " "); contents = myDB.repWord(contents, "\"", """); contents = myDB.repWord(contents, "\n", " "); ############################################################### public String repWord(String b..
http://psdreview.com/best-free-android-icon-sets-for-developers-and-designers/
출처 : http://aroundck.tistory.com/732 http://developer.android.com/guide/topics/ui/actionbar.html - ActionBar는 Android 3.0 ( API Level 11 ) 부터 도입된 녀석. - ActionBar 의 주된 목적은. 1. Action bar 는 Application 이름, User 위치 표시. 2. 일관된 navigation 이나 view 의 갱신 등에 사용한다. 3. user 가 자주 쓰는 action 을 만들어 제공한다. - ActionBar 는 API Level 11 미만인 녀석과 호환이 안 되기 때문에, 하위호환성을 위해서는 ActionBar 를 Activity 의 Layout 에 정의하는 것이 좋다. - ..
http://blog.naver.com/PostView.nhn?blogId=ho_c&logNo=80113944196
출처 : http://cuteelfluv.cafe24.com/xe/index.php?mid=etc&page=2&document_srl=11846 SoftReference 를 이용한 Object Cache 활용하기 2011.12.19 14:34:03 0 Comments 1494 Readed 정말 좋은 자료라 퍼왔습니다. 이미지 캐싱에는 정말 많은 문제가 있는데 SoftReference 를 활용한 방법도 좋은 해결책이 될 것 같습니다. ============================================================================================================================== 저는 자바로 어플리케이션 개발을 시작한지 이제 일..
Android HttpClient GET, POST example HttpClient / Android 2 2012/02/29 07:37 http://blog.naver.com/cwisky/80154344088 res/layout/httpclientdemo.xml http://서버 IP:8888/WebApp/serverProc.jsp package android.test.app; import java.net.URI; import java.util.*; import org.apache.http.*; import org.apache.http.client.*; import org.apache.http.client.entity.*; import org.apache.http.client.methods.*; imp..
##sequence 사용 #Oracle CREATE SEQUENCE orders_seq START WITH 1000 INCREMENT BY 1 NOCACHE NOCYCLE; ##AutoIncrement 사용 #Mysql : auto_increment CREATE TABLE animals ( id MEDIUMINT NOT NULL AUTO_INCREMENT, name CHAR(30) NOT NULL, PRIMARY KEY (id) ) #Mssql : identity create table test( no int identity(1,1) NOT NULL, name varchar(256) NULL ) #Informix : serial create table t ( id serial, image clob ) p..
출처 : http://dev.paran.com/2012/01/31/android-strict-mode-howto/ Android 어플리케이션의 반응 속도 및 효율성을 모니터링 할 수 Strict mode 에 대해서 이야기해 보려고 합니다. Strict mode 는 Android Developer 블로그 사이트에 Brad Fitzpatrick에 의해 이미 New Gingerbread API: StrictMode라는 제목으로 포스팅 되어있습니다. 이 후 Honeycomb 버전부터 신규 API 가 추가되고 Ice Cream Sandwich(이하 ICS) 에서의 변화가 있어 Brad Fitzpatrick 의 블로그 내용을 바탕으로 다시 한번 재조명하는 시간을 갖고자 합니다. 2. Strict Mode 의 필요성..
2011년 2월 23일 수요일 [안드로이드] arraylist 정렬하기 [Android] comparator 를 이용한 Collections.sort (중복없음) Collections.sort 에다가 comparator 로 대상 변수만 지정해주면 중복없이 쉽게 정렬이 가능하다. 코딩도 짧아지고 속도도 빨라진다. downMyData : ArrayList형식의 데이터가 들어있다고 가정 myArrayData : sort 용 비어있는 ArrayList @ custom 은 Custom Class 를 뜻한다. 바꿀 수도 있음. //비어있는 sort용 ArrayList List myArrayData = new ArrayList(); //일단 데이터를 sort용 ArrayList에 넣는다. for(int i = 0 ;..
출처 : http://dislab.hufs.ac.kr/lab/Android/Intent_%EC%82%AC%EC%9A%A9_%EC%98%88?rdfrom=http%3A%2F%2Fdislab.hufs.ac.kr%2Fw%2Findex.php%3Ftitle%3DAndroid%2FIntent_%25EC%2582%25AC%25EC%259A%25A9_%25EC%2598%2588%26redirect%3Dno#Camera_.EC.82.AC.EC.A7.84_.EC.B4.AC.EC.98.81 Android/Intent 사용 예 DISLab < Android 이동: 둘러보기, 찾기 목차 [숨기기] 1 내장 프로그램 띄우기 1.1 웹페이지 띄우기 1.2 구글맵 띄우기 1.3 구글 길찾기 띄우기 1.4 SMS/MMS 발송 1.5..
http://keepburning.tistory.com/131
출처 : http://blog.naver.com/PostView.nhn?blogId=huewu&logNo=110116958816 Horizontal View Swiping with ViewPager [이 포스트는 Rich “geekyouup” Hyndman 에 의해 작성되었습니다. 인생을 조금 쉽게 만들기 위하여 노력하는 사람이지요. — Tim Bray] 여러분이 이제 막 안드로이드 어플리케이션 개발을 시작한 개발자이건, 능숙한 베테랑이건 상관 없이, 수평으로 스크롤 되는 View 를 만들 경우가 있습니다. 이미 많은 안드로이드 어플리케이션들이 이 기능을 활용하고 있습니다. 예를 들어 새로운 안드로이드 마켓 어플리케이션이나, 구글 닥스, 구글+ 등이 그렇지요. ViewPager 는 이런 기능을 구현하기 ..
1. layout/main.xml의 progress bar의 android:progressDrawable 속성을 설정한다. 3. res/drawable 디렉토리 밑에 다음의 파일을 생성한다. backgroundProgress.png secondaryProgress.png progress.png png파일을 생성하지 않고 drawable로 작성하려면 2b. res/drawable/new_drawable.xml 파일을 다음과 같이 설정한다. [출처] progress bar 모양 바꾸기|작성자 treebystream
출처 : http://chihun80.springnote.com/pages/5715069 안드로이드 입문서 3rd Edition을 읽으며 요약한 내용입니다. 열공! Section 2. 애플리케이션의 기초(3) 액티비티와 태스크 태스크 : 하나의 스택 내 정렬된 관련 액티비티들의 그룹 스택 내 루트 (최하위) 액티비티 - 태스크를 시작했던 액티비티. 일반적으로 사용자가 애플리케이션 시작을 위해 런처에서 선택했던 액티비티 스택 내 최상위 액티비티 - 현재 실행 중인 (포커스 된) 액티비티 하나의 액티비티가 다른 액티비티를 시작하면 새로운 액티비티는 스택에 푸쉬됨 (따라서 최상위 액티비티가 됨) 사용자가 BACK 키를 누르면 현재의 액티비티는 스택에서 팝되며, 이전 액티비티가 (최상위 액티비티가 되어) 실행이..
출처 : http://androi.tistory.com/9 안드로이드 앱이 업그레이드가 되었는데도, 사용자들은 잘 확인하지도 않고, 설사 확인했다고 해도 큰 문제가 없으면 업데이트를 잘하지 않는다.큰 노력과 수고없이, 앱 시작시 최신버젼을 확인하고 최신버젼이 있을 경우, 사용자에게 팝업을 띄우고, 업데이트 하는 방법을 알아보자.1. 웹페이지에 최신 버젼을 표시 간단하게 무료로 사용하고 싶으면 구글앱엔진을 추천한다. 그 외에 본인의 블로그 등을 사용해도 좋음 ex) http://checkappver.appspot.com/CheckBBVersion.html version:1.112. 웹페이지의 html 파일을 가져와서 간단한 파싱으로 버젼 구하기DownThread mThread;String s..
출처 : http://androi.tistory.com/6 1. 특정 앱으로 바로가기 (패키지명 이용) https://market.android.com/details?id=dingdong.game.bb 2. 제작자 검색하여 바로가기 https://market.android.com/search?q=pub:Heaven's tear 3. 검색어로 검색하여 바로가기 https://market.android.com/search?q=369 (검색어가 369인 경우) https://market.android.com/search?q=369+heaven (검색어가 369 와 heaven 인 경우) : java 소스에서 intent 이용 예 ex) Intent intent =..
출처 : http://mylifewithandroid.blogspot.com/2009/10/lists-and-focuses.html Lists and focuses I received another seemingly trivial question in a comment. The situation is simple: we have a ListView and it contains TextViews. The user clicks (touches) a list row and the row gets highlighted until the user removes his or her finger (releases the mouse button in case of the emulator). Then comes the ..
출처 : http://mgmblog.com/2009/02/06/export-an-android-sqlite-db-to-an-xml-file-on-the-sd-card/ Export an Android SQLite db to an XML file on the SD CardFebruary 6th, 2009 in Android, Toolbox | I’m pretty syched about this code. It took some figuring out and some hunting and asking questions on Google’s Android forum. But thanks to the following posts File permissions for world read/write SQLite3 ..
참고 사항 : http://stackoverflow.com/questions/541966/android-how-do-i-do-a-lazy-load-of-images-in-listview
Multicolumn ListView in Android 출처 : http://www.heikkitoivonen.net/blog/2009/02/15/multicolumn-listview-in-android/ Ever since I started programming on the Android platform, I have been wondering when the SDK would include a ready-made multicolumn ListView (or listbox as it is often called in other frameworks). One could of course construct such a thing by slapping regular ListViews side by side..