我想调用录音机,这个在虚拟机上可以正常运行,为什么到真机上就不行了
Intent intent = new Intent(Intent.ACTION_GET_CONTENT);//
intent.setType("audio/amr");//intent.setType(ContentType.AUDIO_AMR);
intent.setClassName("com.android.soundrecorder","com.android.soundrecorder.SoundRecorder");
startActivityForResult(intent, 0);
Intent intent = new Intent(Intent.ACTION_GET_CONTENT);//
intent.setType("audio/amr");//intent.setType(ContentType.AUDIO_AMR);
intent.setClassName("com.android.soundrecorder","com.android.soundrecorder.SoundRecorder");
startActivityForResult(intent, 0);
解决方案 »
- 最近想做一个像facebook的侧边栏,但是刷新页面的功能无法实现
- 内存中的jpeg数据传输到jni中解码然后得到bitmap!!
- 学过JPCt的朋友,请帮个忙
- 疯狂QA拿着尺子量布局间距,怎么办?
- android一维码和二维码扫描
- 看不懂贪吃蛇中的tileview,求高手解释
- 怎么用TableLayout布局方法在Button中添加图标??
- android 实现prezi幻灯片效果 急!
- 在一个有返回值的方法里使用了子线程,如何返回子线程中的值,如下代码中,我在子线程获取到了address的值,但是这个方法的返回结果是空,该如何解决?
- 关于Android开发中install run is not supported on devices with api levels 20 or lower
- 有木有高手指导一下,android 怎样从一个界面返回,可不可以用返回控件呢~~
- android下载图片,如何之建立一次连接下载多幅图片,对HTTP协议要有了解。PS:人品好才是真的好,结帖率100%
public static final String AUDIO_AMR = "audio/amr";
和你写的一样