RongUtils

public class RongUtils

Constructors

Link copied to clipboard
public void RongUtils()

Properties

Link copied to clipboard
public static float density
Link copied to clipboard
public static int densityDpi
Link copied to clipboard
public static int dialogWidth
Link copied to clipboard
public static int navbarheight
Link copied to clipboard
public static float scaleDensity
Link copied to clipboard
public static int screenHeight
Link copied to clipboard
public static int screenMax
Link copied to clipboard
public static int screenMin
Link copied to clipboard
public static int screenWidth
Link copied to clipboard
public static int statusbarheight
Link copied to clipboard
public static float xdpi
Link copied to clipboard
public static float ydpi

Functions

Link copied to clipboard
public static boolean checkMicAvailable(Context context)
Link copied to clipboard
public static boolean checkSDKVersionAndTargetIsTIRAMISU(Context context)
Link copied to clipboard
public static boolean checkSDKVersionAndTargetIsUDC(Context context)
注意使用此判断要在 checkSDKVersionAndTargetIsTIRAMISU 判断之前
Link copied to clipboard
public static int dip2px(float dipValue)
Link copied to clipboard
public static void fixAndroid8ActivityCrash(Activity activity)
Link copied to clipboard
@Deprecated()
public static String getAppName(Context context)
获取应用程序名称
Link copied to clipboard
public static int getDialogWidth()
Link copied to clipboard
public static Drawable getDrawable(Context context, String resource)
Link copied to clipboard
public static void GetInfo(Context context)
Link copied to clipboard
public static int getNavBarHeight(Context context)
Link copied to clipboard
public static Bitmap getResizedBitmap(Context context, Uri uri, int widthLimit, int heightLimit)
Link copied to clipboard
public static int getSaveKeyBoardHeight(Context context, int orientation)
Link copied to clipboard
public static int getScreenHeight()
Link copied to clipboard
public static int getScreenWidth()
Link copied to clipboard
public static int getStatusBarHeight(Context context)
Link copied to clipboard
public static Uri getUriFromDrawableRes(Context context, int id)
Link copied to clipboard
public static int getVideoDuration(Context context, String videoPath)
获取视频文件的时长(时间戳)
Link copied to clipboard
public static void init(Context context)
Link copied to clipboard
public static boolean isDestroy(Activity activity)
Link copied to clipboard
public static boolean isLocationServiceEnabled(Context context)
检查是否开启定位服务 检查定位服务是否开启的方法在不同的系统版本上不一样
Link copied to clipboard
public static String md5(Object object)
md5加密
Link copied to clipboard
public static boolean phoneIsInUse(Context context)
是否正在通话中
Link copied to clipboard
public static int px2dip(float pxValue)
Link copied to clipboard
public static void saveKeyboardHeight(Context context, int orientation, int height)