1

I am creating an Android Studio Library file (*.aar) for geo-location services which i use across multiple apps.

During the init phase of the Lib, I get the current location as below :-

location = lm.getLastKnownLocation(LocationManager.GPS_PROVIDER);

This line is giving exceptions even if I am requesting correct permissions in the main APP and declaring in APP Manifest

How do i handle the checkPermission in library(.aar) code ?

Serg
  • 22,285
  • 5
  • 21
  • 48

0 Answers0