Skip to content

Instantly share code, notes, and snippets.

View paulpv's full-sized avatar

Paul Peavyhouse paulpv

  • Seattle, WA, USA
View GitHub Profile
@paulpv
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 http://www.dancartoon.com/2012/01/14/fixing-proguard-warning-cant-write-resource-meta-infmanifest-mf/
<?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])".
Per http://www.dancartoon.com/2012/01/14/fixing-proguard-warning-cant-write-resource-meta-infmanifest-mf/
Target "-obfuscate" copied from ${sdk.dir}/tools/ant/build.xml v21.
-->
<target name="-obfuscate">
<if condition="${proguard.enabled}">
<then>
@paulpv
paulpv / AzureIoT.java
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
paulpv / Genymotion_Google_Play_Apps.md
Last active September 21, 2016 19:04
Installing Google Apps [PlayServices/Store/Gmail/etc] on Genymotion devices (the late 2016 way)
@paulpv
paulpv / MySpinner.kt
Created September 24, 2021 19:56
Android Spinner that adds `userTouched` detection
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