Skip to content

Instantly share code, notes, and snippets.

View felHR85's full-sized avatar
🐓
Slow but steady wins the race

Felipe Herranz felHR85

🐓
Slow but steady wins the race
View GitHub Profile
@felHR85
felHR85 / gist:914b14be06f7235d188c82c061eb76fe
Created February 8, 2019 18:21
DroidTerm Pro privacy policy
Privacy Policy
Felipe Herranz built the DroidTerm Pro app as a Commercial app. This SERVICE is provided by Felipe Herranz and is intended for use as is.
This page is used to inform visitors regarding my policies with the collection, use, and disclosure of Personal Information if anyone decided to use my Service.
If you choose to use my Service, then you agree to the collection and use of information in relation to this policy. The Personal Information that I collect is used for providing and improving the Service. I will not use or share your information with anyone except as described in this Privacy Policy.
The terms used in this Privacy Policy have the same meanings as in our Terms and Conditions, which is accessible at DroidTerm Pro unless otherwise defined in this Privacy Policy.
Information Collection and Use
public class UnsignedUtil
{
private final static short MAX_UNSIGNED_BYTE_VALUE = 256;
private final static int MAX_UNSIGNED_SHORT_VALUE = 65536;
private final static long MAX_UNSIGNED_INT_VALUE = 4294967296L;
private UnsignedUtil()
{
}
@felHR85
felHR85 / UsbData.java
Last active August 13, 2018 06:31
An easy to use android solution to get a readable representation of Usb vid (vendor name) and pid (product name). Data is collected and stored in a local SQLite database from http://www.linux-usb.org/usb-ids.html
public class UsbData
{
private String vendorId;
private String vendorName;
private String productId;
private String productName;
public UsbData(String vendorId, String vendorName, String productId, String productName)
{
@felHR85
felHR85 / SoftKeyboard.java
Last active February 17, 2024 23:11
A solution to catch show/hide soft keyboard events in Android http://felhr85.net/2014/05/04/catch-soft-keyboard-showhidden-events-in-android/
/*
* Author: Felipe Herranz ([email protected])
* Contributors:Francesco Verheye ([email protected])
* Israel Dominguez ([email protected])
*/
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.atomic.AtomicBoolean;
import android.os.Handler;