Skip to content

Instantly share code, notes, and snippets.

View yusuf-murodov's full-sized avatar
🎯
Focusing

yusuf-murodov

🎯
Focusing
View GitHub Profile
@yusuf-murodov
yusuf-murodov / MainActivity.java
Created January 5, 2021 08:03 — forked from zeero0/MainActivity.java
Check and Request multiple permissions easily on Android 6.0 (API level 23) and above
package com.zeeroapps.easy_permissions;
import android.Manifest;
import android.os.Build;
import android.support.annotation.NonNull;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Toast;
@yusuf-murodov
yusuf-murodov / PermissionUtils.java
Created December 29, 2020 09:46 — forked from mtsahakis/PermissionUtils.java
Android Permission Utility class. A collection of static convenience methods for checking if Android Runtime permissions are required.
import android.app.Activity;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.net.Uri;
import android.os.Build;
import android.preference.PreferenceManager;
import android.provider.Settings;
import android.support.v4.app.Fragment;
import java.util.List;