Android examples for android.content:Context
check For Permission
//package com.java2s; import android.content.Context; public class Main { public static boolean checkForPermission(String permission, Context context) {/* w w w . j ava 2 s . c om*/ return context.checkCallingOrSelfPermission(permission) == 0; } }