Hello, I have a question. 

In my app, I can see a video from Internet and I want a wait Progress 
dialog when the video is buffering.

Here is my code:

private void loadView(String cam) {
    progressDialog = ProgressDialog.show(WebCamVideo.this, "",
getString(R.string.loading), true, true, new OnCancelListener() {
        //Lors du retour lors du chargement, ferme l'activité.
  @Override
  public void onCancel(DialogInterface dialog) {
    WebCamVideo.this.finish();
  }
});
    Uri uri = Uri.parse(cam);
    videoView.setVideoURI(uri);
    videoView.requestFocus();
    progressDialog.setProgress(50);
    videoView.setOnPreparedListener(new OnPreparedListener() {
      public void onPrepared(MediaPlayer arg0) {
videoView.start();
progressDialog.dismiss();
      }
    });
  }


It work on an HTC One X, a Samsung Galaxy S2 with 4.0.3 and 2.3.

But in my Galaxy Nexus with 4.0.4 the onPrepared method is called before 
the end of buffering.

It is a bug or I need to do somthing different?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to