List of usage examples for android.support.v4.app ActivityCompat.OnRequestPermissionsResultCallback interface-usage
From source file polytech.carcassonnetour.MapsActivity.java
public class MapsActivity extends AppCompatActivity implements OnMyLocationButtonClickListener, OnMapReadyCallback, ActivityCompat.OnRequestPermissionsResultCallback, LocationListener, GoogleMap.OnMarkerClickListener { private static final String URL_ALL_HOTSPOTS = "http://cvisit.gauchoux.com/media/com_carcassonne/ajax/getAllPoints.php"; private static final int LOCATION_PERMISSION_REQUEST_CODE = 1; private static final int ZOOM = 17;
From source file hmatalonga.greenhub.ui.MainActivity.java
public class MainActivity extends BaseActivity implements Toolbar.OnMenuItemClickListener, ActivityCompat.OnRequestPermissionsResultCallback { private static final String TAG = makeLogTag(MainActivity.class); private GreenHubApp mApp;
From source file com.shimi.camera.must.stand.straight.MainActivity.java
/** * This demo app saves the taken picture to a constant file. * $ adb pull /sdcard/Android/data/com.google.android.cameraview.demo/files/Pictures/picture.jpg */ public class MainActivity extends AppCompatActivity implements SensorEventListener, ActivityCompat.OnRequestPermissionsResultCallback, AspectRatioFragment.Listener {
From source file httbdd.cse.nghiatran.halofind.fragment.MainFragment.java
public class MainFragment extends BaseFragment implements MapboxMap.OnMyLocationChangeListener, OnMapReadyCallback, com.mapbox.mapboxsdk.location.LocationListener, ActivityCompat.OnRequestPermissionsResultCallback { public LocationManager locationManager; private MapView mapView; protected String mLastUpdateTime; public MapboxMap mapboxMap;
From source file com.app.cat.ui.PhoneBookActivity.java
/** * The Main Activity represents the main user interface. * * @author Andreas Sekulski, Dimitri Kotlovsky */ public class PhoneBookActivity extends AppCompatActivity
From source file com.amaze.filemanager.activities.Preferences.java
public class Preferences extends AppCompatActivity implements ActivityCompat.OnRequestPermissionsResultCallback { int theme, skinStatusBar; String skin, fabSkin; int select = 0; public int changed = 0;
From source file com.example.android.wearable.runtimepermissions.MainWearActivity.java
/**
* Displays data that requires runtime permissions both locally (BODY_SENSORS) and remotely on
* the phone (READ_EXTERNAL_STORAGE).
*
* The class is also launched by IncomingRequestWearService when the permission for the data the
* phone is trying to access hasn't been granted (wear's sensors). If granted in that scenario,
From source file com.example.android.wearable.speedtracker.WearableMainActivity.java
/**
* The main activity for the wearable app. User can pick a speed limit, and after this activity
* obtains a fix on the GPS, it starts reporting the speed. In addition to showing the current
* speed, if user's speed gets close to the selected speed limit, the color of speed turns yellow
* and if the user exceeds the speed limit, it will turn red. In order to show the user that GPS
* location data is coming in, a small green dot keeps on blinking while GPS data is available.
From source file io.kristal.locationplugin.LocationPlugin.java
public final class LocationPlugin extends CobaltAbstractPlugin implements LocationListener, ActivityCompat.OnRequestPermissionsResultCallback { // TAG private static final String TAG = LocationPlugin.class.getSimpleName();
From source file com.example.mapdemo.MyLocationDemoActivity.java
/**
* This demo shows how GMS Location can be used to check for changes to the users location. The
* "My Location" button uses GMS Location to set the blue dot representing the users location.
* Permission for {@link android.Manifest.permission#ACCESS_FINE_LOCATION} is requested at run
* time. If the permission has not been granted, the Activity is finished with an error message.
*/