top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration
Print Preview

Resizing vedio in Android

0 votes

How can I resize the vedio say from 640 *480 resolution to 480 * 400 resolution.

posted Mar 18, 2013 by superuser

Share this question
Facebook Share Button Twitter Share Button Google+ Share Button LinkedIn Share Button Multiple Social Share Button

1 Answer

+1 vote

If it's with a MediaPlayer class so you can use a SurfaceView and a surfaceHolder to your video and change it... See this page, I used it at my application... There's a part where it says "Set a size for the video screen", there's the magic!

BTW you can set your video to start automatically with some changes at the code, worked great for me.

answer Mar 18, 2013 by Nora Jones
Similar Questions
+2 votes

Hi, I have built an application using android programming and I want to forward & sharing image from one application to other which was loaded from a remote url.

void onShareItem(View v) {

ImageView ivImage = (ImageView) findViewById(;

Uri bmpUri = getLocalBitmapUri(ivImage);
if (bmpUri != null) {

    Intent shareIntent = new Intent();
    shareIntent.putExtra(Intent.EXTRA_STREAM, bmpUri);

Useful Links with Similar Problem
Contact Us
+91 9880187415
#470/147, 3rd Floor, 5th Main,
HSR Layout Sector 7,
Bangalore - 560102,
Karnataka INDIA.