SHARE
TWEET

Untitled

a guest Nov 19th, 2019 78 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. case 914:
  2.                 final LocationManager manager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);
  3.                 if (!manager.isProviderEnabled(LocationManager.GPS_PROVIDER)) {
  4.  
  5.                     Toast toast = Toast.makeText(getApplicationContext(), "Wylaczony", Toast.LENGTH_LONG);
  6.                     toast.setGravity(Gravity.TOP | Gravity.START, 100, 200);
  7.                     toast.show();
  8.                 } else if (manager.isProviderEnabled(LocationManager.GPS_PROVIDER)) {
  9.                     Toast toast = Toast.makeText(getApplicationContext(), "Wlaczony", Toast.LENGTH_LONG);
  10.                     toast.setGravity(Gravity.TOP | Gravity.START, 100, 200);
  11.                     toast.show();
  12.                 } else {
  13.                     Toast toast = Toast.makeText(getApplicationContext(), "Gps nie ma", Toast.LENGTH_LONG);
  14.                     toast.setGravity(Gravity.TOP | Gravity.START, 100, 200);
  15.                     toast.show();
  16.                 }
  17.  
  18.                 break;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top