Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am econnelly on github.
  • I am econnelly (https://keybase.io/econnelly) on keybase.
  • I have a public key ASAJv2HWG8VsDCsSW3SV2o-osiwgndetIMc9QXBMQDRmTwo

To claim this, I am signing this object:

@econnelly
econnelly / FullFileCache.java
Created October 1, 2014 04:11
Pulling some data from a Volley cache can cause out of memory problems on a lot of devices. This is because at some point along the way the data gets stored as a byte array in memory. This cache (terribly) attempts to create cache entries that link to files on disk. Instead of a huge chunk of data being stored in memory, you get a file size and …
/*
* Copyright (C) 2011 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@econnelly
econnelly / AmazonBanner.java
Last active March 4, 2016 06:07
MoPub Amazon adapter
package com.mopub.mobileads;
import android.app.Activity;
import android.content.Context;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageManager;
import android.util.DisplayMetrics;
import android.util.Log;
import android.util.TypedValue;
@econnelly
econnelly / PanelLayout.java
Last active February 24, 2021 19:22
This is a modified version of the DraggablePanelLayout from https://github.com/TheHiddenDuck/draggable-panel-layout
package com.eliconnelly.android.widget;
import android.content.Context;
import android.content.res.TypedArray;
import android.os.Parcel;
import android.os.Parcelable;
import android.support.v4.view.ViewCompat;
import android.util.AttributeSet;
import android.util.Log;
import android.view.MotionEvent;