Skip to content

Instantly share code, notes, and snippets.

Avatar

Paul Peavyhouse paulpv

  • Seattle, WA, USA
View GitHub Profile
@paulpv
paulpv / MySpinner.kt
Created Sep 24, 2021
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
paulpv / Genymotion_Google_Play_Apps.md
Last active Sep 21, 2016
Installing Google Apps [PlayServices/Store/Gmail/etc] on Genymotion devices (the late 2016 way)
View Genymotion_Google_Play_Apps.md
@paulpv
paulpv / AzureIoT.java
Created Feb 23, 2016
Azure iothub Java SDK on Android
View AzureIoT.java
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 / custom_rules.xml
Last active Dec 10, 2015
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/
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])".
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>