목록안드로이드 (401)
설.현.아빠
http://jeehun.egloos.com/3999927
http://jeehun.egloos.com/3998429
음...이건...벨소리 스트림 설정값인가..? 암튼 설정값 읽어오기. int ringerModeStreamTypes = Settings.System.getInt(getContentResolver(), Settings.System.MODE_RINGER_STREAMS_AFFECTED,0); 요건 설정값 세팅해주는거. Settings.System.putInt(getContentResolver(), Settings.System.MODE_RINGER_STREAMS_AFFECTED, ringerModeStreamTypes); 그 밖의 설정값들 화면 조명 시간 설정값 읽어오기 android.provider.Settings.System.getInt(context.getContentResolver(), android.p..
http://taehoonkoo.tistory.com/132
정확히 무언지는 잘모르겠다...아래 예제를 보면... String state="handsome"; context.getString(R.string.test, state); getString할때 state값을 넘겨주고 strings.xml에서 해당 state를 받아와서 %s로 출력해주는 역할이라고 할 수 있겠다. 물론 출력이야 소스에서 해야지. String.xml 파일의 태그를 로 변경합니다. 예로 아래와 같은 스트링을 String.xml 파일에 정의합니다. I am a %s boy 위와 같은 스트링을 소스내에서 아래와 같이 사용시 String state ="handsome"; context.getString(R.string.test, state) 다음과 같이 출력됩니다. I am a handsome bo..
아래 두개의 소스를 보면서 이해를 하자. 결과를 보면 왼쪽소스는 Compile Error가 발생할 것이고, 오른쪽은 false가 되어 프린트 되지 않을 것이다. class Point { int x, y; } class Element { int atomicNumber; } class Test { public static void main(String[] args) { Point p = new Point(); Element e = new Element(); if (e instanceof Point) { // compile-time error System.out.println("I get your point!"); } } } class Point extends Element{ int x, y; } class ..
흠...아직 모르는게 너무 많다. 아래 내용 대로라면 각각의 TASK는 동일한 Application 두개 라고 봐도 되나..? 동일한 Application이 다른 TASK로 동작한다...그리고 startActivity를 통해 새로운 Activity생성 시 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); 위 처럼 Flag를 설정해 주었을 경우...기존에 동작하는 TASK가 있으면 해당 TASK Stack에 새로운 Acitivity를 추가하지만 그게 없다면 새로운 TASK를 실행시키는 FLAG란다... 근데...기존 TASK가 존재하지 않을 수가 있나...? 아...잘모르겠다... FLAG_ACTIVITY_NEW_TASK flag 앞서 언급한대로 새로운 Activity는..