Skip to content
This repository was archived by the owner on Jun 24, 2024. It is now read-only.

Commit e0a819f

Browse files
committed
add comments
1 parent 4aeef0d commit e0a819f

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

Diff for: location_permissions/gps_example/gps_example.pde

+7-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,13 @@ void onPause() {
8080
void initLocation() {
8181
if (checkPermission(Manifest.permission.ACCESS_FINE_LOCATION) ||
8282
checkPermission(Manifest.permission.ACCESS_COARSE_LOCATION)) {
83-
context = surface.getActivity();
83+
84+
// For 3.x versions of the mode
85+
//context = getActivity();
86+
87+
// For 4.0+ versions of the mode
88+
context = surface.getContext();
89+
8490
locationListener = new MyLocationListener();
8591
locationManager = (LocationManager) context.getSystemService(Context.LOCATION_SERVICE);
8692

Diff for: wallpapers/ex2_compass/code/sketch.properties

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
component=wallpaper

0 commit comments

Comments
 (0)