Skip to content

Instantly share code, notes, and snippets.

View gopolangmathole's full-sized avatar

Gopolang Kopano Mathole gopolangmathole

  • Pretoria, South Africa
View GitHub Profile
@gopolangmathole
gopolangmathole / database.rules.json
Created January 4, 2021 22:30 — forked from codediodeio/database.rules.json
Common Database Rules for Firebase
// No Security
{
"rules": {
".read": true,
".write": true
}
}
@gopolangmathole
gopolangmathole / MainActivity.java
Created December 13, 2020 09:44 — forked from enginebai/MainActivity.java
Get the current location and display a marker on Google Map.
package com.enginebai.sample;
import android.content.Context;
import android.location.Location;
import android.location.LocationListener;
import android.location.LocationManager;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.support.v7.app.AppCompatActivity;