mercoledì, 26 marzo 2008

When you develop a J2ME application for the BlackBerry you might see that a "Close" command is in the menu even if you never added it.

That's because the operating system of the BlackBerry add this command automatically. To avoid this behaviour you have to add a your command of Command.EXIT type to the screen:

Command myCommand = new Command( "My label", Command.EXIT, 1)

In this way the default command will be replaced by your "My label" command.


Did you like the article? Buy me a coffee!

postato da: emanuelepec alle ore 20:48 | Permalink | commenti
categoria:tipsandtricks, j2me, blackberry


domenica, 23 marzo 2008

1 - 2


It could be larger the victory of Juventus against Inter but at the end the "Bianconer" have risked to draw a match already won.

After a first half where the two teams studied each other, Juventus has started better the second half scoring the first goal with Camoranesi (in a not seen offside position) and then the secondo one with Trezeguet after a nice assist of Del Piero.

Del Piero himself missed twice the chance to close the match (thanks also to the good save of the Inter's goalkeeper, the Brazilian Julio Cesar) and Inter came back to the match thanks to Maniche (who replaced Julio Cruz). The same player hitted the post in the last action so Juventus could start the celebration for this victory waited two years after the scandal Calciopoli which have seen it plays in second league (Serie B).

Inter sees now Roma (that won 2-1 versus Empoli) only four points back and the race to the league is again open at 8 games to the end. Juventus is at third place with nine points over Milan (5th place) with good chances to play in Champions League next year.

Inter:
Julio Cesar 7; Maicon 5,5; Burdisso 4,5; Materazzi 5; Maxwell 5,5; Stankovic 5; Zanetti 6; Chivu 5,5; Jimenez 6; J.Cruz 5,5; Ibrahimovic 5,5. Balotelli s.v., Maniche 6,5; Suazo 6.

Juventus:
Buffon 6,5; Grygera 6; Le Grottaglie 6; Chiellini 6,5; Molinaro 6; Salihamidzic 6,5; Camoranesi 7,5; Sissoko 7; Nedved 6; Trezeguet 6,5; Del Piero 6. Nocerino s.v.; Iaquinta s.v.

Inter 68
Roma 64
Juventus 58
Fiorentina 53
Milan 49
Sampdoria 47
Udinese 46




Did you like the article? Buy me a coffee!

postato da: emanuelepec alle ore 22:26 | Permalink | commenti
categoria:calcio, serie a, juventus, inter


giovedì, 20 marzo 2008

Surprisingly, Lazio stops the following of Roma to Inter winning the serie A big match of yesterday.
 
The first score is for Roma with Taddey that (luckly) deflect into the goal a kick of Behrami.

Lazio equalizes a few minutes before of the interval thanks to Pandev after a good move of Rocchi and Kolarov.

In the second half the second goal of Lazio with a penalty scored by Rocchi after a fault of Juan to Rolando Bianchi. After few minutes, Perrotta scores the 2-2.

When everyone thinks about a draw, Behrami takes advantage of a Rocchi's cross and scores the final 3-2.






Did you like the article? Buy me a coffee!

postato da: emanuelepec alle ore 21:33 | Permalink | commenti
categoria:calcio, roma, lazio, serie a


giovedì, 20 marzo 2008

When you run your j2me application on your emulator and everything works fine you think you are almost at the end of your fatigue but it is there that the "pains" could start.

The next step is try your midlet on a real phone maybe trying to download it from a web server using your GPRS/UMTS connection.

You have to prepare your public web server to support the provisioning of the jad and the jar files adding the correct mime types:


application/java-archive jar
text/vnd.sun.j2me.app-descriptor jad

At that point you can write the url in your phone's browser and starts the process. If all is ok you can run your application in your phone after few seconds.

If no, you can get error messages (to be honest sometimes not very clear) that can say that something went wrong during the download/installation process ("Invalid file", "File not supported" or something else depending on the implemetation of the phone).

I'll try to list a few possible causes such in a way you can use to debug easily your problem. Some of the common causes for the failures are:

- The jad file contains values for MicroEdition-Configuration or MicroEdition-Profile jad properties which are not supported by the phone (values is CLDC-1.1 for MicroEdition-Configuration but your phone is CLDC-1.0);
-The jad specifies a values for the MIDlet-Jar-Size property that doesn't correspond to the real size of the jar;
-Some properties present in the jad file have different values in the jar file (that shouldn't happen if you use automatic tools for the building and packaging like WTK, EclipseME or NetBeans but you can experience them using ANT or J2ME Polish)
-You are using some Optional Package which are not supported by your phone;
-The size of the jar is too big for your phone (some devices have a limit for the size of the midlet);
-Your download process involves a redirect that is not supported by the phone's browser.


 


Did you like the article? Buy me a coffee!

postato da: emanuelepec alle ore 21:23 | Permalink | commenti
categoria:bug , tipsandtricks, j2me


sabato, 15 marzo 2008

Forum Nokia Logo

This bug is reported by forum.nokia.com in their "Knowledge Base" section.

Some key codes are not reported through the keyPressed(), keyRepeated(), and keyReleased (
methods of the Canvas class on a normal, non-full screen Canvas. This applies especially to the left, middle (when present), and right softkeys. Those are only reported back to the above key-capturing methods on full-screen Canvas instances.

The MIDP 2.0 specification says:

For some devices the keys used for commands may overlap with the keys that will deliver key code events to the canvas. If this is the case, the device will provide a means transparent to the application that enables the user to select a mode that determines whether these keys will deliver commands or key code events to the application.

This does not happen on all tested devices.

The tested devices are
Nokia 6301, Nokia 6555, Nokia N95, Nokia E61i. The families affected are S40 5th Edition (and FP1) and S60 3rd Edition (and FP1 and FP2) .



Did you like the article? Buy me a coffee!

postato da: emanuelepec alle ore 10:27 | Permalink | commenti
categoria:bug , nokia, j2me


domenica, 09 marzo 2008

Stemma JuveGrygera and Trezeguet give the win to Juventus in the 27th day of the Serie A.

Great match for Grygera who assist the French striker for the second score as well as score one.

No chance for Genoa in the match until the first Juventus' goal.

Trezeguet have reached the top of the scorer ranking with 16 goal (togheter with Genoa striker Borriello).

Next match for Juventus against Napoli. Fiorentina (in Florence) for Genoa.

Inter 64
Roma 58
Juventus 51
Fiorentina 47
Milan 46
Udinese 40
Sampdoria 39







Did you like the article? Buy me a coffee!

postato da: emanuelepec alle ore 22:23 | Permalink | commenti
categoria:genoa, calcio, serie a, juventus


Blogs Directory