public class Test extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView( R.layout.myTest ); final TextView outText = (TextView)findViewById(R.id.textView01); LinearLayout linear = (LinearLayout)findViewById(R.id.linear01); linear.setOnTouchListener(new View.OnTouchListener() { @Override public boolean onTouch(View v, ..
AudioManager mAudioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE); (수정) 2011-05-25 /* 현재 오디오모드확인 */ mAudioManager.getRingerMode() == AudioManager.RINGER_MODE_SILENT : 사일런트 모드일 경우(값0) mAudioManager.getRingerMode() == AudioManager.RINGER_MODE_VIBRATE : 진동모드일 경우(값1) mAudioManager.getRingerMode() == AudioManager.RINGER_MODE_NORMAL : 벨 모드일 경우(값2) //AudioManager.ACTION_AUDIO_..
Emulated Device Key Keyboard Key Home HOME Menu (left softkey) F2 or Page-up button Star (right softkey) Shift-F2 or Page Down Back ESC Call/dial button F3 Hangup/end call button F4 Search F5 Power button F7 Audio volume up button KEYPAD_PLUS, Ctrl-5 Audio volume down button KEYPAD_MINUS, Ctrl-F6 Camera button Ctrl-KEYPAD_5, Ctrl-F3 Switch to previous layout orientation (for example, portrait, l..
- Total
- Today
- Yesterday