How to create JOOX Login Screen in Android

Jack Tiong · 19K views · 2017 · 9:17

Open on YouTube

Software (other)UX & UI designtutorialdated

Why Stack Overflow recommends it

Stack Overflow users link it when asking or answering how to play a looping video as the background of an Android activity.

Recommended by 1 people across 1 different months, 2017 to 2018.

What it is

A short Android tutorial by Jack Tiong showing how to build a login screen modelled on the JOOX music app. Its main trick is playing a video file as the full-screen background using a VideoView.

What people said

Recommends Jack Tiong · 2017-01 · Stack Overflow · on “Set a video as background”

You just need a few steps to set the video as the background of your app. Create a video view and make sure it takes up the whole area. If you are using constraint layout, you need to set all the constraints of your video view to parent. Create a new directory called "raw" under your "res" directory Place your video file into the "raw" directory Play the video VideoView videoview = (VideoView) findViewById(R.id.videoview); Uri uri = Uri.parse("android.resource://"+getPackageName()+"/"+R.raw.test); videoview.setVideoURI(uri); videoview.start(); I have made a video that explains how to create JOOX login screen in android which looks more or less like the Spotify app. Feel free to check it out

Cites Trinity · 2017-06 · Stack Overflow · on “How to play .mp4 video as a background video in Android?”

I have watched many tutorials but somethings wrong. I have simple mainactivity and there is a VideoView on the it's layout. I downloaded a video from youtube as a .mp4 file size is about 10 mb. I found a great sample about videoview on youtube as the following link. [this video] ublic class MainActivity extends AppCompatActivity { private VideoView bgVideo; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); bgVideo=(VideoView) findViewById(R.id.bg_videoview); Uri uri = Uri.parse("android.resource://"+getPackageName()+"/"+R.raw.bgvideo); bgVideo.setVideoURI(uri); bgVideo.start(); bgVideo.setOnPreparedListener(n

Cites Lester · 2018-06 · Stack Overflow · on “VideoView is not working and black screen”

I want to make a video view running at my started_activity background. But it fails to load. The screen is black and if I navigate or push my page to another page 2 times, it will show app is not responding alert. I follow this video tutorial: [this video] started_activity.xml <?xml version="1.0" encoding="utf-8"?> <android.support.design.widget.CoordinatorLayout xmlns:android=" [LINK] " xmlns:app=" [LINK] " xmlns:tools=" [LINK] " android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".StartedActivity"> <RelativeLayout android:layout_width="fill_parent" android:layout_height="fill_parent"> <VideoView android:id="@+id/videoView" android:layout_width="fill_parent" a