摘要: 阅读:https://developer.android.com/training/camera/index.html先学学怎么从相机获取相片。首先要有权限: ...private void dispatchTakePictureIntent(int actionCode) { Intent takePictureIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); startActivityForResult(takePictureIntent, actionCode);}//查询是否有程序能够照相public ... 阅读全文
posted @ 2013-11-04 21:00 yutoulck 阅读(221) 评论(0) 推荐(0) 编辑
摘要: 阅读:https://developer.android.com/training/managing-audio/index.html系统将音频流分为了很多种:stream for playing music, alarms, notifications, the incoming call ringer, system sounds, in-call volume, and DTMF tones.默认情况下,音量调整按钮控制当前正在活动的音频流。setVolumeControlStream(AudioManager.STREAM_MUSIC);使用上面的方法,就能让物理按键对当前声明的音频流 阅读全文
posted @ 2013-11-04 20:32 yutoulck 阅读(291) 评论(0) 推荐(0) 编辑