Monday, April 19, 2010

Installing Blackberry plugin with eclipse galileo

These steps to follow to install blackberry plugin with eclipse Galileo:

1. Go to Help menu --> Install new software



2. Add site information "http://www.blackberry.com/go/eclipseUpdate/3.5/java" by clicking Add button on the top right.




3. Select Blackberry plugin and required sdk to download. In my case I select sdk 5.o


4. select Next on the install detail dialog box.


5. Accept Licence Agreement and click finish.


6. Enjoy! developing Blackberry Apps with eclipse









sqlite typeless database cause DataType Exception

Sqlite is a type less database. There is no difference if you keep your column type VARCHAR or numeric. It can store both numeric and character value under any type.

Sqlite does not generate any error on wrong typed value assignment to column. So you need to take care about these issues at programming level, especially writing program for small devices.

You will get the error when trying to access this information. For example, I have a column "displayOrder" in my "Component" table. The column datatype is integer. if you did not assign any value in this column while inserting, then Sqlite automatically puts the NULL in that column. and when you access this from

r.getInteger(index)

where r is the row retreived from cursor, then it throws DataType exception, because sqlite treats the NULL is non integer value.