private void subscribeTopics(String token,final String[] topics) throws IOException {
  GcmPubSub pubSub=GcmPubSub.getInstance(this);
  for (  String topic : topics) {
    pubSub.subscribe(token,topic,null);
  }
}

private void subscribeTopics ( String token , final String [ ] topics ) throws IOException { GcmPubSub pubSub = GcmPubSub . getInstance ( this ) ; for ( String topic : topics ) { pubSub . subscribe ( token , topic , null ) ; } }
subscribe to any gcm topics of interest , as defined by the topics constant .
