PRCT 21
PRCT 21
<TextView
android:layout_height="wrap_content"
filter.addAction(Intent.ACTION_BOOT_COMPL
android:text="Hello World!" ETED);
/>
filter.addAction(Intent.ACTION_BATTERY_LO
</LinearLayout> W);
package com.adina.mad;
filter.addAction(Intent.ACTION_POWER_CON
import android.content.Intent; NECTED);
import android.content.IntentFilter;
filter.addAction(Intent.ACTION_POWER_DISC
import android.os.Bundle;
ONNECTED);
import android.util.Log;
SystemBroadcastReciever code:
filter.addAction(Intent.ACTION_SCREEN_ON);
package com.adina.mad;
import android.content.Context;
filter.addAction(Intent.ACTION_AIRPLANE_M import android.content.Intent;
ODE_CHANGED);
import android.util.Log;
super.onDestroy();
unregisterReceiver(receiver);