Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View himanshu-soni's full-sized avatar
🏠
Working from home

Himanshu Soni himanshu-soni

🏠
Working from home
View GitHub Profile
@himanshu-soni
himanshu-soni / BaseActivity.java
Created October 31, 2014 19:22
Base Activity to detect internet connection GPS disabled. It shows dialog to enable them too :)
package com.djhs16.location;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.IntentFilter;
import android.location.Location;