Hello from what I researched from android 7.1, it is necessary to request permission to run for user and it is necessary to use the ActivityCompat
class to do this, my application saves a PDF to disk and opens it, however I can not use this class ActivityCompat
compilation error occurs. I'm importing from v4 and using eclipse still, is that right? I already tried to import from import android.support.v7.*;
however this class does not appear in this package.
import android.support.v4.app.ActivityCompat;
ActivityCompat().requestPermissions(this, new {Manifest.permission.ACCESS_FINE_LOCATION}, 0);