Intercepting URL's On iOS & Android

Post Image

Notice: the original version of this post incorrectly specified the property as AppArgs instead of AppArg. This is now fixed. For Android you would probably also want to add the build argument android.xactivit...

Read More

Can Execute

Post Image

Runtime.exec is pretty familiar to Java developers (and the process builder in later versions), however for mobile applications we usually don't have access to an executable. The solution is to invoke a URL which is bound to a particular application, this works rather well assuming the application is installed and you can activate quite a few thing...

Read More
Post Image

Developer Promotion - practical guide & statistics about the Java ecosystem

Before we launched our recent promotion for JavaOne tickets with Java Code Geeks we sought out guides/tutorials about running such a promotion, unfortunately we didn't find anything useful so we had to improvise and work by instinct. This post will also cover some of the statistical results about the Java community so if this is the reason you are ...

Read More

Perspective Transform

Post Image

Over the weekend Steve posted a really cool demo showing off some of his work on the new iOS graphics pipeline, specifically the perspective transform. Perspective transform allows us to rotate elements in a 3 dimensional space to create pretty nifty effects. Right now this is only supported on iOS devices (since Java SE doesn't really support it,...

Read More

Same Size & Back Swipe

Post Image

Codename One inherited basic layout concepts from Swing which in turn inherited them from AWT. We modernized and adapted them quite a bit by removing various behaviors and adding others, but a key to sizing and placing components is the preferred size. Every component calculates its own preferred size in the calcPreferredSize() method. This calcula...

Read More

Codename One & Java Code Geeks are giving away free JavaOne Tickets (worth $3,300)!

Post Image

Would you like to go to JavaOne? Besides being a cool conference its loads of fun with shows and events thru-out the city. Now you have a chance, Codename One and Java Code Geeks have teamed up to give away TWO full passes (worth $1,650 each) and to win all you need to do is: - Retweet this tweet: https://twitter.com/javacodegeeks/statuses/48...

Read More

Garbage Collection

Post Image

We've been spending an excessive amount of time tuning our garbage collection and memory management of the new iOS VM based on profiler output. This is one of the cool features in the approach we took (translating Java to C rather than going directly to machine code), we can use Apple's nifty profiling tools to see where the CPU/GPU spend their tim...

Read More

Not A Dialog - Again

Post Image

When we introduced the idea of the EDT from Swing (and pretty much any modern UI toolkit) into what eventually became Codename One, one of the chief benefits was modal dialogs. Its the ability to block the executing thread in order to ask the user a question, that's a very powerful tool for a developer. As a result of that we defined modal dialogs ...

Read More

Keyboard Keys & Android Pipeline

Post Image

Some features we have in Codename One are a bit hidden behind the surface, we add them as a patch for a developer and don't have the proper place to document them so they get buried. Case in point is the ability in Android to use the search magnifier icon instead of the done button. To get that functionality you can just set a client property on th...

Read More

Performance & Map Taps

Post Image

We neglected to mention in our last post about the new graphics pipeline that it was authored by Steve Hannah who did a splendid job there! He just updated the shaders for the implementation to be far more efficient bringing performance back to the current levels. The true value of this architecture is that now we will be able to manipulate shaders...

Read More