04 2014 档案

摘要:wp调用wcf方式 DevicesWebService.DevicesClient client = new DevicesWebService.DevicesClient(); client.RegisterDeviceCompleted +=RegisterDevi... 阅读全文
posted @ 2014-04-25 11:22 东方小花猪 阅读(147) 评论(0) 推荐(0)
摘要:Notification状态栏通知设置类Notification notification = new Notification(icon,strremark,System.currentTimeMillis());图标和时间 notification.setLatestEventInfo(thi... 阅读全文
posted @ 2014-04-16 11:34 东方小花猪 阅读(272) 评论(0) 推荐(0)
摘要:国际化:新建文件夹在res中values-en英文values-en-rUS代码美国的英文values-zh保证strings.xml中对应的name相同就可以,图片一样屏幕适配样式与主题values->style.xml没有就新建样式:可以继承 下一个为主题 阅读全文
posted @ 2014-04-16 11:29 东方小花猪 阅读(303) 评论(0) 推荐(0)
摘要:MediaRecorder摄像类 recorder = new MediaRecorder(); recorder.setAudioSource(MediaRecorder.AudioSource.MIC);音频取自麦克 recorder.setVideoSource(MediaReco... 阅读全文
posted @ 2014-04-16 11:03 东方小花猪 阅读(185) 评论(0) 推荐(0)
摘要:知识点:清单文件android:screenOrientation="landscape"手机平板横向 requestWindowFeature(Window.FE... 阅读全文
posted @ 2014-04-15 15:52 东方小花猪 阅读(246) 评论(0) 推荐(0)
摘要:音乐播放器使用Android自带SDK实现主要功能包括:播放、暂停、重播、停止、电话来时暂停通话结束后继续的功能MediaPlayer:用于播放多媒体文件方法:release()是否资源 isPlaying()是否正在播放 getCurrentPosition()获取播放位置,返回值为int型 reset()把各项参数恢复到初始状态 setDataSource(path)设置要播放的文件path路径 prepare()进行缓冲 start()开始播放 pause()暂停 seekTo(0)跳转到哪,0为从头开始播放 stop()停止播放事件:setOnPrep... 阅读全文
posted @ 2014-04-10 11:14 东方小花猪 阅读(349) 评论(0) 推荐(0)