Skip to content

Instantly share code, notes, and snippets.

View abhinav-adtechs's full-sized avatar
🚀
Peace. and Digital Computers.

Abhinav Das abhinav-adtechs

🚀
Peace. and Digital Computers.
View GitHub Profile
@abhinav-adtechs
abhinav-adtechs / OkHttpClientTransport.java
Created June 28, 2019 09:55
OkHttpClientTransport file
/*
* Copyright 2014 The gRPC Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
package co.swisapp.io.UI.VideoPlayer;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.os.Handler;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.View;
import android.widget.Toast;
@abhinav-adtechs
abhinav-adtechs / YourGeneralActivity.java
Created December 11, 2016 11:41
Requesting Permissions for devices running on or above API23
/*VARIABLE DECLARATIONS*/
private static final int REQUEST_FILE_PERMISSIONS = 1;
private static final String[] FILE_PERMISSION = {
Manifest.permission.WRITE_EXTERNAL_STORAGE,
Manifest.permission.CAMERA
};
///////////////USAGE BLOG//////////////