Skip to content

Instantly share code, notes, and snippets.

@devqmr
devqmr / AppLifecycleTracker.java
Created December 17, 2017 15:50
How to detect when an Android app goes to the background and come back to the foreground
import android.app.Activity;
import android.app.Application;
import android.os.Bundle;
import android.util.Log;
/**
* Created by Ahmed AbuQamar on 12/17/17.
*
*
@devqmr
devqmr / TypefaceTextView.java
Created April 22, 2017 11:20 — forked from twaddington/TypefaceTextView.java
An Android TextView with support for custom typefaces.
/*
* TypefaceTextView.java
* Simple
*
* Copyright 2012 Simple Finance Corporation (https://www.simple.com)
*
* 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
*
@devqmr
devqmr / PicassoDecoder.java
Created July 28, 2016 11:38 — forked from davemorrissey/PicassoDecoder.java
Picasso decoder for subsampling-scale-image-view
/**
* Created by gokhanbarisaker on 8/30/15.
*/
public class PicassoDecoder implements ImageDecoder
{
private String tag;
private String picasso;
public PicassoDecoder(String tag, Picasso picasso) {
this.tag = tag;