Skip to content

Instantly share code, notes, and snippets.


david davols

View GitHub Profile
davols /
Created Oct 5, 2017 — forked from ftvs/
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: Explanation:
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 {
View install-elasticsearch-debian
sudo apt-get update
sudo apt-get install openjdk-6-jdk
sudo dpkg -i elasticsearch-$VERSION.deb
# be sure you add "action.disable_delete_all_indices" : true to the config!!
You can’t perform that action at this time.