This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// activity code goes here | |
// ... | |
/* | |
* To avoid the normally required permission ACCESS_EXTERNAL_STORAGE the osmdroid library | |
* offers a way to change the base path and the caching path to any other directory. | |
* We change these directories before initializing our MapView object, so osmdroid | |
* will NOT need the permission called above. | |
* | |
* Note that directories are also objects of type File in Java! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// package ... ; | |
// import ... ; | |
/* | |
* Since Android M has been introduced, apps have the possibility to request critical | |
* permissions at runtime - the Android Support Library provides several | |
* methods to achieve this. | |
* This gist is a simple example activitiy to show how to request the critical | |
* location permission from a simple android app at runtime. | |
*/ |
NewerOlder