Programming Android 36

Android 'Unable to add window — token null is not for an application' exception

http://stackoverflow.com/questions/2634991/android-1-6-android-view-windowmanagerbadtokenexception-unable-to-add-window http://stackoverflow.com/questions/7933206/android-unable-to-add-window-token-null-is-not-for-an-application-exception I'm guessing - are you trying to create Dialog with an application context? Something like this:new Dialog(getApplicationContext()); This is wrong. You need to..

Programming Android 2012.07.15

How to use Multi-touch in Android 2: Part 3, Understanding touch events

http://www.zdnet.com/blog/burnette/how-to-use-multi-touch-in-android-2-part-3-understanding-touch-events/1775 In this installment of the Android multi-touch series, we try to understand touch events by writing some sample code that dumps them out and then examines the results. All source code can be downloaded from the web site for Hello, Android! (3rd edition). Understanding touch events Whenev..

Programming Android 2012.07.04

안드로이드 Failed to install on device timeout

http://yc0345.tistory.com/entry/%EC%95%88%EB%93%9C%EB%A1%9C%EC%9D%B4%EB%93%9C-Failed-to-install-apk-%EC%97%90%EB%9F%AC http://daybrush.com/15005 개발하다보면 용량이 점점 커지기 때문에 업로드 하는 시간도 더 걸립니다. 이건 업로드 하는 시간 제한이 기본 시간이 3000이기 때문에 3초 안에 못 올리면 취소가 됩니다. 그래서 전 40000으로 바꿨습니다. Windows - Preferences - Android - DDMS 에서 ADB connection time out (ms)를 많이 늘리세요(기본 3000 입니다.)[출처] 데이브러쉬 : http://daybrush.com/?document..

Programming Android 2012.07.03

27. 파일 입출력

http://babtingdev.tistory.com/261 파일의 위치는 /data/data/패키지명/files 디렉토리로 정해져 있으며 임의 경로의 파일을 마음대로 열 수 없다. http://www.androidpub.com/index.php?mid=android_dev_qna&page=6&document_srl=2148245 bytestr_data[]=null;try {InputStream is =getAssets().open(filename);intsize=is.available();str_data=newbyte[size];is.read(str_data);is.close();}catch(Exception e){e.printStackTrace();} 이건 asset에 파일 넣고 읽는 것인데요.. t..

Programming Android 2012.07.01