Skip to content

Instantly share code, notes, and snippets.

View Mojtaba-Shafaei's full-sized avatar

Mojtaba shafaei Mojtaba-Shafaei

View GitHub Profile
@Mojtaba-Shafaei
Mojtaba-Shafaei / App.java
Last active September 22, 2020 15:40 — forked from patrickhammond/gist:0b13ec35160af758d98c
Sample for how to use the Google Play Services dynamic security provider to keep the SSL library that the app will use to up date.
package com.mycompany.myapp.app;
import android.app.Application;
import android.content.Intent;
import com.google.android.gms.common.GooglePlayServicesUtil;
import com.google.android.gms.security.ProviderInstaller;
import com.google.android.gms.security.ProviderInstaller.ProviderInstallListener;
public class MainApplication extends Application {
@Mojtaba-Shafaei
Mojtaba-Shafaei / TintableImageView.java
Created June 24, 2020 11:57 — forked from tylerchesley/TintableImageView.java
Backwards compatible TintableImageView
package com.example.widgets;
import android.content.Context;
import android.content.res.ColorStateList;
import android.content.res.TypedArray;
import android.util.AttributeSet;
import android.widget.ImageView;
import com.example.R;