Adding looping within VideoView
Adding looping within VideoView I'm having a bit of trouble with a small application I've put together in Android Studio. Essentially the application is suppose to launch - autoplay a video and keep looping until touched... I've got everything bar the looping working - I've tried a few suggestions from here but none have worked in my case (or not had the coding skills to get them to...) Main code below package com.pixel.danny.screensaverhfx; import android.app.Activity; import android.net.Uri; import android.os.Bundle; import android.view.View; import android.widget.VideoView; public class MainActivity extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); VideoView videoView = findViewById(R.id.videoView); Uri uri=Uri.parse("android.resource://"+getPackageName()+"/"+R.raw.hab); vid...
