Skip to content

Instantly share code, notes, and snippets.

View BalakrishnanPT's full-sized avatar
🎯
Focusing

Balakrishnan BalakrishnanPT

🎯
Focusing
  • Edison Interactive
  • Remote
View GitHub Profile
@chandruark
chandruark / ActivityClass.java
Last active June 4, 2019 12:03
Google Place API Adapter - New Version Based on A new version of the Places SDK for Android -on ( 3-JUN-2019)
/**
* Place this Snippet in Activity File
* Secure `YOUR_GOOGLE_PLACE_API_KEY` Key in Build Config, if you need
*/
/**
* `etGoogleplaceApi` stands for AutocompleteEditText Widget
* Add Your Billings Details in Google Console, OR else it throws `QUERY_LIMIT_EXCEEDED` exception
@chandruark
chandruark / AutoFitTextureView.java
Last active June 13, 2019 06:07
Camera API 2 Class for Imp -> 1. Change your Package Name Accordingly 2.This Class uses Context Wrapper to Store Images in Directory<Your Wish>,
package <your pacakage name>;
import android.content.Context;
import android.util.AttributeSet;
import android.view.TextureView;
/**
* A {@link TextureView} that can be adjusted to a specified aspect ratio.
*/
public class AutoFitTextureView extends TextureView {
@chandruark
chandruark / Camera2Impl.java
Created May 3, 2019 05:43
Camera API 2 Class for Imp
package <your pacakage name>;
import android.Manifest;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.Dialog;
import android.content.Context;
import android.content.ContextWrapper;
import android.content.DialogInterface;