Media Package in android source

by Anandi » Sat, 27 Mar 2010 04:55:38 GMT


Sponsored Links
 Hello all,

I am trying to find out the location of Media Package in android
source. I am curious about it, because this package is accessible
anywhere(I can import it in any application in any workspace).

I am also looking for the option in "make file" which makes the build
system to generate this package globally accessible.

I have observed one thing that the classes which are there in the
"preloaded classes" list are globally accessible. Does it related
anyway to this fact?

So, Please can anyone help me in solving these queries ?

Thanks in advance
Anu

--



Other Threads

1. How to place an ImageView to a specific location on the screen ?

Hi,

 

Does anybody know how to place an ImageView object to a specific location on 
the screen or a tutorial/website etc. that may help me to figure it out myself ?

 

Let's say I have an image to be placed exactly at a certain location (when x 
and y coordinates are provided) on the screen.

 

Thanks in advance for your help.

 

Cheers,

 

Emre

 


_________________________________________________________________
Stay in the loop and chat with friends, right from your inbox!
http://go.microsoft.com/?linkid=9671354
--~--~---------~--~----~------------~-------~--~----~

2. Video with MediaRecorder

Hi,

Does anyone know how to use the MediaRecorder to API to capture video?

I am writing an application where I want to be able to capture video. I am
trying to use the MediaRecorder API in 1.5, which is supposed to support
video capture. However, there are no examples in the documentation on how to
use this API for video (only for audio, and that works perfect). Basically
what I do is the following:

final MediaRecorder recorder = new MediaRecorder();
final String filePath;

....

recorder.setAudioSource(MediaRecorder.AudioSource.MIC);
recorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
recorder.setVideoSource(MediaRecorder.VideoSource.CAMERA);
recorder.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4);
recorder.setVideoEncoder(MediaRecorder.VideoEncoder.MPEG_4_SP);
recorder.setOutputFile(filePath);
recorder.prepare();
recorder.start();

This gives me the following error:
E/CameraInput(   37): No surface is available for display
E/MediaRecorder( 7609): prepare failed: -2147483648

OK, so I have to have a surface to preview the video? Could be useful I
guess, but not something I really need.

Could I use the VideoView widget for this, or is that only for playback?

Or am I supposed to use a SurfaceView to preview the video? I saw someone
use that to capture images, but they used android.hardware.Camera to open
the camera and capture a frame, and did not use MediaRecorder.

Does anyone have any idea on how to capture video, or even better have some
example code?

Thanks,
Anders

--~--~---------~--~----~------------~-------~--~----~

3. Android SDK 2.0?

4. Setting background for CheckBox causes a problem

5. Why can't I use Parcel in aidl?

6. Redrawing part of a custom ListView

7. How to support multiple language key character mapping