Open Source & Free  

Properties

We usually just add a new feature and then tell you about it in these posts but properties is a special case and this post is intended not just as a tutorial but as a solicitation of feedback…​ We committed properties as a deprecated API because we aren’t sure yet. This could be a very Properties

TIP: How to Ask a Question

I deal with a lot of questions every day and unfortunately most of them are phrased in a way that forces me to guess. There are some guidelines on how to ask a question but I think they are mostly pretty bad. Asking a question “correctly” helps you tremendously both in getting a correct answer TIP: How to Ask a Question

Questions of the Week 32

I practically had a vacation from blogging these past two weeks with all the great posts from Steve. I’ve put some work into something interesting but it’s not yet ready for prime time. If you follow the git commits you might have noticed we’ll discuss it when we think it’s ready. This week we (thankfully) Questions of the Week 32

Native File Open Dialogs

Codename One has always provided access to the device’s photos and videos via Display.openGallery() but it hasn’t provided an API to open arbitrary file types because this type of functionality was not available on most mobile platforms. Times have changed and most platforms now offer support for more than just images and photos, so we Native File Open Dialogs

UWP Native Interfaces – Mix C# and Java

The next plugin update will add support for native interfaces in UWP. This opens the door for you to really dig into the native features of Windows if you wish to do so. Crucially, this will also allow us to push forward with windows support on some of the cn1libs that require native functionality. As UWP Native Interfaces – Mix C# and Java

CSS Tip: Using CSS to Import Images

The Codename One CSS plugin is a handy tool to style your app with CSS. This includes setting borders, padding, margin, fonts, colors, and pretty much everything else that you might otherwise do in the resource editor. However, there are some other cool things that this plugin can do for you, such as importing multi-images CSS Tip: Using CSS to Import Images

TIP: Get Stack State (trace) from Java Processes

One of the most frustrating things that can happen to developers is when you manage to reproduce a rare bug but you are not in the debugger when you did that. My kingdom for a stack trace…​ But this is also pretty frustrating when you work on a tool like Codename One’s designer or GUIBuilder TIP: Get Stack State (trace) from Java Processes

Questions of the Week 31

We try to space out plugin updates as much as reasonably possible but unfortunately we need to push out an update this week to fix a critical regression in the new GUI builder. Hopefully it is more stable now and we can go back to working on new features. Steve made a couple of very Questions of the Week 31

Cool Text Effects for Your Mobile App on iPhone (iOS), Android etc.

FontBox is a mature java library for loading, manipulating, and rendering fonts in Java. It gives you direct access to the font glyphs so that you can perform effects or transformations on them. A couple of years ago, I ported FontBox to Codename One, but since CN1 didn’t yet include support for drawing shapes, I Cool Text Effects for Your Mobile App on iPhone (iOS), Android etc.

Partners, Demos, Custom GUI Component & iPhone-Old Deprecation

We are launching a partners page in the website that will refer to consultants that we recommend/approve. If you are a software development company that works with Codename One we’d like to feature you in our website and provide the following benefits: Do-follow link from us (we have good page rank for valuable industry keywords) Partners, Demos, Custom GUI Component & iPhone-Old Deprecation

Associating Your App with File Extension/Mime Type on iPhone (iOS), Android & Windows

One of the compelling reasons to go native (vs say a web app) is to better integrate with the platform. One form of integration that is frequently handy is the ability register your app to handle certain file types so that it is listed as one of the options when a user tries to view Associating Your App with File Extension/Mime Type on iPhone (iOS), Android & Windows

TIP: Create Square Icons

This is inspired by this post that covers the process of creating different icons for different OS builds. But here I’d like to discuss the lowest common denominator and how we got it wrong! On Android an icon can have any shape and often does, on iOS we usually expect a rounded corner look and TIP: Create Square Icons