Hi, I try to use the android.provider.MediaStore.RECORD_SOUND intent and it work perfect, the problem that i have is whit the uri when the file is saved... the file is saved on /sdcard but i don't know the path or the uri of the file... I try to send a uri through the putExtra but it did not work
Intent i = new Intent("android.provider.MediaStore.RECORD_SOUND"); i.putExtra("output", Uri.parse("file:///sdcard/audio")); startActivityForResult(i, 0); @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { Log.d("tiferson", "Entro a onActivityResult...."); switch (requestCode) { case 0: if (resultCode == RESULT_OK) { Log.d("tiferson", "on the result ok..."); String s = data.getAction(); Log.d("tiferson", "despues del data.getExtras..."); if(s == null) { Log.d("tiferson", "don't return getAction"); } Bundle b = data.getExtras(); if(b == null) { Log.d("tiferson", "don't return getExtras"); } } And on the logcat i can see: "don't return getAction" and "don't return getExtras". can i know the path where the file is saved or send the path for it? thanks in advance --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---