Skip to content

Instantly share code, notes, and snippets.

View mksantoki's full-sized avatar
🏠
Working from home

Maulik Santoki (MK) mksantoki

🏠
Working from home
  • India
View GitHub Profile
@mksantoki
mksantoki / IntentSendEmailUtil.java
Last active November 7, 2017 06:30
Android Intent Send Email
import java.util.Collection;
import java.util.LinkedHashSet;
import java.util.Set;
import android.app.Activity;
import android.content.ActivityNotFoundException;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.support.annotation.NonNull;
@mksantoki
mksantoki / WebviewUtil.java
Created November 6, 2017 12:58
Android webview with custom font
import android.webkit.WebView;
/**
* Created by mauliksantoki on 6/11/17.
*/
public class WebviewUtil {
// Reference https://forums.xamarin.com/discussion/40192/how-to-do-a-webview-renderer-with-custom-font-on-android
@mksantoki
mksantoki / MainActivity.java
Created October 31, 2017 17:52
FileChooser in Android webview
/*
reference link ->https://www.opengeeks.me/2015/08/filechooser-and-android-webview/
https://github.com/OpenGeeksMe/Android-File-Chooser
*/
import android.app.Activity;
import android.app.ProgressDialog;
import android.content.Intent;
import android.graphics.Bitmap;
import android.net.Uri;
@mksantoki
mksantoki / ScreenUtils.java
Created October 30, 2017 06:12
This class is use to get screen width and height.
import android.content.Context;
import android.util.DisplayMetrics;
import android.view.WindowManager;
/**
* Created by maulik santoki on 17/10/17.
*/
public class ScreenUtils {