title: How to get the device token
body: <p>After the installation has been made I need to get the deviceToken for other purposes. This is what I developed so far:</p>
  
  <pre><code>Parse.initialize(this, "qqd423WEfwWEF32FewferT434fs323rfRT", "g7Rre4g7gsGRwgGw458Hdf443gFHk534Mrtg34");
      final ParseInstallation currentInstallation = ParseInstallation.getCurrentInstallation();
  
      currentInstallation.saveInBackground(new SaveCallback() {
          public void done(ParseException e) {
              if (e == null) {
                  System.out.println("ok");
                  deviceToken = currentInstallation.get("deviceToken").toString();
                  System.out.println(deviceToken);
              } else {
                  System.out.println("not ok");
              }
          }
      });
  </code></pre>
  
  <p>The problem is that if I execute the code the app crashes and this is the error generated: </p>
  
  <pre><code>02-02 09:44:17.151    ﹕ FATAL EXCEPTION: main, PID: 5855 java.lang.NullPointerException
  </code></pre>
  
  <p>and the piece of code that generates this is this piece:</p>
  
  <pre><code>deviceToken = currentInstallation.get("deviceToken").toString();
  </code></pre>
  
  <p>is there anybody who can help me? I simply need to get the deviceToken after the installation is made.</p>