As soon as I released the original version of the Slashdot widget, I realized that Android 3.0+ (honeycomb and ice cream sandwich) allows natively scrollable widgets (at least in the vertical direction) and this is much nicer on bigger screens, no such luck for Android 2.3 (Gingerbread) or prior versions of course.
The nice thing about Android and the Market Place is that it's relatively easy to work around this using the android:minsdkversion and android:maxSdkVersion elements of AndroidManifest.xml.
At this point I've developed 2 versions of the widget.
Version A:
- Targets Android 2.2 & 2.3 AndroidManifest.xml contains:
<uses-sdk android:minsdkversion="8" android:maxsdkversion="10"/>
- Uses custom arrow buttons for scrolling and switching between stories
Version B:
- Targets Android 3.0+ AndroidManifest.xml contains:
<uses-sdk android:minsdkversion="11"/>
- Uses ListView backed by a Collection
I did a build of both and publish them both concurrently in the Market Place - no problem :)
Saturday, January 21, 2012
Slashdot Reader Widget for Android - Maintenance
Posted by
Zero Effort
at
Saturday, January 21, 2012
0
comments
Wednesday, December 14, 2011
Slashdot Reader Widget for Android now available
I was shocked!
Imagine there used to be no Android widget for Slashdot, simply unthinkable! I learned this when full of confidence I looked for one on the Android Market place and came up with nothing. I’ve been a Slashdot reader for years, I’d even go as far as to say that ./ is then only source of news I check regularly, and now this.
There were plenty of Slashdot branded RSS reader apps but no home screen widgets. This horrible oversight has now been remedied, I’ve worked relentlessly over the past few weeks and last night (at around 2PM Sydney time) I’ve published my masterpiece. It’s only 99c so go get it. And if you have an iPhone then throw it away, get your self the latest Google phone and then get the widget :)
Posted by
Zero Effort
at
Wednesday, December 14, 2011
0
comments
Long time no posts…
It has been quite a while since I’ve last put up a post. Much has happened since then.
- We’ve sold Cotopia so this blog is under my own name a no longer under the “Cotopia” name. All the posts are still here, just under a different heading
- I’ve made my peace with Maven (still hate Maven / Eclipse RPC integration) and use it on all my projects by default :)
- I’ve moved from JavaME to mostly Android and iPhone development and this will inevitably be reflected in the content of this blog
Posted by
Zero Effort
at
Wednesday, December 14, 2011
0
comments
Wednesday, February 17, 2010
Maven and Eclipse RCP aka taking a trip to hell
Trying to get Maven and Eclipse RCP to work together to produce a build has been a complete nightmare. A member of my team spent a week trying to accomplish this feat and the end result has been hindering development ever since. Every time the plugin dependencies change, which in a young project is quite often, we're forced to update number of files by hand to accommodate the build process, which is fairly complex so that only one person on the team really knows what the hell is going on. I wouldn't believe how difficult something like building an RCP app with Maven can be, if I didn't live through it. Very frustrating stuff. Especially given that we're all quite happy with the way the actual RCP application has turned out.
Posted by
Zero Effort
at
Wednesday, February 17, 2010
0
comments
Thursday, January 07, 2010
Maven ...
It seems one cannot get away from Maven now a days. In my current job as well as in my new job (which I start in a few days) we'll be using Maven to build and manage projects.
While Maven is quite nice in theory the plug-ins for it leave much to be desired in many cases. So without further delay here is a quote of the day by a colleague of mine:
"I hate Maven and the open source community!"
This made me laugh out since we use (pretty much exclusively) open source tools and software (NetBeans, Eclipse, GlassFish etc.) to build and run the business. But nevertheless, after a few days of hell trying to implement release management using a combination of Maven and Hudson plug-ins, universal hatred is what we have :)
Posted by
Zero Effort
at
Thursday, January 07, 2010
0
comments
Wednesday, December 23, 2009
A brush with Eclipse RCP
In my current job I seem to do quite a bit of UI work. The nice thing is that since my company is a start-up, the possibilities (in terms of technology at least) are unlimited. In the last year I've written GUIs using C# & WPF, Swing, and JavaFX. This time we were looking to create a 'system monitoring application' which should be able to present different types of information:
- Tables
- Graphs
- Charts
- Trees
- etc...
- JavaFx: low level, lack of tools and out of box components
- Swing: low level, good tools
- SWT: low level
- NetBeans platform: have personal experience
- Eclipse RCP: unknown
Now, a month later, I have to say that I believe that my decision was the right one. After 3 days of tutorials and reading we were ready to go. Ultimately we have created a UI which is modular (with multiple self contained plugins), looks and feels the way our client expects, and will be easy to extend. In addition, majority of the actual UI work (using JFace, SWT, databinding, Eclipse RCP APIs) was done by my colleagues while I focused on the data models.
While I would take the NetBeans IDE over the Eclipse IDE for most things I am quite happy with the way our RCP based project turned out given the requirements.
Posted by
Zero Effort
at
Wednesday, December 23, 2009
3
comments
Thursday, October 01, 2009
Sending GlassFish java.util log records to Chainsaw - no problemo
To send Java log records to from GlassFish to chainsaw we need to first translate the LogRecords (from java.util.logging) to LoggingEvents (used byt the log4j framework and accepted by chainsaw). Then also need to publish the resulting LoggingEvents to Chainsaw over a socket.
Here is how I do it:
* Copy ChainsawHandler.jar and log4j.jar into GLASSFISH_HOME/domains/domain1/lib/ext
* In Glassfish admin web console under: Application Server/Logging/General/Log Handler enter:
au.com.horseshoelane.logging.HSLChainsawLogHandler
* In Glassfish admin web console under: Application Server/JVM Settings/JVM Options/ add a new JVM Option:
-DchainsawPort=4447
this is the port to which Chainsaw clients can connect
* Restart GlassFish
* Configure a new SocketHubReceiver in Chainsaw that will connect to the chainsawPort
In case you are curious how it works or want to add functionality or fix a bug here is the source.
I would like to thank my current employer HSL for allowing me to publish this work - which they have sponsored in the form of my paycheck :)
Posted by
Zero Effort
at
Thursday, October 01, 2009
1 comments
Wednesday, September 16, 2009
JavaFX + WebStart + Web Services + GlassFish = One cool client app
In this post I will give an overview of the architecture that I've used to supply a connected thick (JavaFX) client application to a customer.
Here is the scenario: our company has an important customer who wishes to access and view some real-time data related to their business.
After some thought we've decided that the ideal platform for the client app is JavaFX (eye candy), the client deployment method is WebStart and we'll provide the data to the client via a SOAP Web Service. Easier said than done it turns out :)
There are a few issues with this set-up.
CLIENT:
The JavaFX client app can be written without major problems (see my previous posts about my beef with JavaFX tools) but I've found it best to create separate Java module to handle the WS communication. This is also useful since Maven doesn't seem to be able to build mixed source trees. Therefor the client app is composed of two separate JARs:
- Java library to handle WS client code generation and some utilities that are easier written in Java
- JavaFX GUI client that depends on the Java library
SERVER:
Simple enough Web Service deployed on GlassFish v2.1 JavaEE 5. Nothing special to note here.
DEPLOYMENT:
This was one of the trickiest parts. Since we have a number of servers (dev, test, stage, production, etc.) and we want a client which is downloaded from a specific server to connect to the WebService running on that same server. This we achieved by using a servlet to dynamically generate the JNLP file for the WebStart deployment. The servlet plugs the correct values into the JNLP for two things:
- where the client jars are located (i.e. codebase)
- a run-time property for the client specifying the WS location
The client (once launched) uses the WS location property to connect to the correct web service.
The servlet gets this information from system properties which can be easily set using the GlassFish web admin console. This means that we compile the code once and deploy it to any GlassFish server and all works well as long as we don't forget to add the two properties to the server.
Posted by
Zero Effort
at
Wednesday, September 16, 2009
1 comments
Monday, August 31, 2009
More JavaFX impressions
So I have been using JavaFX for about 2 weeks now. I am working on commercial application for a client and now that I am more familiar with both tools and language I think it's a good time to post an update.
Tools still suck - no surprise here :) but they suck even worse in Eclipse than in NetBeans so even though my workplace is an Eclipse shop we're using NetBeans for our JavaFX development. I've had a quick chat with David Kaspar, a friend of mine and one of the developers who are currently working on JavaFx tools at NetBeans and he told me that Sun is aware of the situation and it is about to improve, so FX support NetBeans 6.8 should be much better.
I really hope so because the language is awesome and despite everything I do enjoy working in it.
Posted by
Zero Effort
at
Monday, August 31, 2009
0
comments
Tuesday, August 04, 2009
First JavaFX impressions
In my job I've been playing around with some pretty cool and new technologies lately. This gave me the opportunity to write a a WPF based video player (with some very client specific functionality) in C# in just about a month. Coming from Java background with no prior .NET experience at all, it was quite an accomplishment. But it is not simply a credit to my genius but mostly to the tools that were available to me: Visual Studio with ReSharper. As occasional IntelliJ user I was soon very comfortable and pumping out code like nobodies business. As a SWING developer used to working with NetBeans forms editor I found the XAML editor fairly intuitive.
This brings me to my JavaFX experience. I've been assigned the task of evaluating technologies for a new UI project. I am currently down to either SWING or JavaFX, and while I would really love to use JavaFX there is a single major reason that is making me very hesitant:
Lack of Good Development Tools
While I love the demos that I downloaded for JavaFX I am sorely disappointed with the available tools. It's kind of sad really, since most of my old colleagues at Sun who used to work with me on Mobility support are working on JavaFX support now. I know many people on that team and they are some of the smartest most capable developers. Something must have gone very wrong along the way because at the time of writing this I personally find the JavaFX support in NetBeans to be an embarasement. The most basic features are missing from the editor which makes it a major pain to work with (source formatting, cut/paste imports, automatic imports while typing, auto-completion is of mark at times, etc. etc.). This makes it very difficult for me to be productive with the language from the start. Sun has been pushing JavaFX hard because it does enable some very cool UI magic but I wish they put as many resources into making it usable to developers thus speeding up adoption.
I will continue to play around with JavaFX and I hope that in the end I'll find that I can live with (and remain productive with) it's current tool set.
Posted by
Zero Effort
at
Tuesday, August 04, 2009
0
comments