Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Himanshu Soni himanshu-soni

🏠
Working from home
View GitHub Profile
@himanshu-soni
himanshu-soni / BaseActivity.java
Created Oct 31, 2014
Base Activity to detect internet connection GPS disabled. It shows dialog to enable them too :)
View BaseActivity.java
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;