I hereby claim:
- I am tiwiz on github.
- I am tiwiz (https://keybase.io/tiwiz) on keybase.
- I have a public key whose fingerprint is EE83 0A02 F863 BF6C AE5D FA37 A3AC 13C1 7DE5 62DF
To claim this, I am signing this object:
private void setLocale(String language, String country) { | |
Locale locale = buildLocaleWith(language, country); | |
Resources res = InstrumentationRegistry.getContext().getResources(); | |
Configuration config = res.getConfiguration(); | |
setLocaleInto(config, locale); | |
res.updateConfiguration(config, res.getDisplayMetrics()); | |
} | |
@NonNull | |
private Locale buildLocaleWith(String language, String country) { |
#!/bin/bash | |
adb shell setprop debug.layout true | |
adb shell am start com.android.settings/.DevelopmentSettings | |
adb shell input keyevent 4 |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/python | |
import argparse, os, subprocess | |
# Grab the script directory to use as default | |
current_directory = os.path.dirname(os.path.abspath(__file__)) | |
def parse_cli_arguments(): | |
parser = argparse.ArgumentParser(description = 'Grabs all DNG files from the connected Android device\'s camera roll.') |
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" /> |
import org.gradle.internal.os.OperatingSystem; | |
String getJavaHome(String version) { | |
def stdout = new ByteArrayOutputStream() | |
exec { | |
commandLine "/usr/libexec/java_home", "-v", version | |
standardOutput = stdout; | |
} | |
return stdout.toString().trim() | |
} |
#set($paramName = $helper.getParamName($field, $project)) | |
public ## | |
#if($field.modifierStatic) | |
static void ## | |
#else | |
$classname ## | |
#end | |
set$StringUtil.capitalizeWithJavaBeanConvention($StringUtil.sanitizeJavaIdentifier($helper.getPropertyName($field, $project)))($field.type $paramName) { | |
#if ($field.name == $paramName) | |
#if (!$field.modifierStatic) |
String getJavaHome(String version) | |
{ | |
def stdout = new ByteArrayOutputStream() | |
exec { | |
commandLine "/usr/libexec/java_home", "-v", version | |
standardOutput = stdout; | |
} | |
return stdout.toString().trim() | |
} |
final File fabricFile = file("fabric.properties") | |
afterEvaluate { | |
android.applicationVariants.all { variant -> | |
final String variantName = variant.getName().capitalize() | |
final Task targetTask = tasks["process${variantName}Manifest"] | |
if (fabricTask != null) { | |
final Task generateFabricFile = task("generateFabricFile$variantName") { | |
doLast { | |
String fabricApiSecret = 'verySecretApiSecretForEveryoneGuessItsNotThatSecret' |