Open Source & Free

ACCESS REMOTE WEBSERVICES? PERFORM OPERATIONS ON THE SERVER?

Client/server work in Codename One usually starts with a simple question: do you want a portable client talking to a server over standard HTTP APIs, or do you want generated RPC-style plumbing that hides some of that protocol detail? The old webservice wizard was designed for the second case. It generated client-side proxies and matching server-side scaffolding so you could define methods and call them almost as if they were local functions. ...

Codename One

USE CLOUD CONNECT

Cloud Connect was designed to solve a very specific problem: seeing UI changes on real devices immediately while working in the GUI builder. It synchronized the builder’s saved UI state to connected devices so that you could feel the screen on hardware instead of relying only on the desktop preview. ...

Codename One

USE HTTP, SOCKETS, WEBSERVICES AND WEBSOCKETS

Networking on mobile is not the same as networking on the desktop or server. Connections disappear, latency changes abruptly, background execution is limited, and platform security rules can reject traffic that would look perfectly normal elsewhere. If you start with that assumption, the rest of the networking choices in Codename One make much more sense. ...

Codename One

USE PROPERTIES TO SPEED DEVELOPMENT

Codename One properties are useful when you want one model class to do more than simply hold data. A plain old Java object can represent state just fine, but it does not automatically know how to bind to UI, serialize itself, parse structured input, or describe its own fields at runtime. The properties API exists to make those jobs easier. ...

Codename One

USE STORAGE, FILE SYSTEM AND SQL

Persistent data in Codename One usually starts with a choice between three levels of storage: Preferences for very small settings, Storage for simple app-private persisted objects or blobs, and SQL for data that needs real querying, sorting, or filtering. The file system sits beside those as a lower-level tool rather than the default answer to every persistence question. ...

Codename One