Q:

How to provide reasonable default bounds for Google Places API's getAutocompletePredictions() method?

I am using this method:
Places.GeoDataApi.getAutocompletePredictions(googleApiClient, query, bounds, AutocompleteFilter.create(null))

It requires a LatLntBounds object with a northeast and a southwest LatLng points as the bounds of the query, but I dont want to provide any.
Tried with null, but got a null pointer exception
Tried with:
LatLng southWest = new LatLng(85, -180);
LatLng northEast = new LatLng(-85, 180);
LatLngBounds bounds = new LatLngBounds(southWest, northEast);

but got IllegalArgumentException: southern latitude exceeds northern latitude (85.0 > -85.0)
So how do I:
a) get the current user location's reasonable bounds
b) get the world bounds
so that I can kickstart this API

A:

It requires the bounds to work. Just create them.
import com.google.maps.android.SphericalUtil;

final double HEADING_NORTH_EAST = 45;
final double HEADING_SOUTH_WEST = 215;
final double diagonalBoundsSize = 1000; // 1km

LatLng centre = new LatLng(85, -180);

LatLng northEast = SphericalUtil.computeOffset(centre, diagonalBoundsSize / 2, HEADING_NORTH_EAST);
LatLng southWest = SphericalUtil.computeOffset(centre, diagonalBoundsSize / 2, HEADING_SOUTH_WEST);
LatLngBounds bounds = new LatLngBounds(southWest, northEast);

