preload
Mar 02

Recently I had some connection issues with Blackberry Java apps and started investigating how to solve this in a good manner. Blackberry have a special way of handling different network and transport types and this needs to be handled by your app.

To begin with I just created a HttpConnection with the plain URL. While doing so you leave it up to the Blackberry device to try to use its’ default connection. This will work in some situations, but quite often you will see that some Blackberry devices will fail creating the HttpConnection. The solution I describe in this post will check for available network/transport types and add some properties to the URL depending on these. Typically Blackberry will use parameters like deviceside=true etc.

Since Blackberry and connectivity is not my strongest expertise I started the investigation by posting a question to the Blackberry Java Development forum. To begin with I believed this was a problem with Blackberry OS 7 but I later found that it was a more general problem. The forum at Blackberry really blew me away. In matter of minutes I got very detailed and competent answers to my question. I send my regards and a big thank you to the helpful persons at the Blackberry developer forum.

You can view the post with my question at the forum: Connecting to network (HttpConnection) with BB OS 7 devices

Continue reading »

Tagged with:
Nov 08

Finally I found time to start looking at Android development. In the past I have been developing mobile applications on Java ME, Windows Mobile and Windows Phone 7, now it’s time to have a look at the Android platform. In this post I will describe what you need to do to get started with Android development.

At developers.android.com there is a good Quick Start guide explaining step by step what you need to do to get started:

  1. Start with installing JDK 6
  2. Download Eclipse Classic 3.6.1 and unzip it on your disk (I unzipped it to location c:\eclipse) Updated 9th Nov: There are know issues with the ADT plugin running on Eclipse 3.6, so to be safe download Eclipse 3.5. Thank you Robert Peterson for letting me know.
  3. Download Android SDK (for Windows platform in my case) and unzip it on your disk (I unzipped it to location c:\android sdk)
  4. Add the android sdk location to your path
  5. Install the Android Development Tools (ADT) plugin in Eclipse. Remote update/install site: https://dl-ssl.google.com/android/eclipse/
  6. Add Android platforms and components to your SDK by running the SDK Manager. I chose accept all and install, this will give me all available Android platforms and components including Google API, Usb driver, samples and documentation.

You have now installed all you need and you can now follow the steps below to create your Android project and run the application from Eclipse. Once again developers.android.com have a good tutorial on how to create Hello World application: Continue reading »

Tagged with:
Subscribe to my feeds Follow me on Twitter
DZone MVB