1. Android Central Question's Avatar
    package com.zeel.zee;

    import android.content.Context;
    import android.media.MediaPlayer;

    import android.media.session.MediaSession;
    import android.net.Uri;
    import android.support.v7.app.AppCompatActivity;
    import android.os.Bundle;
    import android.view.SurfaceView;
    import android.view.View;
    import android.widget.Button;
    import android.widget.ImageView;
    import android.widget.VideoView;
    import android.widget.ViewFlipper;
    import android.widget.MediaController;

    public class did extends AppCompatActivity {

    ViewFlipper v_flipper1;
    @ override
    protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_did);

    VideoView videoView = (VideoView)findViewById(R.id.videoView);
    android.widget.MediaController mediaController = new android.widget.MediaController(this);
    mediaController.setAnchorView(videoView);
    Uri uri = Uri.parse("rtsp://r5---sn-npoe7nes.googlevideo.com/Cj0LENy73wIaNAltcAyvi-QbchMYDSANFC1vKkdbMOCoAUIASARgwPTz6qWTqJpbigELRlhBLTdxcjhzVlEM/2024081E055C7CF434A7DAA8482A4B891172AAA5.7A79E1365833C3FA71BAC08EFDBC89E2DFF7B1AC/yt6/1/video.3gp");
    videoView.setMediaController(mediaController);
    videoView.setVideoURI(uri);
    videoView.requestFocus();
    videoView.start();

    int dids[] = {R.drawable.did1,R.drawable.did2,R.drawable.did3,R.drawable.did4,R.drawable.did5};
    v_flipper1= findViewById(R.id.v_flipper1);

    for (int image: dids){
    flipperImages(image);
    }

    }

    public void flipperImages(int image){
    ImageView imageView=new ImageView(this);

    imageView.setBackgroundResource(image);

    v_flipper1.addView(imageView);
    v_flipper1.setFlipInterval(1500);
    v_flipper1.setAutoStart(true);

    v_flipper1.setInAnimation(this,android.R.anim.slide_in_left);
    v_flipper1.setInAnimation(this,android.R.anim.slide_out_right);
    }
    }
    07-12-2018 07:29 AM
  2. B. Diddy's Avatar
    I moved this to the Software Development forum for more specific traffic.
    07-12-2018 01:22 PM

Similar Threads

  1. What is this icon?
    By Android Central Question in forum Ask a Question
    Replies: 3
    Last Post: 07-12-2018, 07:40 AM
  2. my village name kahwara but google accu weather show Kaiwara plz correct this
    By Android Central Question in forum Ask a Question
    Replies: 2
    Last Post: 07-12-2018, 07:31 AM
  3. Android Update broke my phone Jul 11 2018
    By Android Central Question in forum LG G4
    Replies: 1
    Last Post: 07-12-2018, 06:50 AM
  4. Android Update broke my phone Jul 11 2018
    By Android Central Question in forum Ask a Question
    Replies: 1
    Last Post: 07-12-2018, 06:50 AM
LINK TO POST COPIED TO CLIPBOARD