I hereby claim:
- I am emmaguy on github.
- I am emmav (https://keybase.io/emmav) on keybase.
- I have a public key ASD8wnfUrFUUxFBAjOv7NTEXc_2OAxTkTJqOH0LIl0awMwo
To claim this, I am signing this object:
| val textColorsUsed = mutableMapOf<String, Int>() | |
| File("../").walkTopDown().forEach { file -> | |
| if (file.isFile && file.extension == "xml" && file.path.contains("res/layout")) { | |
| val builder: DocumentBuilder = DocumentBuilderFactory.newInstance().newDocumentBuilder() | |
| val xmlInput = InputSource(StringReader(file.readText())) | |
| val doc: Document = builder.parse(xmlInput) | |
| val androidViews = XPathFactory.newInstance() | |
| .newXPath() |
| <service | |
| android:name=".NotificationService" | |
| android:label="@string/notification_service_name" | |
| android:permission="android.permission.BIND_NOTIFICATION_LISTENER_SERVICE"> | |
| <intent-filter> | |
| <action android:name="android.service.notification.NotificationListenerService" /> | |
| </intent-filter> | |
| </service> |
| Process: com.emmaguy.sampleapp, PID: 3053 | |
| java.lang.RuntimeException: Unable to start activity ComponentInfo{com.emmaguy.sampleapp/com.emmaguy.sampleapp.MainActivity}: java.lang.IllegalArgumentException: Parameter specified as non-null is null: method kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull, parameter $receiver | |
| at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2416) | |
| at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476) | |
| at android.app.ActivityThread.-wrap11(ActivityThread.java) | |
| at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344) | |
| at android.os.Handler.dispatchMessage(Handler.java:102) | |
| at android.os.Looper.loop(Looper.java:148) | |
| at android.app.ActivityThread.main(ActivityThread.java:5417) | |
| at java.lang.reflect.Method.invoke(Native Method) |
I hereby claim:
To claim this, I am signing this object:
| import android.os.Build | |
| public fun supportsKitKat(code:() -> Unit){ | |
| supportsVersion(code, 19) | |
| } | |
| public fun supportsLollipop(code:() -> Unit){ | |
| supportsVersion(code, 21) | |
| } |
| RxJavaPlugins.getInstance().registerObservableExecutionHook(new DebugHook(new DebugNotificationListener() { | |
| public Object onNext(DebugNotification n) { | |
| Timber.v("onNext on " + n); | |
| return super.onNext(n); | |
| } | |
| public Object start(DebugNotification n) { | |
| Timber.v("start on " + n); | |
| return super.start(n); | |
| } |
| adb shell dumpsys batterystats --enable full-wake-history | |
| adb shell dumpsys batterystats > battery.txt | |
| ./historian.py battery.txt > out.html |
| public static final String AUTHORITY = BuildConfig.PACKAGE_NAME + ".provider"; |
| public class SeekBarWithIntervals extends LinearLayout { | |
| private LinearLayout mLinearLayout = null; | |
| private SeekBar mSeekBar = null; | |
| private int WidthMeasureSpec = 0; | |
| private int HeightMeasureSpec = 0; | |
| public SeekBarWithIntervals(Context context, AttributeSet attributeSet) { | |
| super(context, attributeSet); | |
| } |
| git rm --cached `git ls-files -i --exclude-from=.gitignore` >> When updating a .gitignore, remove stuff that's previously added | |
| git diff HEAD^ HEAD >> diff last commit with the version before it | |
| git push origin :abc >> delete remote branch abc | |
| git branch -d abc >> delete local branch abc | |
| git push <origin> <branch name> -- push up new branch | |
| git submodule update --init --recursive | |
| git stash show -p stash@{0} -- diff against stash |