We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b950d1 commit 3bc8ef0Copy full SHA for 3bc8ef0
location_permissions/gps_example/gps_example.pde
@@ -31,7 +31,6 @@ String currentProvider = "";
31
// Android fonts
32
String[] fontList;
33
PFont androidFont;
34
-Context context;
35
36
boolean hasLocation = false;
37
@@ -68,7 +67,7 @@ void initLocation() {
68
67
//context = getActivity();
69
70
// For 4.0+ versions of the mode
71
- context = surface.getContext();
+ Context context = surface.getContext();
72
73
locationListener = new MyLocationListener();
74
locationManager = (LocationManager) context.getSystemService(Context.LOCATION_SERVICE);
0 commit comments