
210 Building Smarter Planet Solutions with MQTT and IBM WebSphere MQ Telemetry
}
public void onStatusChanged(String provider, int status, Bundle extras) {}
public void onProviderEnabled(String provider) {}
public void onProviderDisabled(String provider) {}
};
// Register the listener with the location manager.
locationManager.requestLocationUpdates(LocationManager.NETWORKPROVIDER, 0, 0,
locationListener);
}
For the remainder of this sample, download the sample project and refer to it. After importing
the project, you can run this sample either on an emulator or your Android phone. Activate the
GPS on your phone before starting the sample. Then, you ...