This test rule is now in the 'test-rules' support repository. Use that one!
https://developer.android.com/reference/android/support/test/rule/ActivityTestRule.html
apply plugin: 'maven-publish' | |
apply plugin: 'signing' | |
task androidSourcesJar(type: Jar) { | |
archiveClassifier.set('sources') | |
if (project.plugins.findPlugin("com.android.library")) { | |
from android.sourceSets.main.java.srcDirs | |
from android.sourceSets.main.kotlin.srcDirs | |
} else { | |
from sourceSets.main.java.srcDirs |
adb shell am broadcast -a com.whereismywifeserver.intent.TEST | |
[-e|--es <EXTRA_KEY> <EXTRA_STRING_VALUE> ...] | |
[--esn <EXTRA_KEY> ...] | |
[--ez <EXTRA_KEY> <EXTRA_BOOLEAN_VALUE> ...] | |
[--ei <EXTRA_KEY> <EXTRA_INT_VALUE> ...] | |
[--el <EXTRA_KEY> <EXTRA_LONG_VALUE> ...] | |
[--ef <EXTRA_KEY> <EXTRA_FLOAT_VALUE> ...] | |
[--eu <EXTRA_KEY> <EXTRA_URI_VALUE> ...] | |
[--ecn <EXTRA_KEY> <EXTRA_COMPONENT_NAME_VALUE>] |
# From Original Post https://medium.com/@rachitmishra/invalid-vector-drawable-fixing-1-to-0-1-1b430d7469e7 | |
from xml.dom.minidom import parse, parseString | |
from sys import argv | |
import os | |
def fix_path(pathdata, token): | |
# Fix missing 0 after space | |
points = pathdata.split(token) | |
for i, b in enumerate(points): | |
if b.startswith('.'): |
apply plugin: 'jacoco' | |
jacoco { | |
toolVersion = '0.8.2' | |
} | |
android { | |
buildTypes { | |
debug { |
public class Solution { | |
public int[] quickSort(int[] array) { | |
//corner cases | |
if(array == null) return array; | |
quickSort2(array, 0, array.length-1); | |
return array; | |
} | |
//quicksort recursive method |
adb help // List all comands | |
== Adb Server | |
adb kill-server | |
adb start-server | |
== Adb Reboot | |
adb reboot | |
adb reboot recovery | |
adb reboot-bootloader |
import android.content.Context; | |
import android.location.Address; | |
import android.location.Geocoder; | |
import java.io.IOException; | |
import rx.Observable; | |
import rx.Subscriber; | |
import rx.android.schedulers.AndroidSchedulers; | |
import rx.schedulers.Schedulers; |
apply plugin: 'com.android.application' | |
ext.versionMajor = 1 | |
ext.versionMinor = 2 | |
ext.versionPatch = 3 | |
ext.versionClassifier = null | |
ext.isSnapshot = true | |
ext.minimumSdkVersion = 19 | |
android { |
This test rule is now in the 'test-rules' support repository. Use that one!
https://developer.android.com/reference/android/support/test/rule/ActivityTestRule.html
To 'clone' a container, you'll have to make an image of that container first, you can do so by "committing" the container. Docker will (by default) pause all processes running in the container during commit to preserve data-consistency.
For example;
docker commit --message="Snapshot of my container" my_container my_container_snapshot:yymmdd