Skip to content

Instantly share code, notes, and snippets.

View rfermontero's full-sized avatar
:octocat:

Roberto Fernández rfermontero

:octocat:
View GitHub Profile
@albertomagana
albertomagana / gist:23d2135cc47a5a5667d9
Created February 10, 2016 01:49 — forked from archeg/gist:8333021
Example of code that uses HID for Android to connect to the device through USB.
package com.company.app.PlatformMethods;
import java.util.HashMap;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.Queue;
import java.util.Set;
import android.app.PendingIntent;
import android.content.BroadcastReceiver;
import com.google.android.*;
import com.anderwebs.Ander;
import com.warthon.Jake;
public class App extends AnderApp {
public void onCreate(Bundle bundle) {
Anderwebs.noHacks()
.runAtFps(60)
.noHexagonal()
@guohai
guohai / ArcTranslateAnimation.java
Created April 3, 2012 16:55
Curved Path Animation in Android
import android.graphics.PointF;
import android.view.animation.Animation;
import android.view.animation.Transformation;
// http://www.math.ubc.ca/~cass/gfx/bezier.html
public class ArcTranslateAnimation extends Animation {
private int mFromXType = ABSOLUTE;
private int mToXType = ABSOLUTE;