Skip to content

Instantly share code, notes, and snippets.

View hiteshchikani1990's full-sized avatar

hiteshchikani1990

View GitHub Profile
@hiteshchikani1990
hiteshchikani1990 / gist:d13c9150c0f04b433066
Created July 28, 2014 05:42
phoneStateListner is Not properly work android
I'm confused for my PhoneStateListner Class. Because this is for full caller Id photo Application.
In than I'm open Service at the time of incoming call/ Missed call/ received call. But this is only work at first time.
Context c;
boolean cut, flag = true;
PhoneStateListener listener;
SharedPreferences prefs;
static boolean ring = false;
static boolean callReceived = false;