Skip to content

Instantly share code, notes, and snippets.

View shainsingh89's full-sized avatar

Shain Singh shainsingh89

  • Rwanda
View GitHub Profile
@shainsingh89
shainsingh89 / LogcatGrabberAsyncTask.java
Created January 8, 2019 18:41
Fetch the filtered android application logs from within application
public class LogcatGrabberAsyncTask extends AsyncTask<Void, Void, String[]> {
private WeakReference<Context> weakContext;
private WeakReference<OnLogLoadListener> mListener;
public LogcatGrabberAsyncTask(Context context, OnLogLoadListener mListener) {
this.weakContext = new WeakReference<>(context);
this.mListener = new WeakReference<>(mListener);
}