code: @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          
          setContentView(R.layout.activity_main);
  
          GCMRegistrar.checkDevice(this);
          GCMUtils.checkExtended(this);
          GCMUtils.getAndSendRegId(this);
      }
docs: Called when the activity is first created.
  @param savedInstanceState If the activity is being re-initialized after
  previously being shut down then this Bundle contains the data it most
  recently supplied in onSaveInstanceState(Bundle). <b>Note: Otherwise it is null.</b>