I wrote a small demo a few days ago, but it has been running on the simulator and has never been installed on a mobile phone for testing. That night, I suddenly wanted to install the demo on my mobile phone and test it. So I copied the. Jad and. COD files under the Eclipse project directory to the memory card. However, when I open the. JAD file on my mobile phone, a window pops up on the mobile phone screen, which means that this program uses some sensitive APIs and must be signed before it can run on the mobile phone.
I have read some materials about sensitive functions, which are used to protect the security of mobile phones. When the software has broken loops or exposes users' private information, rim will block this account.
At that time, my interests swept away, and I felt that I could not do it anymore. Otherwise I would have to buy a signature, or I would have to ask someone else to sign the signature. Both of these are not simple tasks. My friend asked me if I could solve the problem on the Internet. Unfortunately, there are not many people doing BlackBerry development in China, so don't mention the solution. It is quite convenient for foreign users to buy, so they are too lazy to do this. $20 is not much, but it cannot be spent. There are no relatives or friends in the United States.
If you want to buy a signature, you must use a credit card that can pay for the international currency. It is not difficult to do it yourself, but you cannot write a Chinese address at the time of purchase. What does this mean ?! Do not buy.
Finding someone to sign on behalf is even more painful. Can someone look for a signature on a forum? But no one replied, and I don't know if I found it.
...
...
Continue to wander around the Internet. See the signature Installation Introduction, which is in build-> request signatures. After I open it, I found that there are many not required, which means that these COD do not need signatures. I don't know what APIs in my program need to be signed?
So I created a project in BlackBerry jde, copied the source file from eclipse to the project, and then added the source file to the project, directly build (that's good, you don't have to set anything, it is a pity that it is not easy to use, alas ~). Copy the information in the output file and click "display. getwidth ()" to obtain the screen width (). At that time, I knew the screen width of the mobile phone. It is better to directly use the width value as the return value.
After thinking about this, you can build it again without finding the signature required.
After the changes are made in eclipse, the heartbeat is slowly accelerating during the build process.
Copy the Jad and COD files to your mobile phone and install them...
Run...
After the interface came out, haha, shouted out accidentally. I don't even want to be so excited at the time.
Later, I saw the j2's API in net_rim_api.jar. This rim should be less restrictive. Therefore, if you do not want to sign a signature, you can first try to implement the same function in other ways. Secondly, you can use the j2's API.
This is reasonable. Pai_^
From: http://blog.csdn.net/wilesilly/archive/2009/07/12/4341959.aspx