Posted by: Darryl Sokoloski
on May 18, 2012
We are happy to announce a cool new toy for developers - an Android app to get you started with mobile development! Please keep in mind, this is a developer demonstration with open source code to get started.
On your ClearOS system, install the server-side app for the Android app:
yum --enablerepo=clearos-updates-testing install app-mobile-demo
Once installed, you can find the demo under System > Developer > Mobile Demo. From that page you can click on Download & Install to get the app from Google play.
- After you have added a new system to the application, you may have to wait up to 10 minutes before you start to see data synchronizing. This all depends on how many other sync accounts you have (GMail, Facebook, Twitter, Dropbox, etc). This is apparently "normal" behavior.
- The app will install on Android 2.1 and up, but older API versions do not support periodic data sync, this has to be done in some manual way. Periodic sync works from API level 8 (2.2.x FROYO) and up.
- The password you use to authenticate with is never stored on the phone. It is used once to obtain a session cookie. These cookies will expire after 2 hours. You will be notified with a sign-in error when the session expired. I will be updating the ClearOS framework to extend sessions time-outs dynamically so this won't be an issue for future real world apps.