Error on Http Video Streaming: Prepare Fail

by fortold » Mon, 13 Apr 2009 12:13:33 GMT

Sponsored Links
 Did anyone try API demos on the SDK?

I have a problem with playing http stream video on the emulator. I use
the MediaPlayerDemo_Video class in "android-sdk-windows-1.1_r1\samples

I change the path to some but all I get is 
Prepare failed: status=0xffffffff which does not mean anyhing for me.

Since I am just using the example provided by the SDK itself, I count
the code as a correct one.

But 2 questions:

1- Does the emulator can play video?
2- If it does which extensions and are there any other restrictions

Any comment or suggestion appreciated.

Thanks in advance,


Other Threads

1. Gallery not Recycling Views

I am using the Hello Gallery code as an example. Views are not being
recycled as I scroll left and right.

I added log output at the getView method, and I get a constant output
of null. Anyone know the reason why?

Here is the code:

public class HelloGallery extends Activity {

        public void onCreate(Bundle savedInstanceState) {

            Gallery g = new Gallery(this);
            g.setAdapter(new ImageAdapter(this));


        public class ImageAdapter extends BaseAdapter {
            int mGalleryItemBackground;
            private Context mContext;

            private Integer[] mImageIds = {

            public ImageAdapter(Context c) {
                mContext = c;


            public int getCount() {
                return mImageIds.length;

            public Object getItem(int position) {
                return position;

            public long getItemId(int position) {
                return position;

            public View getView(int position, View convertView, ViewGroup
parent) {
                System.out.println(convertView); //should occasionally not be
                ImageView i = new ImageView(mContext);

                i.setLayoutParams(new Gallery.LayoutParams(150, 100));

                return i;




2. Example "Tab Layout" wont work in ""

Hi Guys!!

I'm new in android and also in java. This is my second day in work
learning android and java. Yesterday i successfully installed android
using eclipse. I tried the sample "Tab Layout" posted in "http://".
I had done exactly what is written for me to do. I was able it to run
in my eclipse but when my emulator loads it pops an error saying
"application sample tab has stopped unexpectedly. Please try again".
Ive tried debugging it using the eclipse de{*filter*}, it shows an error
which i don't understand, showing a tree explorer of its errors. Hope
i could attached the screen shots of the errors.

If someone of you guys has a sample of table layout, can you please
send it to my email address.


"don't worry about a thing, coz every little thing i gonna be alright"
- bob marley


3. Possible to have private authtoken stored for Account which has been created via AccountManager?

4. Browser is not working in Eclaire android

5. Notepad Tutorial, Error just after imported the project

6. AGPS APIs in Android 2.1

7. How to get the history cache of android default browser