The issue I met is that my app could recorded the video ,but could
not play it.
     At first,I use the mediarecorder and mediaplayer in the one page.
And I want to use the same surface view to preview and play . But,I
lost because,I find that when the mediaplayer is playing , No picture
is showed in the surfaceview.
    And then,I want to give the path of the new recorded video to
another activity,but it also could not play. The log  shows that the
data thatanother received  is null( the uri is null).

   this is part code of my app:
     Intent intent=new Intent();
                                        File file = new File(url);//url is the 
recorded video's
path
                                        Uri uri=Uri.fromFile(file);
                                        
Log.i("dddddddddddd",uri.getPath().toString());//this log
could show the correct path
                                        intent.setData(uri);
                                        intent.setType("video/*");
                                        intent.setAction(Intent.ACTION_VIEW);
                                        startActivity(intent);
    I will be very appreciate ,if you could give me some suggestion.


 
Thanks
 
yjshi

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to