use of android.content.IntentFilter in project LolliPin by OrangeGangsters.
the class PinActivity method onCreate.
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
IntentFilter filter = new IntentFilter(AppLockActivity.ACTION_CANCEL);
LocalBroadcastManager.getInstance(this).registerReceiver(mPinCancelledReceiver, filter);
}
use of android.content.IntentFilter in project LolliPin by OrangeGangsters.
the class PinCompatActivity method onCreate.
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
IntentFilter filter = new IntentFilter(AppLockActivity.ACTION_CANCEL);
LocalBroadcastManager.getInstance(this).registerReceiver(mPinCancelledReceiver, filter);
}
use of android.content.IntentFilter in project LolliPin by OrangeGangsters.
the class PinFragmentActivity method onCreate.
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
IntentFilter filter = new IntentFilter(AppLockActivity.ACTION_CANCEL);
LocalBroadcastManager.getInstance(this).registerReceiver(mPinCancelledReceiver, filter);
}
use of android.content.IntentFilter in project android_frameworks_base by ParanoidAndroid.
the class DateTimeView method registerReceivers.
private void registerReceivers() {
Context context = getContext();
IntentFilter filter = new IntentFilter();
filter.addAction(Intent.ACTION_TIME_TICK);
filter.addAction(Intent.ACTION_TIME_CHANGED);
filter.addAction(Intent.ACTION_CONFIGURATION_CHANGED);
filter.addAction(Intent.ACTION_TIMEZONE_CHANGED);
context.registerReceiver(mBroadcastReceiver, filter);
Uri uri = Settings.System.getUriFor(Settings.System.DATE_FORMAT);
context.getContentResolver().registerContentObserver(uri, true, mContentObserver);
}
use of android.content.IntentFilter in project android_frameworks_base by ParanoidAndroid.
the class TextClock method registerReceiver.
private void registerReceiver() {
final IntentFilter filter = new IntentFilter();
filter.addAction(Intent.ACTION_TIME_TICK);
filter.addAction(Intent.ACTION_TIME_CHANGED);
filter.addAction(Intent.ACTION_TIMEZONE_CHANGED);
getContext().registerReceiver(mIntentReceiver, filter, null, getHandler());
}
Aggregations