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
09-23 15:01:54.170 14230-14230/com.android.flavortest E/AndroidRuntime﹕ FATAL EXCEPTION: main | |
Process: com.android.flavortest, PID: 14230 | |
java.lang.NullPointerException | |
at android.view.SurfaceView.updateWindow(SurfaceView.java:603) | |
at android.view.SurfaceView.access$000(SurfaceView.java:86) | |
at android.view.SurfaceView$3.onPreDraw(SurfaceView.java:175) | |
at android.view.ViewTreeObserver.dispatchOnPreDraw(ViewTreeObserver.java:847) | |
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1867) | |
at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:996) | |
at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5600) |
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
var drawSky = function() { | |
background (156, 215, 255); | |
noStroke(); | |
}; | |
var drawGrass = function() { | |
fill(52, 128, 14); | |
rect(0, 300, 400, 100); | |
}; |
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
private void scanMedia(File file) { | |
Uri uri = Uri.fromFile(file); | |
Intent scanFileIntent = new Intent(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE, uri); | |
sendBroadcast(scanFileIntent); | |
} |