Skip to content

Instantly share code, notes, and snippets.


Paul Peavyhouse paulpv

  • Seattle, WA, USA
View GitHub Profile
paulpv / MySpinner.kt
Created September 24, 2021 19:56
Android Spinner that adds `userTouched` detection
View MySpinner.kt
package com.prometheanworld.audiotest
import android.annotation.SuppressLint
import android.content.Context
import android.content.res.Resources
import android.util.AttributeSet
import android.view.MotionEvent
import android.view.View
import android.view.View.OnTouchListener
import android.widget.AdapterView
paulpv /
Last active September 21, 2016 19:04
Installing Google Apps [PlayServices/Store/Gmail/etc] on Genymotion devices (the late 2016 way)
paulpv /
Created February 23, 2016 09:58
Azure iothub Java SDK on Android
public class AzureIoT
private static final String sServiceHostName = "...";
private static final String sServiceSharedAccessKey = "...";
private final Activity mActivity;
private final ExecutorService mExecutorService;
public AzureIoT(Activity activity)
paulpv / custom_rules.xml
Last active December 10, 2015 13:08
Fixing ProGuard "Warning: can't write resource [META-INF/MANIFEST.MF]" Updated version of
View custom_rules.xml
<?xml version="1.0" encoding="UTF-8"?>
<project name="custom_rules">
Suppress "Warning: can't write resource [META-INF/MANIFEST.MF] (Duplicate zip entry [classes.jar:META-INF/MANIFEST.MF])".
Target "-obfuscate" copied from ${sdk.dir}/tools/ant/build.xml v21.
<target name="-obfuscate">
<if condition="${proguard.enabled}">