Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejava
SpringMobile spring = new ("app","TestApp",getApplicationContext());
spring.setTimeout(30); // in seconds

Note: Starting from Android 3.0 !

Since Android 3.0 network accesses are not allowed from the main thread anymore  . Thus, the Spring.commit () method must be called in different thread.

 

Code Block
languagejava
class CommitTask extends AsyncTask<Map<String,Object>, Void, Void> {
  protected Void doInBackground(Map<String,Object>... params) {
   if(params.length != 1)
    throw new IllegalArgumentException("one parameter expected");
   spring.commit(params[0]);
  return null;
  }
 }
 

Release Notes

Include Page
Release Notes Android
Release Notes Android

...