Code example for IOException

Methods: printStackTrace

0
        setRegistrationId(context, regid);
        sendRegistrationIdToServer(regid);
      } 
      catch (IOException e) {
        // TODO Auto-generated catch block 
        e.printStackTrace();
      } 
 
      return(regid);
    } 
 
    protected void sendRegistrationIdToServer(String regid) {
      // no-op -- subclasses should override and send 
      // registration id to server by some means 
    } 
 
    // override this to do something more, note that it 
    // is called on a background thread! 
     
    protected void onError(IOException e) {
      Log.e(getClass().getSimpleName(),