ClearOS Mobile Starter Kit for Developers

Posted by: Darryl Sokoloski

Tagged in: moblie

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.

Installation

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.

ClearOS Mobile Demo - Android

Tips

- 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.

 

 

 

Comments (4)add
herballizard
...
written by herballizard , May 18, 2012
hawt....
report abuse
vote down
vote up
Votes: +0
Marcel van Leeuwen
Nice!
written by Marcel van Leeuwen , May 19, 2012
Cool stuff Darryl. Only i'm waiting for a version for iOS. So if there is a devoper interested...
report abuse
vote down
vote up
Votes: +0
Darryl Sokoloski
...
written by Darryl Sokoloski , May 19, 2012
Thanks Marcel!

I only have an Android, so that's why there's no iOS version. This is just a simple example meant to demonstrate a few common tasks such as authenticate against the new ClearOS 6x framework, make API calls, and send/receive JSON encoded data. It's not a very useful app, you're not missing much :p
report abuse
vote down
vote up
Votes: +0
Marcel van Leeuwen
...
written by Marcel van Leeuwen , May 20, 2012
I always have admiration for people who can turn a program (GUI, etc) from just code. I don't how to say this correct I'll hope you understand. Really cool stuff.
report abuse
vote down
vote up
Votes: +0
You must be logged in to post a comment. Please register if you do not have an account yet.

busy