Skip to content

Instantly share code, notes, and snippets.

View will-quast's full-sized avatar

William Quast will-quast

View GitHub Profile
04-29 21:25:18.782: I/Sensors(13903): **** Motion ****
04-29 21:25:19.442: I/InputReader(13903): Touch event's action is 0x0 (deviceType=0) [pCnt=1, s=0.85 ]
04-29 21:25:19.442: I/InputDispatcher(13903): Delivering touch to current input target: action: 0x0
04-29 21:25:19.442: I/InputDispatcher(13903): Delivering touch to current input target: action: 0x0
04-29 21:25:19.442: I/InputDispatcher(13903): Delivering touch to current input target: action: 0x0
04-29 21:25:19.442: D/lights(13903): button : 255 +
04-29 21:25:19.442: D/lights(13903): button : 255 -
04-29 21:25:19.442: D/PowerManagerService(13903): reactivateScreenLocksLocked mProxIgnoredBecauseScreenTurnedOff=false
04-29 21:25:19.442: I/PowerManagerService(13903): Ulight 0x1->0x7|0x0
04-29 21:25:19.442: D/LightsService(13903): setLightLocked is called
----- pid 16711 at 2013-04-29 19:52:27 -----
Cmd line: system_server
DALVIK THREADS:
(mutexes: tll=0 tsl=0 tscl=0 ghl=0)
"main" prio=5 tid=1 MONITOR
| group="main" sCount=1 dsCount=0 obj=0x4180b6a0 self=0x417f9958
package com.example.crash;
import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
public class MainActivity extends Activity {
@will-quast
will-quast / build.gradle
Created February 6, 2018 19:51
Ensure a private artifact repository is reachable to prevent Gradle from hanging during resolution.
project.gradle.addListener([
beforeResolve: {ResolvableDependencies resolvableDependencies ->
resolvableDependencies.dependencies.forEach {dependency ->
if (dependency.group == 'io.uacf.android' && !ext.has('checkedUacfRepositoryIsReachable')) {
URL url = new URL('https://artifactory.uacf.io/mobile-libraries')
HttpURLConnection conn = url.openConnection()
conn.setConnectTimeout(5 * 1000)
conn.setRequestMethod("HEAD")
try {
conn.connect()