Tagged: java me Toggle Comment Threads | Keyboard Shortcuts

  • pit 1:04 pm on January 25, 2009 Permalink | Reply
    Tags: , , image reflection, , java me, ,   

    J2ME Images: how to create a reflection effect 

    It’s surely time for some new J2ME tutorial, so this article will explain how to create a nice reflection effect starting from a simple Image.

    You can see the final effect, as usual, on the emulator page: J2ME Image reflection in action.

    Source code

    1. Method declaration

    Let’s start by our method declaration:

    public static Image createReflectedImage(Image image, int bgColor, int reflectionHeight)

    We have 3 arguments:

    • the original image that we want to reflect
    • the background color (used for transparent images)
    • the height of the reflection effect

    2. The mutable Image

    Now, let’s create the mutable Image that will hold the resulting effect:

    int w = image.getWidth();
    int h = image.getHeight();
    Image reflectedImage = Image.createImage(w, h + reflectionHeight);

    We store the original image width and height into 2 int variables, and then create the mutable image with the same width, but with an height equal to h (the original image) plus the specified reflection height.

    3. Copy the original Image

    Now, first drawing steps are:

    1. Getting the Graphics object of our mutable image
    2. Filling the image with the background color
    3. Drawing the original image on the upper part of the mutable one
    Graphics g = reflectedImage.getGraphics();
    g.fillRect(0, 0, w, h + reflectionHeight);
    g.drawImage(image, 0, 0, Graphics.TOP | Graphics.LEFT);

    4. Create the reflection effect

    Now, let’s get to the important part of this tutorial, that is the reflection effect itself:

    • for each horizontal line of the reflected image part, take the corresponding vertical coordinate of the original image
    • get the RGBA data of the corresponding horizontal line of the original image
    • calculate the alpha to be applied to this line, and apply it to each element of the RGB data array
    • draw the RGB data into the reflected image, by using its Graphics object

    And here is the source code:

    int[] rgba = new int[w];
    int currentY = -1;
    for(int i = 0; i < reflectionHeight; i++)
    	int y = (h - 1) - (i * h / reflectionHeight);
    	if(y != currentY)
    		image.getRGB(rgba, 0, w, 0, y, w, 1);
    	int alpha = 0xff - (i * 0xff / reflectionHeight);
    	for(int j = 0; j < w; j++)
    		int origAlpha = (rgba[j] >> 24);
    		int newAlpha = (alpha & origAlpha) * alpha / 0xff;
    		rgba[j] = (rgba[j] & 0x00ffffff);
    		rgba[j] = (rgba[j] | (newAlpha << 24));
    	g.drawRGB(rgba, 0, w, 0, h + i, w, 1, true);

    as you can see, the rgba[] int array holds the current pixel row data, and will be refreshed only when necessary (so, when the y coordinate of the original image changes).

    Sample usage

    Using the above method is really simple, since it’s only necessary to:

    1. Create the original Image
    2. Call createReflectedImage() method by passing the original Image as argument, together with the background color and the reflection effect height
    Image originalImage = Image.createImage("/cap_man1.png");
    Image reflectedImage = ReflectedImage.create(originalImage, bgColor, 64);


    You can download the complete source code of this article here:

    Vote this article!

    If you liked this tutorial, feel free to vote it on Forum Nokia Wiki: How to create an image reflection effect in Java ME

    • ion 9:51 am on February 5, 2009 Permalink

      hi.. nice code

      could you help me how to draw a “Justified” Paragraf in canvas…. please !!

  • pit 10:53 am on January 11, 2009 Permalink | Reply
    Tags: , , gcal update, , , , java me   

    Gcal update: version 0.2 released! 

    NEW: check out the new Gcal 0.3 version!

    Holidays are gone, but gifts are not! So, here’s a big update to Gcal, the J2ME Google Calendar client: version 0.2 is available for download!

    Thanks to your precious support and feedback a lot of improvements and bug fixes have been done: thank you all (and please don’t stop :) )!

    New features of this version include:

    • Check for updates and auto-update features: you can now manually check for updates, or switch on auto-updates (from Settings screen) to always get the latest Gcal releases!
    • More control over events: delete, duplicate and copy an event from a calendar to another in a snap!
    • Comments: It’s now possible to add and view comments for an event
    • More event details: event visibility (private/public) and available/busy status now available when creating an event
    • Map viewing: different types of maps have been added, so you can now switch among satellite/terrain and other views
    • Sending an event, with his details, via SMS

    Important bugs fixed in this release:

    • Character encoding: terrible lack of first versions, character encoding should now correctly work
    • Wrong time when creating/showing events, with some timezones
    • Events order sometimes scrambled
    • Wrong login error messages: now, different types of errors are correctly handled
    • Calendars filter sometimes resetted without changing the account
    • Different types of errors and Exceptions when receiving events (e.g.: on Nokia S40 devices)

    Many other minor fixes have been done, so it’s highly recommended to upgrade your Gcal to 0.2 version. As always, for any kind of feedbacks or bug report, please leave a comment here :)

    • Jack 12:34 pm on January 13, 2009 Permalink

      Still having problems on the INQ1. The app loads fine, and I enter my details, but it gives the error: ‘There was an error while loading calendar data’.

    • Rich G 5:40 pm on January 14, 2009 Permalink

      Great app! I’ve been looking for a j2me google calendar app for quite some time.

      I have a suggestion:

      For those of us who would (either by choice or policy) like to use the application on a blackberry instead of Google Sync, could you provide key mapping to the numeric keypad?

      Something like:
      2 = up
      8 = down
      4 = left
      6 = right

      • = left soft key
      1. = right soft key

      I ask because my 8130 can emulate the left soft key, but can’t figure out how to emulate the right soft key .


    • pit 10:54 pm on January 14, 2009 Permalink

      Hi all!

      @Jack: unfortunately I have not an INQ1 device to test on. Anyway, I’ll dig more into this problem and let you know.

      @Rick: thanks for your appreciation! You’re right: BlackBerry key mapping is not perfect right now. I’ll try to integrate your precious hint into next Gcal versions.

      Thank you all!

    • Rich G 7:04 pm on January 16, 2009 Permalink

      A follow up on my earlier suggestion:

      The absolute easiest way to implement bb support (and isn’t the easiest usually the best) is to trap the right convenience key (keycode: -19) in addition to the other right soft key keycodes on other devices.

      You already trap the bb left convenience key with keycode -21 ;)


    • Mads 7:39 pm on January 19, 2009 Permalink

      Very useful app. Maybe I’m just blind, but is there any way to show more than one day at a time? If not, that’s my number one suggestion for additions.

      I’d love to be able to see one week at a time, either Monday-Sunday or starting with the current day. One month as well would be stellar. I’m not necessarily looking to see every detail of every event for every day, just something like a small mark showing that there are events scheduled for that day would be great. Then the user could go to the specific day for details.

    • pit 10:25 am on January 20, 2009 Permalink

      Hi all!

      @Rich: thanks for the hint! Will surely use it for the next Gcal version :)


    • Yukone 9:42 am on January 21, 2009 Permalink

      Loading error too for me. I have a lg secret. What a pity. :(

    • Julie 11:44 am on January 26, 2009 Permalink

      I’ve just realised there’s another missing function that I use a lot: the ability to copy a calendar item.

      Typically, I’ve just completed an appointment, and book a repeat one for another day.


    • pit 11:50 am on January 26, 2009 Permalink


      @Yukone: I must get some Lg phones to do some tests. Meanwhile, can you please specify where you get the loading error?

      @Julie: the item copy feature is available in version 0.2. When you are in event detail view, just click “Options” -> “Actions”: there you have both “Copy to calendar” and “Duplicate” functions, that should be what you’re looking for :)


    • Julie 7:44 pm on January 26, 2009 Permalink

      Apoliges Pit. I missed the option under edit for duplicating.


    • Yukone 12:38 pm on January 27, 2009 Permalink

      It gives me loading error when trying to load calendar data

    • pit 12:59 pm on January 27, 2009 Permalink


      @Julie: no problem at all :)

      @Yukone: thanks for the feedback, I’ll dig into this and let you know

    • Steve 10:50 am on January 29, 2009 Permalink

      Program is great but all my appointments are showing as ‘all day’ and not showing the appointment times. Am I doing something wrong or do I need to configure something ?

    • aston 7:42 am on January 31, 2009 Permalink

      Blackberry 7290: Error while connection to Google.

      Blackberry 8800:There was an error while loading canlendars data.

      can not use.

    • pit 9:12 pm on February 1, 2009 Permalink


      thank you all for your feedbacks!

      @Steve: it seems like some timezone issues are still there.. can you please tell me your local timezone?

      @aston: BlackBerry is still not yet fully tested (due to lack of devices :)), but next version should be greatly improved this way.


    • aston 5:40 am on February 2, 2009 Permalink

      @Pit Thank you.

      Everyday I come here to see the new version;

    • aston 5:47 am on February 2, 2009 Permalink

      @Pit can u twitter?

      and we can follow u with your new status.

    • pit 10:28 am on February 2, 2009 Permalink

      Hi aston!

      Sure, I’ll post on Twitter future Gcal updates, so It’ll be easier to follow for all :)

      If you’re a FaceBook user, you can also check Gcal page, to be always updated and to share your thoughts and feedback with other Gcal users:


    • aston 7:35 am on February 3, 2009 Permalink

      @Pit waiting the blackberry can use version.

    • Cat 11:01 pm on February 3, 2009 Permalink

      Nice app!

      Unfortunately it also fails with “Error getting calendars data” on my RAZR2. Google’s GMail application works.

      I would be happy to coordinate with you to debug this (I have written J2ME apps before) — just drop me an e-mail.

    • pit 10:06 am on February 4, 2009 Permalink

      Hi Cat!

      Thanks for your feedback. Can you please specify on which exact screen you’re getting that error (e.g.: login/calendar retrieving/events retrieving)?


    • aston 10:10 am on February 4, 2009 Permalink

      When the new version?

    • Danik 4:35 pm on February 5, 2009 Permalink

      Hi there! I’d just so much like to say “Great job!” but sadly the app is for the last few minutes just downloading calendar data so I can’t really appreciate all its functions (dunno if it is my calendar being that big or some strange bug somewhere) but nevermind – I’d like to say at least “Keep up!” This is something I’ve always yearned for :o)

      // I’m using a Nokia E61 / Symbian S60 3rd, should be OK… hope se :o)

    • pit 5:16 pm on February 5, 2009 Permalink

      Hi all!

      @aston: some more days, and it’ll be out ;)

      @Danik: thanks for the feedback! This is effectively a bug, but it has been fixed and will be totally solved by next Gcal version (like said to aston, in the very next few days :)).


    • Danik 8:52 pm on February 5, 2009 Permalink

      :o) then as a programmer I have to say Great job, at least for tracing the bug :oD now seriously, I’ve tried GooSync meanwhile just to see and man, it sucks. The only thing it does is provide a syncing server to sync the internal calendar (which sucks) through the inbuilt Nokia syncing mechanism (which sucks even more)… so I’m looking very much forward to the next release! :o) Thank you and keep rollin’!

    • David Kinlay 10:35 am on February 7, 2009 Permalink

      Every time I try to download GCal (latest version), it causes my phone to crash. Why?
      Can download other midlets.
      Reply asap

    • pit 11:09 am on February 9, 2009 Permalink


      @Danik: thanks :))

      @David: are you trying downloading the MIDlet directly from your device? Which phone are you using?


    • Stefan 10:44 am on February 12, 2009 Permalink

      using GCal 0v2 on a Sony Ericsson K850i – works great.

      Bug found a small annoying bug in the sort order with recurring events.
      Seems like you use the whole date not just the time in your sorting so the recurring events show up prior to one off events of the actual day in the agenda view.
      Example setup:
      1) Recurring daily event, 10:00, event series started 13/02/2009
      2) Single event, 14/02/2009 9:00
      -> on the events overview for 14/02/2009 the recurring 10:00 event is listed first, the 9:00 event second – but it should be vice versa…

      Second issue discovered when playing around with the “Filter calendars” function. Looks like only the first 8 calendars can be (un)selected. the cursor refuses to jump to the 9th item. Maybe device related, didn’t check on other mobiles.

      Nevertheless very good stuff and feels very stable already. Looking forward to the next release ;-)


    • pit 11:07 am on February 12, 2009 Permalink

      Hi Stefan,

      thanks for your feedback!

      About the events order: yes, there’s some problem with recurring events, but it’ll be surely fixed for the next release.

      Second issue is already solved: so, this fix also will be available in next release, that should be during this week :)


    • pascal 2:55 pm on February 12, 2009 Permalink

      Dude this seems like a great app
      I’ve a N73 nokia
      it’s stuck in the Initializing screen,
      I’m trying to reach a mapped calendar

    • Chris 3:57 pm on February 12, 2009 Permalink

      Any chance the new release this week will have the diagnostic mode you mentioned earlier? I am very interested in diagnosing the connection problem with my Helio Ocean, thanks for all the hard work:)

    • pit 4:01 pm on February 12, 2009 Permalink

      Hi Chris,

      this week a new Gcal version will be released, that will include a lot of bug fixes and important new features.

      Give it a try, to see if it solves issues on your Ocean, otherwise I’ll send you a debug version to dig into your specific problems.


    • javil 12:09 am on May 6, 2011 Permalink

      can i use QCal offline in my movile phone?

  • pit 11:55 am on December 27, 2008 Permalink | Reply
    Tags: , , , , , java me   

    Hosted accounts support added to GCal J2ME client 

    Christmas has passed, hope you had a great time! Now it’s time to prepare for New Year’s eve :)

    Meanwhile, here’s the first little upgrade to GCal, the J2ME Google Calendar client: if you use Google Apps with your mapped domain, now you can use your hosted accounts with GCal as well!

    Download GCal v0.1.1 here.

    Edit: this version also fixes a bug with some Nokia S60 3rd edition FP2 devices, who previously got stuck at splash screen.

    • ernesto61 7:12 pm on December 29, 2008 Permalink

      Yes, now it works but every time it is downloading a event, ask the permission. If there are 10 events …ten permits…

      ogni volta chiede l’autorizzazione di protezione se scaricare o no l’evento, è molto fastidioso; c’è un modo per levarlo?

    • pit 10:32 am on December 30, 2008 Permalink

      Hi ernesto,

      to modify permission settings you should follow these steps:

      • from your device menu, choose “Application manager”/”Gestione applicazioni” (usually placed into “Installations”/”Applicazioni”)
      • select “Gcal” and choose “Open”/”Impostazioni”
      • select “Network access”/”Accesso rete” and change it to “Ask first time”/”Chiedi al primo”

      This way, you will have only 1 permission popup per usage session.

      Hope this helps!


    • Kearon 5:49 am on January 8, 2009 Permalink

      First up – Tops job on a handy little app!
      Now here’s a small bug report (maybe)…
      Let’s say I have an appointment on 8:30am Friday. It show correctly on Google calendar, but in Gcal (on my N95) it shows and an all-day event on the day before! This s consist=ant with other ‘morning’ appointments – they show as ‘all-day’ events the day before….but drilling down into each event reveals they actually have the correct time and day data (that is, whats showing in google calendar – it’a all OK)…so it’s something to do with how Gcal is reading and displaying the event. Any ideas? I have all my location settings on Google calendar correct for Sydney, Aust (GMT+10).

    • pit 10:36 am on January 20, 2009 Permalink

      Hi Kearon,

      have you checked latest version (0.2)? It should have solved many problems with timezone. Let me know if it worked for you :)


    • ManojGaur 2:22 am on February 4, 2009 Permalink

      Hello !
      I’ve Sony Ericsson K810i model but Gcal latest version is not working bcoz it accepts only 5digits password for gmail account;while I’ve 6digits password gmail account.

      Pl help.

    • pit 10:09 am on February 4, 2009 Permalink

      Hi ManojGaur,

      this sounds really strange, since password limit is currently set to 255 characters; I use a longer password too, and it works on tested devices. :-\

      I’ll check if there are some device-related issues or other possible causes, and let you know asap :)


    • Chris 3:46 pm on March 3, 2009 Permalink

      Have you had any progress with a diagnostic version? I would love to get this app working on my Helio Ocean (still having the same connection problem), thanks:)

  • pit 3:44 pm on December 22, 2008 Permalink | Reply
    Tags: , , , , , java me   

    J2ME Google Calendar client! 

    NEW: check out the new Gcal 0.3 version!

    Christmas is rapidly approaching, and it’s time for presents! :)

    For those who have always wanted a Google Calendar client for their Java ME enabled cellphones, it is finally here!

    J2ME Google Calendar

    It’s still an early alpha, but everyone is welcome to try it and give feedbacks.

    Features of this first release include:

    • calendar filtering
    • events creation
    • event searching
    • events location map viewing

    And here are some screenshots:

    Daily events

    Calendars filter

    Calendars filter

    Event creation

    Event creation

    Event location map

    Event location map

    Date selection

    Date selection

    Event search

    Event search

    Settings screen

    Settings screen

    For all requests, feedbacks and bugs please leave a comment to this post :)

    Release notes

    Compatibility issues:

    • Some Nokia Series60 1st and 2nd edition devices have problems in handling HTTP redirects: I’m working on a fix, that will be available in a future GCal release
    • You must specify your account name without the ‘@gmail.com’ part, otherwise authentication will fail (an automatic check will be added in the next release): you can now specify ‘@gmail.com’ part in your account name, and authentication will fail no more. Also, if you’re using a mapped domain with Google, you can now use your hosted account data as well.
    • Salim Hbeiliny 11:02 am on December 24, 2008 Permalink

      Not working with me, I tried a gmail account and a google apps account, both gave an username/password error.
      I’m using N95 over WIFI

    • Wael Nabil 11:42 am on December 24, 2008 Permalink

      Dear pit,
      great work you do..i have problem trying it on my E71 as it always give me wrong username/password
      and i am sure they are right..
      notice: i login with same information of my gmail account.


    • Wael Nabil 11:52 am on December 24, 2008 Permalink

      Thanks its work pit….nice work..
      usability is excellent.

    • pit 4:03 pm on December 24, 2008 Permalink

      Hi all,

      thanks for your precious feedback!

      @Salim: you should specify the account name without the ‘@gmail.com’ part (I know it’s not clear right now :)). Have you tried this way? If problem persists, please let me know.

      @Wael: was the problem related to the ‘@gmail.com’ part in the account name? Anyway, glad to know it works now :) Let me know if you have some other problems!


    • Salim Hbeiliny 10:55 am on December 25, 2008 Permalink

      Yes, without the @gmail.com it works. As a web developer, I have previously worked with google’s authentication API, it’s very easy to implement both google and google apps accounts authentication, hope you will support this in future version.
      Anyway, very useful app, keep up the good work :)

    • carlo 12:11 pm on December 26, 2008 Permalink

      the program did not start on N79. it stop at the first screen (http://www.jappit.com/images/blog/uploads/GCal_splash2.gif), hope this can help development

    • ernesto61 3:48 pm on December 26, 2008 Permalink

      It does’nt work on my n96.

    • pit 10:45 am on December 27, 2008 Permalink

      Hi all!

      @carlo: does it stop since first execution, or after some usages? Also: does the loading bar block after a while, or does it continue to run indefinitely?

      @ernesto61: can you please provide more details about the problems you have on your N96?

      Thanks again for all your precious feedbacks!


    • pit 4:14 pm on December 27, 2008 Permalink

      About the bug with devices stuck at splash screen: version 0.1.1 should have solved it :)

      Please let me know if the problem persists on some devices!

    • Thomas Gehring 11:01 am on December 28, 2008 Permalink

      just installed it on a N 82 and it works great.
      Are you planning to implement a month and week view?

      Greetings from Germany

    • ernesto61 9:25 pm on December 28, 2008 Permalink

      niente si impalla fin dalla prima esecuzione nel senso che la barra non va avanti, non si carica, l’installazione è perfetta ma il programma non si esegue.

      it does not work since the first execution; the bar does not go forwar.
      The software does not charge itself;
      the installation is perfect but the program does not run.

    • Dan Din 8:50 am on December 29, 2008 Permalink

      Works perfectly on the Nokia E90 Communicator’s inner screen and outer screen. Brilliant in every way. Shows me my calendar and others’ calendars. i really like the month view calendar when you hit the “go to” menu – any chance of a shortcut to the “go to” function?

      Regardless – this is great software.

    • pit 4:45 pm on December 29, 2008 Permalink

      Hi all!

      @Thomas: monthly and weekly views are on the wish list, I’ll keep you informed about them!

      @ernesto: have you tried latest v0.1.1 version? It should solve the problem with splash-screen. You can download it here:


      @Dan Din: thanks for your appreciation! Key shortcuts are on the todo list, they’ll be surely included in one of next releases ;)


    • Phil 10:40 am on December 31, 2008 Permalink

      Works great on the Sony Ericsson W880i. I agree, weekly and monthly views would be most welcome. Keep up the good work.

    • Ethan 4:10 pm on December 31, 2008 Permalink

      Now if this had vibration or audible alerts for upcoming events… that would make it very worthwhile for me :D

      Great and useful app tho

    • Michael Vezie 6:12 pm on January 4, 2009 Permalink

      With a Nokia 6555 it loads and lets me log in. Then, when it is loading my calendars, it shows each one saying it can’t access them. Finally after all show that, it gets a NullPointer java/lang/NullPointer Exception and dies. I’m really looking forward to this!!!

    • pit 5:10 pm on January 5, 2009 Permalink

      Hi all!

      @Phil: both the views are definitely on the todo list. Probably not in the next release, but soon..

      @Ethan: good idea, they’ll be surely useful! I’ll get on this asap.

      @Michael: thanks for the feedback! I’m on this right now ;)

      Happy New Year to everyone!

    • Peter 8:49 pm on January 7, 2009 Permalink


      First, thanks for a great free app (works perfectly on a European edition Nokia E71, loading 5 calendars in a heartbeat over wifi at home).

      What I’m still looking for, and can’t find anywhere on the internet, is an app that syncs with gcal but also works offline, that is, it saves the downloaded info somewhere on the phone. Not sure if it’s possible or not for this app, but it would be a great next step. Two way sync (i.e., edit / create entries on the phone and upload to gcal) would also be nice.
      I still haven’t made up my mind how best to sync a work calendar and several google calendars between my work PC, home laptop and E71.

    • Jack 3:35 pm on January 8, 2009 Permalink

      Trying it on the Inq1. Consistently getting the error ‘There was an error while loading calendars data’ after entering username and password and trying to log in. Hitting retry yields the same error. Any ideas?

      This app looks awesome, it’d be great to have it, especially as the Inq1 built in calendar is awful.

    • pit 3:46 pm on January 8, 2009 Permalink

      Hi all!

      @Peter: yes, event synchronization would be a great feature. I’m not working on it right now, but will surely do when the current release is a bit more stable.

      @Jack: a new version with a lot of bug-fixes (and new cool features :)) will be released in the next few days, you can give it a try to check if your issue is properly fixed.


    • KH 8:37 am on January 13, 2009 Permalink

      I noticed GCal has static GMaps support. I’m pretty amazed by this … because I’m working on a project and would like to add GMap access to my J2ME midlet, but have not been able to find sufficient resources online to do so.

      Is there somewhere I should be looking to learn the official API for Google Maps Mobile? Any help here would be appreciated.


    • Chris 10:37 pm on January 14, 2009 Permalink

      haven’t been able to get GCal to work properly on my Helio Ocean (Pantech PN-810). The v0.2 version shows “Error while connecting to Google” instead of the previous invalid Username / Password message. Looks like a great application, hope to get it working soon, thanks:)

    • pit 11:02 pm on January 14, 2009 Permalink

      Hi all!

      @KH: you could try taking a look at Google Static Maps API. Feel free to ask if you have any doubts ;)

      @Chris: login error messages have been fixed in version 0.2, so yours is most probably a connection/network issue. Unfortunately I have not a Helio Ocean device to perform some tests, but I’m planning to release a debug Gcal version to help to fix this kind of issues.


    • Magnus Dunker 12:05 am on January 16, 2009 Permalink


      Been waiting for this for a long time :)

      I have a samsung L700 and can login but i allways recieve a ‘There was an error while loading Calender data’

      Hope this will be fixed.

    • Chris 3:06 am on January 16, 2009 Permalink

      Thanks Pit, sounds great, I would be glad to do some tests with a debug version when you have one, looks like a great app:)

    • Julie 3:45 pm on January 16, 2009 Permalink

      Keep up the good work! I hope this is the right place for feedback (if not, please let me know what is).

      I’ve been waiting for a decent gCal application for my Nokia E90 (S60 3rd edition), and this looks like it’s it. I love the fact that you automatically pick up my colour choices for each of my calendars, so they have the same colours as on my PC.

      I have a lot of separate Calendars in gCal (between 20 and 30). Some are created by me and shared with others; Some are created by others and shared with me; Still others are subscriptions to (e.g.) iCal calendars with Sports fixtures (e.g. Formula 1 race info).

      First a bug: In Filter Calendars, I can select the first 19 to include or exclude, but after that moving theD-pad down simple scrolls the list without selecting a tick box. (This means that gCal is spending a LOT of time trying to receive info from calendars, e.g. the 2006, 2007 and 2008 F1 seasons) Where I KNOW it’s not going to find any current data, but I can’t exclude them. So far, it hasn’t actually retrieved any data for today, and it’s been trying for several minutes.)

      Second, a feature request: Please could gCal only display a Calendar name/heading *IF* it finds entries for that day. Most of my calendars are quite sparse, so my screen gets filled up with headers with no data, making it difficult to see entries that do exist. Sometimes I have to scroll down to page 2 of my list to see the only entry for today.

      A second bug: With this version, I always get asked twice for my Access Point when connecting. I don’t THINK that was the case with 01.1


    • pit 10:44 am on January 20, 2009 Permalink

      Hi all!

      @Magnus Dunker: unfortunately I have not a Samsung L700 to reproduce your issue. Anyway, I’m planning a debug version that will help to solve all these issues. So, stay tuned!

      @Chris: I’m just working on it ;)

      @Julie: yes, this is the right place for feedbacks. First, thanks for your appreciation!
      About the checkbox issue: I have to do some more tests to reproduce it, but It should be most likely fixed in very next Gcal release.
      About the hidden empty calendars: yes, this can be surely useful for users with many calendars, so expect this also to be done really soon ;)
      About the Access Point popup: previous versions should have the same behavior, and this is due to the different protocols used by the app itself (http/https), so it seems it cannot be avoided :(

      Thanks again for all your great feedbacks!


    • Krishna 7:33 pm on February 1, 2009 Permalink

      I get he following error on Sony Ericsson W910i when I try to login.

      “There was an error while loading calendars data”. Any help to fix this?


    • pit 9:14 pm on February 1, 2009 Permalink

      Hi Krishna,

      thanks for your feedback. The calendar loading issue has been reported from other users too, and should be fixed from next Gcal version, that will be available in next days.


    • Krishna 3:31 am on February 3, 2009 Permalink

      Thanks pit for your prompt reply. Will keep checking here for an updated version.

    • Jorge Ledesma 11:11 pm on February 8, 2009 Permalink

      Hello and congratulations on a greatly needed application. I love having all my google calendars loaded on my mobile(nokia e71)but my only issue is that, the Gcal is constantly asking you for permsission to access the internet, it would be cool if it only asked you once. There is an app called twibble mobile(j2me)that handles the pop-ups really well it only asks you once and then it populates your twitter feeds. If Gcal had a similar setup it would be great.


      1. Automatic updates ie. every 1 hour, 2 hour, 4 hour

      It would be awesome

      Thanks in advance,

      • Jorge
    • pit 11:16 am on February 9, 2009 Permalink

      Hi Jorge,

      thanks for your appreciation!

      To have the connection popup shown only once you have to manually modify permission settings of Gcal. You can do it this way:

      1) go (from E71 main menu) into “Applications” -> “Application Manager” -> “Installed apps.”
      2) select Gcal and, from the Options menu, select “Settings”
      3) in “Network access” select “Ask first time”

      Unfortunately, this process cannot be automatized, and users need to do it manually.

      If you have any other doubts please tell me :)


    • Ardelsal 3:48 pm on February 22, 2009 Permalink

      Ho provato a scaricare sul mio mtorola A1000 il programmma, ma una volta installato non si avvia, probabilmente il problema è sempre quello dell’HTTp redirect!!! Spero che il bug venga risolto al più presto.

    • pit 1:09 pm on February 24, 2009 Permalink

      Ciao Ardelsal,

      grazie per il feedback. Farò test approfonditi sull’A1000 al più presto, di modo da poterti dare info più dettagliate :)


    • AFGTO 10:10 am on March 12, 2009 Permalink

      Hi there!
      I’m having the wrong username issue since upgrading to 0.3.2 on a w880i (even without thé @gmai.coml part)
      … ?
      Thanx for helping !

    • Aaron F 8:57 pm on March 13, 2009 Permalink

      I tried putting this on an Samsung M800 (instinct) but when I try to log on, there is an error and it exits the app. Looks like a great app though

    • Troy o 3:28 pm on March 24, 2009 Permalink

      Hello, Downloaded v0.3.3 and worked fine on my Samsung Instinct…then upgraded to v0.3.4 and I receive an exception 400 error. Tried to reininstall v0.3.3 and now i get a wrong username/password error. Any ideas would be greatly appreciated. Thanks

    • Irek 8:45 am on March 27, 2009 Permalink


      You have made a great job! This application is extremely handy! I especially like the possibility to save meetings locally on my phone.

      I have discovered one small bug. I live in the Netherlands and my phone is set the timezone of Amsterdam (GMT+01). The same is set in the Google Calendar. When I create a new event using the GCal today (March 27th) everything goes OK. Unfortunatelly when I create an event next week (for example April 1st) then the created events are shifted one hour! Event at 8:00 becomes 9:00! This both in Google Calendar and the event saved locally on the phone. Must have something to do with daylight saving time which is starting this weekend?

      Greerings, Irek.

    • Aus00 12:48 am on April 5, 2009 Permalink

      Great job, guys! One problem I’ve got on my Nokia 6500 is that all events show as “All Day” events even when they’re not. Also, similar issue to Irek re timezone out of sync. I’m in Adelaide, AU (+9.30) and all my events appear on Google Calendar as set to GMT rather than local time.
      Cheers aus00

  • pit 10:57 am on December 4, 2008 Permalink | Reply
    Tags: animated gif encoder, gif encoder, , , java me   

    J2ME Animated GIF encoder 

    Here’s a free implementation of an animated GIF encoder for Java ME. This class is actually a porting of the original Java version, available here.

    Download J2ME AnimatedGifEncoder here.

    Usage is quite straightforward, and it requires these steps:

    1. Instantiate your AnimatedGifEncoder object
    2. Start it, by passing an OutputStream as argument (e.g.: a ByteArrayOutputStream)
    3. Add your Image objects by using addFrame() method
    4. Finalize it by calling finish()
    ByteArrayOutputStream bos = new ByteArrayOutputStream();
    AnimatedGifEncoder encoder = new AnimatedGifEncoder();
    return bos.toByteArray();

    As for the original version, code is free for any kind of usages, but you must refer to the Unisys LZW patent for restrictions on use of the associated LZWEncoder class.

    • ds 7:55 am on December 11, 2008 Permalink

      Thanks! Very useful!

      Have just given it a go and it works like a charm.
      The only thing is I seem to be able to get much smaller images when I save from photoshop.

      Have you any idea if the LZW compression is working properly? The file size I am getting now is just a tad bit smaller in bytes than I have total pixels. On the other hand photoshop, or php for that matter reduces this to 1/5.

      Thanks again!

    • Sajid 10:44 am on August 12, 2011 Permalink

      Hey hi, How to use this J2ME Animated GIF encoder in J2ME Application, please tel me.

  • pit 11:59 am on October 31, 2008 Permalink | Reply
    Tags: alfa mito, , java me, mms composer   

    MitoClip Mobile: new Java ME client to compose mobile clips. 

    I’m finally back from flu (what a week!), just in time for a newly released Java ME app!

    Named “MitoClip Mobile”, it’s the mobile version of the tool provided on http://www.alfamitoclip.com: it allows users to create short clips by combining icons of multiple categories, and then to send their creations to friends via MMS.

    Want to try it out? Just follow the download link on alfamitoclip.com:

    Select your device:

    And you’re ready to compose!

compose new post
next post/next comment
previous post/previous comment
show/hide comments
go to top
go to login
show/hide help
shift + esc