Skip to content

Instantly share code, notes, and snippets.

Dean Spencer Binary-Finery

Block or report user

Report or block Binary-Finery

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View multi_touch_test_privacy_policy
Privacy Policy
Spencer Studios built the Multi Touch Test app as an Ad Supported app. This SERVICE is provided by Spencer Studios at no cost 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 Multi Touch Test unless otherwise defined in this Privacy Policy.
@Binary-Finery
Binary-Finery / Utils.java
Created Mar 12, 2019
hangman utility class
View Utils.java
public class Utils {
private static StringBuilder builder = new StringBuilder();
public static String updateString(String word, String targetWord, char guess) {
reset();
builder.append(word);
for (int i = 0; i < word.length(); i++) {
@Binary-Finery
Binary-Finery / MainActivity.java
Created Feb 22, 2019
random sentence generator
View MainActivity.java
import android.content.ClipData;
import android.content.ClipboardManager;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.widget.TextView;
import android.widget.Toast;
import java.util.Random;
@Binary-Finery
Binary-Finery / Utils.java
Created Jan 24, 2019
utility class for multi app uninstaller
View Utils.java
package com.spencerstudios.multiappuninstaller.utilities;
import android.content.ActivityNotFoundException;
import android.content.Context;
import android.content.Intent;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageInfo;
import android.net.Uri;
import android.widget.Toast;
View UninstallAppsActivity.java
package com.spencerstudios.multiappuninstaller.activities;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.os.Handler;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.view.Window;
@Binary-Finery
Binary-Finery / AppListAdapter.java
Created Jan 21, 2019
recycler view apapter with checkbox's
View AppListAdapter.java
package com.spencerstudios.multiappuninstaller.adapters;
import android.content.Context;
import android.graphics.Color;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.CheckBox;
@Binary-Finery
Binary-Finery / MainActivity.java
Created Dec 16, 2018
press back again to exit example
View MainActivity.java
@Override
public void onBackPressed() {
if (doubleBackToExitPressedOnce) {
super.onBackPressed();
return;
}
doubleBackToExitPressedOnce = true;
Toast.makeText(this, "press back again to exit app", Toast.LENGTH_SHORT).show();
View PaintingView.java
import android.annotation.SuppressLint;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.PointF;
import android.view.MotionEvent;
import android.view.View;
View ComposeImageActivity.java
import android.Manifest;
import android.annotation.SuppressLint;
import android.content.ClipData;
import android.content.ClipboardManager;
import android.content.Context;
import android.content.pm.PackageManager;
import android.graphics.Bitmap;
import android.graphics.Color;
import android.graphics.drawable.BitmapDrawable;
import android.media.MediaScannerConnection;
@Binary-Finery
Binary-Finery / MainActivity.kt
Created Oct 13, 2018
random uk lotto number generator
View MainActivity.kt
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.widget.RadioButton
import kotlinx.android.synthetic.main.activity_main.*
import java.util.*
/*
random UK lottery number generator.
generates a specified quantity of random numbers
in the range of 1 to 59 (inclusive).
You can’t perform that action at this time.