Hessdroid - a Hessian library for Android

4,474 views
4,302 views

Published on

hessdroid - a Hessian library for Android

Published in: Technology, Education
1 Comment
0 Likes
Statistics
Notes
  • Be the first to like this

No Downloads
Views
Total views
4,474
On SlideShare
0
From Embeds
0
Number of Embeds
30
Actions
Shares
0
Downloads
46
Comments
1
Likes
0
Embeds 0
No embeds

No notes for slide

Hessdroid - a Hessian library for Android

  1. 1. hessdroid Hessian for the Android™ platform code.google.com/p/hessdroid
  2. 2. Hessian? • http://hessian.caucho.com/ • Binary Web Service Protocol • designed to be used in J2ME environments
  3. 3. Hessian • Design Goals (see http://hessian.caucho.com/) • self-descriptive • language-independent • readable/writable in single pass • compact • support for Unicode
  4. 4. • mobile operating system • programs run inside vm • Dalik VM • Java-bytecode compiled to *.dex • own byte-code, not Java-bytecode • low footprint
  5. 5. hessdroid • http://code.google.com/p/hessdroid • port of Caucho‘s Java Hessian library • supports Hessian 1.0, 2.0 • trimmed down version • pure Java library, no third party libs • compiles to dex and runs on Dalvik
  6. 6. hessdroid • Server • Client
  7. 7. hessdroid • getClassLoader() • Context.getClassLoader() instead of Thread.getContextClassLoader() • http://developer.android.com/reference/android/ content/Context.html#getClassLoader()
  8. 8. hessdroid • Class-Loader Stack Size • default stack size is 8KB • 60-100 stack frames (dep on method) • use Thread constructor with stackSize param • SerializationTask as Asynchronous Task • android.os.AsyncTask
  9. 9. hessdroid
  10. 10. hessdroid • http://code.google.com/p/hessdroid • hessdroid@gmail.com • Wiki, Code-Samples, Source-Code • Feel free to contribute! Happy coding!

×