/*
    Try to get info from GPS
*/
package nz.gen.geek_central.GPSTest;

public class Main extends android.app.Activity
  {

    @Override
    public void onCreate
      (
        android.os.Bundle savedInstanceState
      )
      {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        final android.location.LocationManager Locator =
            (android.location.LocationManager)getSystemService(LOCATION_SERVICE);
        if (Locator != null)
          {
            for (String ProviderName : Locator.getProviders(false))
              {
                final android.location.LocationProvider ThisProvider =
                    Locator.getProvider(ProviderName);
                System.err.printf
                  (
                    "Provider %s: accuracy = %d, powerreq = %d, costs = %s\n",
                    ProviderName,
                    ThisProvider.getAccuracy(),
                    ThisProvider.getPowerRequirement(),
                    ThisProvider.hasMonetaryCost() ? "Y" : "N"
                  );
                System.err.printf
                  (
                    " req cell = %s, req net = %s, req sat = %s\n",
                    ThisProvider.requiresCell() ? "Y" : "N",
                    ThisProvider.requiresNetwork() ? "Y" : "N",
                    ThisProvider.requiresSatellite() ? "Y" : "N"
                  );
                System.err.printf
                  (
                    " does altitude = %s, does bearing = %s, does speed = %s\n",
                    ThisProvider.supportsAltitude(),
                    ThisProvider.supportsBearing(),
                    ThisProvider.supportsSpeed()
                  );
              } /*for*/
          }
        else
          {
            System.err.println("GPSTest: No location service found!");
          } /*if*/
      } /*onCreate*/

  } /*Main*/

@@ -1020,28 +1020,16 @@
 ryCost()
- ? %22Y%22 : %22N%22
 %0A       
@@ -1211,28 +1211,16 @@
 esCell()
- ? %22Y%22 : %22N%22
 ,%0A      
@@ -1263,28 +1263,16 @@
 etwork()
- ? %22Y%22 : %22N%22
 ,%0A      
@@ -1321,20 +1321,8 @@
 te()
- ? %22Y%22 : %22N%22
 %0A   

don't bother formatting booleans as Y/N