package test.protect;

import android.app.Activity;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.Bundle;
import android.util.Log;
import android.widget.Toast;

public class Protect extends Activity {
    /** Called when the activity is first created. */
BroadcastReceiver m = new BroadcastReceiver(){
@Override
public void onReceive(Context context, Intent intent) {
if(intent.getAction().equals("Intent.ACTION_TIME_TICK"))
Toast.makeText(null, "Get Action", Toast.LENGTH_SHORT).show();
}
};
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
    }
    
    public void onStart(){
     super.onStart();
IntentFilter filter = new IntentFilter("Intent.ACTION_TIME_TICK");
     registerReceiver(m, filter);
     Log.i("testsms", "this is test01");
    }
    
    public void onResume(){
     super.onResume();
    }
    
    public void onPause(){
     super.onPause();
    }
    
    public void onDestroy(){
     super.onDestroy();
     unregisterReceiver(m);
     Log.i("testsms", "this is test02");
    }
}

아무런 반응을 안하네요. 이유가 뭘까요;;;