Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7518857
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T01:48:36+00:00 2026-05-30T01:48:36+00:00

I have this code : @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); String

  • 0

I have this code :

@Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        String url = "http://people.sc.fsu.edu/~jburkardt/data/mp4/cavity_flow_movie.mp4"; 
        videoPlayer(url);
    }

    public void videoPlayer(String url){
        getWindow().setFormat(PixelFormat.TRANSLUCENT);
        VideoView  videoHolder = (VideoView) findViewById(R.id.videoView1);
        videoHolder.setMediaController(new MediaController(this));
        videoHolder.setVideoPath(url);
        videoHolder.requestFocus();
        videoHolder.start();  
     }

If’s work fine but, if the url is http://www.tuoregalo.com/video2.avi it not work….why ? The error message is “Impossibile to visual the video”

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T01:48:37+00:00Added an answer on May 30, 2026 at 1:48 am

    I have also faced this problem it works when the file on the url is of mp4 type
    but as you try one avi file it doesent work because all off android phones including simulator dosent support avi format nativily avi format works fine with iPhone but not with android your code is absolutly fine.

    you can play avi in android by converting it to android
    please check this http://www.snowfoxsoft.com/tutorial/how-to-convert-avi-to-android-phone.html

    see some limitations

    Since its introduction in the early 90s, new computer video techniques have been introduced which the original AVI specification did not anticipate:

    AVI does not provide a standardized way to encode aspect ratio information, with the result that players cannot select the right one automatically (though it may be possible to do so manually).[2]
    There are several competing approaches to including a time code in AVI files, which affects usability of the format in film and television post-production, although it is widely used. For WAV audio files, Broadcast Wave extensions were designed to standardize post-production metadata, but an equivalent for AVI files has not emerged.
    AVI is not intended to contain variable frame rate material. Workarounds for this limitation increase overhead dramatically.
    AVI was not intended to contain video using any compression technique which requires access to future video frame data beyond the current frame. Approaches exist to support modern video compression techniques (such as MPEG-4) which rely on this function, although this is beyond the intent of the original specification and may cause problems with playback software which does not anticipate this use.
    AVI cannot contain some specific types of variable bitrate (VBR) data reliably (such as MP3 audio at sample rates below 32 kHz).
    Overhead for AVI files at the resolutions and frame rates normally used to encode standard definition feature films is about 5 MB per hour of video, the significance of which varies with the application.
    More recent container formats (such as Matroska, Ogg and MP4) solve all these problems, although software is freely available to both create and correctly replay AVI files which use these more recent techniques.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this code: public class Home extends Activity{ @Override public void onCreate(Bundle savedInstanceState)
I have this code #include <iostream> using namespace std; int main(int argc,char **argv) {
i have this code package com.tct.soundTouch; import android.app.Activity; import android.media.MediaPlayer; import android.os.Bundle; import android.view.MotionEvent;
I have this code: public class VoiceActivity extends Activity implements OnClickListener { private TextView
I have this code: public class Chronom extends Activity { Chronometer mChronometer; ProgressBar progre;
I have this code that's supposed to unzipp a file. public class dec extends
I have this code: package com.problemio; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View;
I'm a beginner in Android. Here I have this code: public class GPS extends
So I have this code in my main activity to start a new one:
I have this code in jQuery, that I want to reimplement with the prototype

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.