what is the use of TELUGU_SCRIPT flag in blackberry java & how to use this
Related
How to create a class dynamically in a Blackberry project that uses Eclipse plugin?
My requirement: Suppose on click of a button a new class with a given name should be created. Methods and fields should be added and
then I should make use of that class
object. Is this possible in Blackberry?
Below are the steps I have done.
Get third party jars like ASM, javassist
Try to use them in project
but, I am getting verification errors when deploy to the device. So, is there a native api in RIM or any other alternative?
BlackBerry Java does not support the full set of reflection capabilities that you would expect in Standard Java (J2SE).
So, you won't be able to dynamically create a class, add methods, and then call them.
For the most part, BlackBerry is Java 1.3. If you tweak your development environment, you can get access to some newer features at compile time. But, in terms of the runtime code, you're limited to 1.3.
Javassist is based on Java APIs that don't exist in the 1.3 runtime that BlackBerry has, so it won't be of much help :(
Hopefully, someone else will chime in, but I don't know that this is something that's possible on BlackBerry Java.
I want to know how can i use the datagram socket class which is provided by java.net package in blackberry. I tried to use it but it the compiler is not able to find the java.net package.
You've confused Java-SE with Java-ME. BlackBerry devices do not run the full desktop Java. The language is close to Java 1.3, which was released around the year 2000. The APIs available are intentionally cut down, to save on device storage. Specifically, it looks like you want to use java.net.DatagramSocket, but as you've noticed, that isn't available for Java-ME BlackBerry devices. Instead, you should use the Connector class to create a DatagramConnection
Is there any way to compile BlackBerry Java code for different sections using eclipse ?
There is a class named LocationInfo available in BB version OS 6.0 onwards.
I get a compilation error if try to compile for OS 5 (because LocationInfo is
not defined)
But if I compile my code for OS 6, I wont be able to deploy on any 5 based devices.
I want to my code base to be of version 5 and support the methods of Locationinfo (which is available only in 6.0 onwards).
Is a sectional compile possible or is there any work around for this ?
Thanks
Try the BlackBerry preprocessor
Coding for Multiple Blackberry Devices - Using Preprocessor Directives in Eclipse
The OP wanted to know whether there was a way to a class available in os 6.0 , in an os 5.0 device. The blackberry processor does help in creating builds for different versions, but doesnt answer the question. The OP would like to know whether there is the blackberry equivalent to androids "Support Package" or the "Compatibility package" which allows to use APIs that are not available for older platform versions.
Sorry , but there is no similar package on blackberry which you can use to address your issue.
You will have to use blackberry pre processor and then develop features for different devices based on the os they provide. Later OS's will have more apis you can play with, so you can implement better features on those. In earlier OS's you are stuck with using the restricted set of api methods, and hence some features may not be implemented on those.
Hope this helps
Is it possible to convert Symbian code into Blackberry?
if possible tell me the procedure
you cannot use c++ code in j2me. but, you can write a symbian application that listen a port. then you can connect to that port in j2me. so you can pass some task from j2me to symbian. I didnt try it, but I think this is possible.
How can i develop BlackBerry JRE independent java code for an application. Here we have so many types of JREs for blackberry so i would like to run my code in all versions without having code modifications. For example, in iphone we use preprocessor statements to avoid versioning problem like that do we have any alternatives?
Thanks
venu
There is a preprocessor for BB as well. See the docs for how to use it.