Skip to content

Instantly share code, notes, and snippets.

View mujahid-dzinemedia's full-sized avatar

mujahid-dzinemedia

View GitHub Profile
@saeed-younus
saeed-younus / AndroidManifest.xml
Created July 19, 2022 17:35
Fetch All docs files from local storage using media store api (Android 10+ also covered)
manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="">
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.INTERNET" />
<application
@michalkejzlar
michalkejzlar / DownloadProductPicturesUseCase.java
Created February 12, 2017 19:36
Android - Download multiple pictures from remote server at once and save them into local path using Picasso, Okio and RxJava
import android.content.Context;
import android.net.Uri;
import android.util.Log;
import com.fernandocejas.frodo.annotation.RxLogObservable;
import com.squareup.okhttp.OkHttpClient;
import com.squareup.okhttp.Request;
import com.squareup.okhttp.Response;
import okio.BufferedSink;
import okio.BufferedSource;
import okio.Okio;