I have a req开发者_如何学Gouirement where I have to track GPS data. Which installed application is using GPS and when means Date and time.
You can use PackageManager to get a list of installed packages (by invoking a getInstalledPackages method) and then use permission
attribute on each PackageInfo element to determine thenever or not location permissions are set.
But this method can't give you information about when it was used, and was it used at all. IT can just give you an information is this app can use GPS
精彩评论