android粘性廣播主動獲取當前值

kkklzc發表於2020-12-29
        IntentFilter filter = new IntentFilter("com.action");
        Intent intent = context.registerReceiver(null, filter);
        if (intent != null) {
        	if (TextUtils.equals(intent.getStringExtra("extra"), "1")) {
            
        	}
		}

相關文章