Skip to content

Instantly share code, notes, and snippets.

View abdulnine7's full-sized avatar

Abdul Noushad Sheikh abdulnine7

View GitHub Profile
@ftvs
ftvs / PhonecallReceiver.java
Last active October 11, 2023 10:05
Detecting an incoming call coming to an Android device. Remember to set the appropriate permissions in AndroidManifest.xml as suggested in the Stackoverflow link. Usage example in comments. Source: Gabe Sechan http://stackoverflow.com/a/15564021/264619 Explanation: http://gabesechansoftware.com/is-the-phone-ringing/#more-8
package com.gabesechan.android.reusable.receivers;
import java.util.Date;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.telephony.TelephonyManager;
public abstract class PhonecallReceiver extends BroadcastReceiver {
@jiffle
jiffle / GradleCheatsheet.md
Last active April 14, 2024 10:00 — forked from qrman/GradleCheatsheet.md
Cheatsheet of Gradle Commands and Config

Command Cheatsheet

  • Convert Maven build to gradle

    gradle init

  • Initialise new project folder structure (Java example)

    gradle init --type java-library

@abdulnine7
abdulnine7 / macChange.sh
Created September 29, 2019 10:33
MAC Address Changer Script
#!/bin/bash
echo
echo "========================================================"
echo "Script : MAC Address Changer Script"
echo
echo "Author : Abdul Noushad Sheikh"
echo
date
echo
echo "Note : To check device interface name try command => ifconfig"