Skip to content

Instantly share code, notes, and snippets.

01-28 14:05:55.638 15741-15741/net.mobindustry.shopaholic E/AndroidRuntime﹕ FATAL EXCEPTION: main
Process: net.mobindustry.shopaholic, PID: 15741
java.lang.RuntimeException: Canvas: trying to use a recycled bitmap android.graphics.Bitmap@1f794ae9
at android.graphics.Canvas.throwIfCannotDraw(Canvas.java:1225)
at android.view.GLES20Canvas.drawBitmap(GLES20Canvas.java:600)
at android.graphics.drawable.BitmapDrawable.draw(BitmapDrawable.java:537)
at android.widget.ImageView.onDraw(ImageView.java:1166)
at android.view.View.draw(View.java:15114)
at android.view.View.updateDisplayListIfDirty(View.java:14048)
at android.view.View.getDisplayList(View.java:14071)
private boolean checkBuildType() {
boolean isDebugBuild = false;
try {
Signature[] signatures = getPackageManager()
.getPackageInfo(getPackageName(), PackageManager.GET_SIGNATURES).signatures;
CertificateFactory cf = CertificateFactory.getInstance("X.509");
X500Principal debugSertificateSubject = new X500Principal(DEBUG_CERTIFICATE_SUBJECT_NAME);
for (Signature signature : signatures) {
@Den-Rimus
Den-Rimus / Blender.java
Created November 21, 2014 09:10
Blender modes for android
package com.example.blendmodes;
import android.graphics.Bitmap;
import android.util.Log;
public class Blender {
private static final String TAG = Blender.class.getSimpleName();
public static Bitmap performBlending(Bitmap source, Bitmap destination, int mode) {
@Den-Rimus
Den-Rimus / gist:1e36c030ef8f2bfacd4c
Created September 23, 2014 14:25
hackintosh install log
Sep 23 06:26:33 localhost opendirectoryd[101]: opendirectoryd (build 339.1.4) launched - installer mode
Sep 23 06:26:33 localhost opendirectoryd[101]: Logging level limit changed to 'notice'
Sep 23 06:26:34 localhost opendirectoryd[101]: Initialize trigger support
Sep 23 06:26:34 localhost opendirectoryd[101]: created endpoint for mach service 'com.apple.private.opendirectoryd.rpc'
Sep 23 06:26:34 localhost opendirectoryd[101]: set default handler for RPC 'reset_cache'
Sep 23 06:26:34 localhost opendirectoryd[101]: set default handler for RPC 'reset_statistics'
Sep 23 06:26:34 localhost opendirectoryd[101]: set default handler for RPC 'show'
Sep 23 06:26:34 localhost opendirectoryd[101]: starting endpoint for service 'com.apple.private.opendirectoryd.rpc'
Sep 23 06:26:34 localhost opendirectoryd[101]: no dynamic data found at '/System/Library/OpenDirectory/DynamicData/Configure.plist'
Sep 23 06:26:34 localhost opendirectoryd[101]: Registered node with name '/Configure' as hidden