Skip to content

Instantly share code, notes, and snippets.

View Binary-Finery's full-sized avatar

Dean Spencer Binary-Finery

View GitHub Profile
@Binary-Finery
Binary-Finery / MainActivity.kt
Created December 29, 2019 20:24
temp converter (.kt)
import android.content.ClipData
import android.content.ClipboardManager
import android.content.Context
import android.os.Bundle
import android.support.v7.app.AppCompatActivity;
import android.text.Editable
import android.text.TextWatcher
import android.view.View
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 March 12, 2019 11:00
hangman utility class
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 February 22, 2019 20:59
random sentence generator
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 January 24, 2019 17:04
utility class for multi app uninstaller
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;
@Binary-Finery
Binary-Finery / UninstallAppsActivity.java
Created January 21, 2019 16:37
uninstall multiple apps
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 January 21, 2019 12:18
recycler view apapter with checkbox's
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 December 16, 2018 08:11
press back again to exit example
@Override
public void onBackPressed() {
if (doubleBackToExitPressedOnce) {
super.onBackPressed();
return;
}
doubleBackToExitPressedOnce = true;
Toast.makeText(this, "press back again to exit app", Toast.LENGTH_SHORT).show();
@Binary-Finery
Binary-Finery / PaintingView.java
Created December 5, 2018 20:13
retro pixel art
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;
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;