Skip to content

Instantly share code, notes, and snippets.

Avatar

TurhanOz TurhanOz

View GitHub Profile
@asifmujteba
asifmujteba / ASFUriHelper
Created Apr 22, 2015
Get Real Path from Uri
View ASFUriHelper
@TargetApi(Build.VERSION_CODES.KITKAT)
public static String getPath(final Context context, final Uri uri) {
final boolean isKitKat = Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT;
// DocumentProvider
if (isKitKat && DocumentsContract.isDocumentUri(context, uri)) {
// ExternalStorageProvider
if (isExternalStorageDocument(uri)) {
final String docId = DocumentsContract.getDocumentId(uri);
@tasomaniac
tasomaniac / screenrecord.sh
Last active Jun 28, 2022 — forked from PaulKinlan/getdeviceart.sh
Screen Record for Android
View screenrecord.sh
#!/bin/sh
set -e
if [ -z "$1" ]; then
shot_path=$(date +%Y-%m-%d-%H-%M-%S).mp4
else
shot_path="$*"
fi
@staltz
staltz / introrx.md
Last active Jul 1, 2022
The introduction to Reactive Programming you've been missing
View introrx.md