Skip to content

Instantly share code, notes, and snippets.

@Danyaga
Danyaga / DectectDoubleTappAndTripleTap.java
Created October 2, 2017 09:17
Dect double tap and triple tap a view in Android
// http://stackoverflow.com/questions/27757099/android-detect-doubletap-and-tripletap-on-view
view.setOnTouchListener(new View.OnTouchListener() {
Handler handler = new Handler();
int numberOfTaps = 0;
long lastTapTimeMs = 0;
long touchDownMs = 0;
@Override
@Danyaga
Danyaga / DeCryptor.java
Created April 9, 2019 09:39 — forked from JosiasSena/DeCryptor.java
Encryptor and Decryptor for data encryption.decryption using the Android KeyStore.
/**
_____ _____ _
| __ \ / ____| | |
| | | | ___| | _ __ _ _ _ __ | |_ ___ _ __
| | | |/ _ \ | | '__| | | | '_ \| __/ _ \| '__|
| |__| | __/ |____| | | |_| | |_) | || (_) | |
|_____/ \___|\_____|_| \__, | .__/ \__\___/|_|
__/ | |
|___/|_|
*/
import android.content.Context;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;
import android.security.KeyPairGeneratorSpec;
import android.text.TextUtils;
import android.util.Base64;
import android.util.Log;
import java.io.ByteArrayInputStream;
override fun onStart() {
super.onStart()
this.goldenEye?.availableCameras
?.find { it.facing == Facing.BACK }
?.run {
this@Activity.goldenEye?.open(
2019-10-15 16:25:36.034 19093-19093/? I/BranchSDK: ReferrerClientWrapper Exception: Failed resolution of: Lcom/and
2019-10-15 16:25:36.363 19093-19093/? I/BranchSDK: Strong match request https://app.link/_strong_match?os=Android&
2019-10-15 16:25:36.558 19093-19135/? I/BranchSDK: posting to https://api2.branch.io/v1/install
2019-10-15 16:25:36.558 19093-19135/? I/BranchSDK: Post value = {"hardware_id":"b783b1e888364c88","is_hardware_id_
2019-10-15 16:25:36.810 19093-19135/? I/BranchSDK: returned {"session_id":"712674787462083568","identity_id":"7126
2019-10-15 16:40:34.774 25149-25149/? I/BranchSDK: ReferrerClientWrapper Exception: Failed resolution of: Lcom/android/installreferrer/api/InstallReferrerClient;
2019-10-15 16:40:35.203 25149-25149/? I/BranchSDK: Strong match request https://app.link/_strong_match?os=Android&hard
2019-10-15 16:40:35.600 25149-25197/? I/BranchSDK: posting to https://api2.branch.io/v1/install
2019-10-15 16:40:35.600 25149-25197/? I/BranchSDK: Post value = {"hardware_id":"b783b1e888364c88","is_hardware_id_real
2019-10-15 16:40:39.455 25149-25197/? I/BranchSDK: returned {"session_id":"712678571969636206","identity_id":"71267857
2019-10-15 16:59:54.214 32140-32140/? I/BranchSDK: onReferrerClientFinished()
2019-10-15 16:59:54.536 32140-32140/? I/BranchSDK: Strong match request https://app.link/_strong_match?os=Android&hardware_i
2019-10-15 16:59:54.771 32140-32171/? I/BranchSDK: posting to https://api2.branch.io/v1/install
2019-10-15 16:59:54.771 32140-32171/? I/BranchSDK: Post value = {"hardware_id":"b783b1e888364c88","is_hardware_id_real":true
2019-10-15 16:59:55.103 32140-32171/? I/BranchSDK: returned {"session_id":"712683420555627439","identity_id":"71268342053049
2019-10-15 17:03:54.232 1258-1281/? I/BranchSDK: posting to https://api2.branch.io/v1/open
2019-10-15 17:03:54.233 1258-1281/? I/BranchSDK: Post value = {"device_fingerprint_id":"577416430975302209
2019-10-15 17:03:54.509 1258-1281/? I/BranchSDK: returned {"session_id":"712684424697703646","identity_id"
DeepLinks.prepareWith(this) {
GJPoolsManager.main {
if (GJPrepareContentProvider.isPrepared) {
this.log("${GJPrepareContentProvider::class.java.simpleName} is prepared, go forward.")
this.handleRouting()
return@main
}
GJPrepareContentProvider.onPrepared = {
this.log("${GJPrepareContentProvider::class.java.simpleName} has completed preparation phase, go forward.")
GJPoolsManager.main { this.handleRouting() }
override fun prepareWith(
context : Context,
onDone : (() -> Unit)?
) {
this.isPrepared = false
this.mPrepareWith(context) {