Skip to content

Instantly share code, notes, and snippets.

View anilthummar's full-sized avatar
🏠
Working from home

Anil Thummar anilthummar

🏠
Working from home
View GitHub Profile
@IshanFx
IshanFx / carousel.dart
Created October 30, 2021 13:34
Flutter Carousel
@sunmeat
sunmeat / gist:56689e220178846743cc579ed786fecd
Last active July 25, 2022 18:29
face detector google play vision example android
MainActivity.java:
package com.alex.facedetector;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
@ftvs
ftvs / PhonecallReceiver.java
Last active March 27, 2025 05:56
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 {