Skip to content

Instantly share code, notes, and snippets.

Avatar

Pankaj Sharma pankaj89

View GitHub Profile
@pankaj89
pankaj89 / AndroidUtilities.java
Last active Dec 10, 2018
Exoplayer - Simple ExoPlayerHelper
View AndroidUtilities.java
package com.master.exoplayersample;
import android.content.Context;
public class AndroidUtilities {
public static float density = 1;
public static void init(Context context) {
density = context.getResources().getDisplayMetrics().density;
}