Question

I am trying to port an android app to run on a blackberry 8800. One of the classes makes http requests through apache HttpCore.

I get the following error:

The type java.lang.reflect.Type cannot be resolved. It is indirectly referenced from required .class files

ProjectFoo-BBerry/src/com/projectfoo/ws/rest/ProjectFooClient.java (line 1)

Is reflections not available on the blackberry? Is there something I need to enable in eclipse? I have not programmed extensively in Java.

Was it helpful?

Solution

Reflection isn't available on J2ME platforms. Look for another way to accomplish your task.

OTHER TIPS

Yes, as Ben noted there are limitations in J2ME and furthermore, the networking and HTTP stacks on BlackBerry devices is somewhat primitive compared to other mobile APIs, in that you have to do a lot of the "plumbing" yourself - selecting transports and configuring them correctly. This is becoming a bit easier with the 5.0 API but most devices are still pre-5.0.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top