File tree Expand file tree Collapse file tree 1 file changed +0
-17
lines changed
location_permissions/gps_example Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Original file line number Diff line number Diff line change @@ -37,9 +37,7 @@ boolean hasLocation = false;
3737
3838void setup () {
3939 size (480 , 640 , P2D );
40- // Sketch stays in portrait mode, even when the phone is rotated
4140 orientation(PORTRAIT );
42- // Select a font to use
4341 fontList = PFont . list();
4442 androidFont = createFont (fontList[0 ], 26 , true );
4543 textFont (androidFont);
@@ -58,25 +56,10 @@ void draw() {
5856 }
5957}
6058
61-
6259void onPermissionsGranted () {
6360 initLocation();
6461}
6562
66- /*
67- // Override the activity class methods
68- void onResume() {
69- super.onResume();
70- }
71-
72- void onPause() {
73- super.onPause();
74- //locationManager.removeGpsStatusListener(locationListener);
75- }
76- */
77-
78- /** ***************************************************************/
79-
8063void initLocation () {
8164 if (checkPermission(Manifest . permission. ACCESS_FINE_LOCATION ) ||
8265 checkPermission(Manifest . permission. ACCESS_COARSE_LOCATION )) {
You can’t perform that action at this time.
0 commit comments