Skip to content

Instantly share code, notes, and snippets.

View PiXeL16's full-sized avatar
:shipit:
Wipididu!

Chris Jimenez PiXeL16

:shipit:
Wipididu!
View GitHub Profile
04efe5f9f1a297ba49a7c940d7072fc10c3a13eabb6588de087ae9fadcc2f3cb62f798a230cbe98f672890c0da52a331b4bb03f6cab2f8565362b6b2aed34f3a91
{"lastUpload":"2017-03-17T10:22:49.104Z","extensionVersion":"v2.5.1"}
@PiXeL16
PiXeL16 / ForegroundUtils.java
Created April 13, 2016 22:09
Singleton Util that share the status of the App when it goes to background or foreground
import android.app.Activity;
import android.app.Application;
import android.content.Context;
import android.os.Bundle;
import android.os.Handler;
import android.util.Log;
import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;