Question

I ported an android app to BB 10. Using android runtime,after repackaging to .BAR, app runs fine except GooglePlayServices: com.google.android.gms.Application crashes when I go to screens related to this. I checked the classes that I am using from this library are:

import com.google.android.gms.common.ConnectionResult;
import com.google.android.gms.common.GooglePlayServicesClient;
import com.google.android.gms.location.LocationClient;
import com.google.android.gms.location.LocationListener;
import com.google.android.gms.location.LocationRequest;
import com.google.android.gms.maps.CameraUpdateFactory;
import com.google.android.gms.maps.GoogleMap;
import com.google.android.gms.maps.LocationSource;
import com.google.android.gms.maps.MapFragment;
import com.google.android.gms.maps.model.LatLng;

and some implementations are GooglePlayServicesClient.ConnectionCallbacks, GooglePlayServicesClient.OnConnectionFailedListener. For google maps I have found the alternate solution for BB 10 in android runtime documentation. What is the alternate solution for this library classes??

Was it helpful?

Solution

OpenStreetMap is available as a replacement for Google Maps in GooglePlayServices. I was under the impression that this was automatic, but I'm not currently working on Android so I don't have any direct experience.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top