You set your boolean result to true, and it should return true, but look where your result can be set to false: in the catch statement of your try-catch block.
Something is throwing an exception, but what? I don't know. Your catch block has the superclass Exception in it -- it will catch everything, and set your result to false, but not tell you which thing is breaking.
You should check the
Java ME API for the details on those methods you are calling. At least one of them is throwing a specific type of Exception that you could
test for.