Skip to content

Instantly share code, notes, and snippets.

@raquibulbari
raquibulbari / DismissablePopupWindow.java
Created July 23, 2013 04:26
A dismiss-able popup window for Android.
package com.example.app.custom.controls;
import android.content.Context;
import android.graphics.drawable.BitmapDrawable;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.WindowManager;
import android.widget.Button;
@raquibulbari
raquibulbari / ConnectivityReceiver.java
Created July 22, 2013 05:48
Android connectivity status receiver. So that any activity can receive the connectivity availability status. This gist is taken from https://github.com/doridori/AndroidUtilDump/blob/master/android/AndroidUtilDump/src/couk/doridori/android/lib/io/ConnectivityReceiver.java by @doridori A receiver for checking network status changes.
package couk.doridori.android.lib.io;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
/**
package couk.doridori.android.lib.view;
import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.view.animation.AnimationUtils;
import android.widget.Button;
/**
* Class to work around the annoying queuing of multiple taps for Buttons. Could have a time attribute.