I am using the following code to display a video file in the android emulator,it works fine when the video file is stored in a SDcard.But when i give any URL of a video the
You should also use the prepareAsync() method instead of prepare(). Using prepare() is a blocking call (UI gets locked), while prepareAsync is not a blocking call.