title: Backendless check if user is logged in
body: <p>in my project I tried to use Backendless as server. The registration of the users works fine but everytime I start the App I have to login again.</p>
  
  <p>I want to stay logged in even if I close the App as long as I don't press the Logoutbutton.</p>
  
  <p>First I tried to use the function stayLoggedIn but I think it is not working.</p>
  
  <p>I used the code example from Backendless to check if the usertoken is available and if the user is logged: </p>
  
  <pre><code>@Override
  protected void onCreate( Bundle savedInstanceState )
  {
      String userToken = UserTokenStorageFactory.instance().getStorage().get();
      if( userToken != null &amp;&amp; !userToken.equals( "" ) )
      {  Intent i = new Intent(LoginActivity.this, MainActivity.class);
          startActivity(i);
           }
  </code></pre>
  
  <p>This is in the LoginAcitivity and if the user is logged in the LoginActivity should skipped an the MainAcitivity should start.</p>
  
  <p>Running this project give me following error in the line 'String usertoken':
  java.lang.IllegalArgumentException: Init storage before use</p>
  
  <p>I don't know how to solve the problem... </p>
  
  <p>Thanks forward!</p>