Skip to content

Instantly share code, notes, and snippets.


Shivam Dhuria Shivamdhuria

View GitHub Profile
Shivamdhuria /
Created March 5, 2020 06:55 — forked from sandeeptengale/
Sample code to create BaseActivity for Android
import android.os.Bundle
import android.widget.FrameLayout
import android.widget.ImageButton
import android.widget.TextView
import com.vtuforum.vtustudies.R
Shivamdhuria /
Created January 3, 2020 21:09 — forked from ygrenzinger/
Summary of Clean Architecture by Robert C. Martin

Summary of book "Clean Architecture" by Robert C. Martin

Uncle Bob, the well known author of Clean Code, is coming back to us with a new book called Clean Architecture which wants to take a larger view on how to create software.

Even if Clean Code is one of the major book around OOP and code design (mainly by presenting the SOLID principles), I was not totally impressed by the book.

Clean Architecture leaves me with the same feeling, even if it's pushing the development world to do better, has some good stories and present robust principles to build software.

The book is build around 34 chapters organised in chapters.

Shivamdhuria /
Created March 5, 2019 17:05 — forked from skfaisal93/
Real Path Utility class for Android, works for all API, also handle NumberFormatException for API 28
import android.annotation.SuppressLint;
import android.content.ContentUris;
import android.content.Context;
import android.content.CursorLoader;
import android.database.Cursor;
import android.os.Build;
import android.os.Environment;
import android.provider.DocumentsContract;
import android.provider.MediaStore;