LAYOUT BASICS

Details Transcript In this short video I’ll try to address one of the most challenging basic features of Codename One: Layouts Before we go into the actual code let’s explain the basics. Codename One Components are arranged within Containers. A Container can contain an arbitrary number of components ...

Codename One

LOCALIZE/TRANSLATE MY APPLICATION? APPLY I18N/L10N (INTERNATIONALIZATION/LOCALIZATION) TO MY APP?

Script Transcript In this short video we’ll discuss some of the core concepts of internationalization and localization which are often abbreviated as i18n and l10n. We’ll start by defining these two big terms. Internationalization is the system of making an application adaptable to the various locales which means the application will be flexible when we need to make it work for users in different countries. ...

Codename One

TAKE A PICTURE WITH THE CAMERA

Discussion Join the conversation via GitHub Discussions.

Codename One

USE CLOUD CONNECT

Transcript In this short video we will discuss the new cloud connect feature. This feature makes it trivial to build GUI applications that run on multiple devices with one design. We’ll start by defining “cloud connect”. Cloud connect synchronizes the GUI builder with devices seamlessly. ...

Codename One

USE HTTP, SOCKETS, WEBSERVICES AND WEBSOCKETS

Transcript In this short video I’ll cover some core concepts of networking and webservices on mobile devices and Codename One First and most importantly for those of you coming from the desktop or server world, this might not be a shock that network on mobile devices is unreliable. However, the extent of this is sometimes surprising to developers who are new to mobile. That’s why many low level networking strategies are discouraged on mobile devices. ...

Codename One

USE PROPERTIES TO SPEED DEVELOPMENT

Transcript In this short video I’d like to discuss properties, we will start with a plain old Java object or POJO for short. You probably wrote a lot of these object classes and understand it at a glance. We use getters and setters for encapsulation. Those are the most basic properties. ...

Codename One

USE STORAGE, FILE SYSTEM AND SQL

Transcript In this short video I’d like to discuss the basic file storage API’s in Codename One. I’ll try to keep it relatively simple and skip over some of the more complex ideas such as parsing, externalization etc. I’ll start by talking about storage & filesystem. Storage is a high level abstraction, it might be implemented on top of file system but if you rely on that you might fail on the device as this isn’t always true. Storage is more portable, it doesn’t support file hierarchy such as directories. By contrast in file system we MUST use full file paths always. Storage is tied directly to the app and is usually private, this isn’t guaranteed for filesystem. Storage access is also cached for performance where filesystem access isn’t. But this brings us to a bigger core concept of mobile development, apps on mobile devices are completely isolated from one another and can’t access each others storage and usually can’t access each others filesystem files. This isn’t always the case, Android allows some restricted shared file system access but this is pretty tricky to pull off in a portable way. ...

Codename One

WORK WITH MULTI IMAGES AND DEVICE DENSITIES

Transcript In this short video I’ll explain the ideas behind device densities and images in a mobile phone environment. In this environment the differences between device screens are big. Lets start with a simple question, on the left you see an iPhone 6 and on the right you see an iPad Air 2. Both are not to scale but I’ll ask the abstract question: “which device is bigger?” ...

Codename One