Tuesday, June 29, 2010

Mobile Development Tips: Blackberry Application Development

Problem: ButtonField changelistener displays the standard menu (Show Keyboard, Switch Application, Close)

Solution: In the construction of the button field, use the CONSUME_CLICK style.
Eg: ButtonField mybutton = new ButtonField( "My", ButtonField.CONSUME_CLICK );

Monday, June 28, 2010

iphone4 antenna issues

Now that Apple has released iphone4, there are growing complaints from users about the Antenna.

Based on this story, Apple acknowledges the antenna issues.

Apple has responded with a statement:

"Gripping any mobile phone will result in some attenuation of its antenna performance, with certain places being worse than others depending on the placement of the antennas. This is a fact of life for every wireless phone. If you ever experience this on your iPhone 4, avoid gripping it in the lower left corner in a way that covers both sides of the black strip in the metal band, or simply use one of many available cases."

To mitigate this problem, it is best to get one of the cases for the phone. Not only with a case do you guard the phones from drops, but also the reception issue is solved.

Thursday, June 03, 2010

The BASEDIR environment variable is not defined correctly

Solution: in the bin directory, chmod +x *

Maven SureFire Plugin With Multiple Executions

Sometime it is desired to run a set of tests multiple times in the same module. When this need arises, it is best to make use of executions in the sure fire plugin.

Reference: Targeting maven-surefire-plugin to lifecycle phases (turn off "test" phase execution)