Code example for IntentFilter

Methods: setPriority

0
    protected static final int MENU_ID_SAVE = 1;
 
    protected static final int MENU_ID_CLEAR = 2;
 
    protected IntentFilter getIntentFilter() {
        return new IntentFilter();
    } 
 
    protected int getPageType() { 
        return BaseActivity.PAGE_NORMAL;
    } 
 
    private void initialize() { 
        this.mDisplayMetrics = new DisplayMetrics();
        getWindowManager().getDefaultDisplay().getMetrics(this.mDisplayMetrics);
    } 
 
    private void initReceiver() { 
        this.mBroadcastReceiver = new MyBroadcastReceiver();
        this.mIntentFilter = getIntentFilter();
        this.mIntentFilter.setPriority(1000);
    } 
 
    protected boolean isActive() { 
        return this.isActive;
    }