Must be signed with the RIM Runtime Code Signing Key (RRT) - example of code bar

Hi, when I try to start the bardcode example in my device (9780 Smartphone), I get

"Error starting BarCodeApp: Module 'BarCodeApp' must be signed with the RIM Code Signing Key (RRT) DURATION.

The only class I have in my project is:

import java.util.Hashtable;
import java.util.Vector;

import net.rim.blackberry.api.browser.Browser;
import net.rim.blackberry.api.browser.BrowserSession;
import net.rim.device.api.barcodelib.BarcodeBitmap;
import net.rim.device.api.barcodelib.BarcodeDecoder;
import net.rim.device.api.barcodelib.BarcodeDecoderListener;
import net.rim.device.api.barcodelib.BarcodeScanner;
import net.rim.device.api.command.Command;
import net.rim.device.api.command.CommandHandler;
import net.rim.device.api.command.ReadOnlyCommandMetadata;
import net.rim.device.api.system.Bitmap;
import net.rim.device.api.system.KeyListener;
import net.rim.device.api.ui.Field;
import net.rim.device.api.ui.Keypad;
import net.rim.device.api.ui.UiApplication;
import net.rim.device.api.ui.XYEdges;
import net.rim.device.api.ui.component.BitmapField;
import net.rim.device.api.ui.component.Dialog;
import net.rim.device.api.ui.component.EditField;
import net.rim.device.api.ui.component.LabelField;
import net.rim.device.api.ui.container.FullScreen;
import net.rim.device.api.ui.container.MainScreen;
import net.rim.device.api.ui.decor.BorderFactory;
import net.rim.device.api.ui.toolbar.ToolbarButtonField;
import net.rim.device.api.ui.toolbar.ToolbarManager;
import net.rim.device.api.util.StringProvider;

import com.google.zxing.BarcodeFormat;
import com.google.zxing.DecodeHintType;
import com.google.zxing.common.ByteMatrix;
import com.google.zxing.qrcode.decoder.ErrorCorrectionLevel;
import com.google.zxing.qrcode.encoder.Encoder;
import com.google.zxing.qrcode.encoder.QRCode;

/***
 * Barcode API Sample
 * 

* This application demonstrates the most common use of the Barcode API: 1) * Creating and displaying a QR code, 2) Scanning a QR code and opening the * browser pointing to that URL. It could be easily modified to scan/create * other kinds of barcodes, or do other things with the scanned/created barcode. * * @author PBernhardt * */ public class BarcodeAPISample extends UiApplication { //This controls how big barcode we will display is to be private static final int BARCODE_WIDTH = 300; // This is the app itself private static BarcodeAPISample _app; // Errors will be logged here private LabelField _logField; // The main screen which holds the toolbar and displayed barcode private MainScreen _mainScreen; // The barcode is displayed here private BitmapField _barcodeField; // The text stored here is converted into a barcode by the user private EditField _barcodeTextField; // This controls the scanning of barcodes private BarcodeScanner _scanner; // This screen is where the viewfinderf or the barcode scanner is displayed private FullScreen _barcodeScreen; public BarcodeAPISample() { // New screen _mainScreen = new MainScreen(); // Create the log field so it can be used in this constructor _logField = new LabelField("Log: "); // Create the place-holder for the barcode image and add it to the main // screen _barcodeField = new BitmapField(new Bitmap(BARCODE_WIDTH, BARCODE_WIDTH), Field.FIELD_HCENTER); _barcodeField.setBorder(BorderFactory.createBevelBorder(new XYEdges(2, 2, 2, 2))); _mainScreen.add(_barcodeField); // Create and add the field to store the barcode contents _barcodeTextField = new EditField("Barcode text: ", "http://devblog.blackberry.com"); _mainScreen.add(_barcodeTextField); // Add "display barcode" and "scan barcode" toolbar buttons /** * This is a quick example of the new (in 6.0) * net.rim.device.api.command package and the * net.rim.device.api.ui.toolbar package. All it does is invoke the * displayBarcode() or scanBarcode() method when you click the * corresponding button. For more details on this package, see the * JavaDocs or elsewhere in the Developer Resource Center */ ToolbarManager toolbar = new ToolbarManager(); ToolbarButtonField displayBarcodeToolbarButtonField = new ToolbarButtonField(new StringProvider("Display")); displayBarcodeToolbarButtonField.setCommand(new Command(new CommandHandler() { public void execute(ReadOnlyCommandMetadata arg0, Object arg1) { displayBarcode(); } })); toolbar.add(displayBarcodeToolbarButtonField); ToolbarButtonField scanBarcodeToolbarButtonField = new ToolbarButtonField(new StringProvider("Scan")); scanBarcodeToolbarButtonField.setCommand(new Command(new CommandHandler() { public void execute(ReadOnlyCommandMetadata arg0, Object arg1) { scanBarcode(); } })); toolbar.add(scanBarcodeToolbarButtonField); _mainScreen.setToolbar(toolbar); // Add the log field to the bottom _mainScreen.add(_logField); pushScreen(_mainScreen); } // Simply create the the app and enter the event dispatcher public static void main(String[] args) { _app = new BarcodeAPISample(); _app.enterEventDispatcher(); } /** * displayBarcode *

* This method will take the text in the _barcodeTextField, convert it into * a QRCode and display it on the main screen. It could be easily modified * to use a different barcode format or to get the text from somewhere else. */ private void displayBarcode() { try { QRCode qrCode = new QRCode(); // This encodes the text with a low level (%7) of error correction Encoder.encode(_barcodeTextField.getText(), ErrorCorrectionLevel.L, qrCode); // From there we get the actual data matrix and convert it into a // bitmap ByteMatrix barcode = qrCode.getMatrix(); Bitmap bitmap = BarcodeBitmap.createBitmap(barcode, BARCODE_WIDTH); _barcodeField.setBitmap(bitmap); } catch (Exception e) { log("Exception: " + e); } } private void scanBarcode() { // If we haven't scanned before, we will set up our barcode scanner if (_barcodeScreen == null) { // First we create a hashtable to hold all of the hints that we can // give the API about how we want to scan a barcode to improve speed // and accuracy. Hashtable hints = new Hashtable(); // The first thing going in is a list of formats. We could look for // more than one at a time, but it's much slower. Vector formats = new Vector(); formats.addElement(BarcodeFormat.QR_CODE); hints.put(DecodeHintType.POSSIBLE_FORMATS, formats); // We will also use the "TRY_HARDER" flag to make sure we get an // accurate scan hints.put(DecodeHintType.TRY_HARDER, Boolean.TRUE); // We create a new decoder using those hints BarcodeDecoder decoder = new BarcodeDecoder(hints); // Finally we can create the actual scanner with a decoder and a // listener that will handle the data stored in the barcode. We put // that in our view screen to handle the display. try { _scanner = new BarcodeScanner(decoder, new MyBarcodeDecoderListener()); _barcodeScreen = new MyBarcodeScannerViewScreen(_scanner); } catch (Exception e) { log("Could not initialize barcode scanner: " + e); return; } } // If we get here, all the barcode scanning infrastructure should be set // up, so all we have to do is start the scan and display the viewfinder try { _scanner.startScan(); _app.pushScreen(_barcodeScreen); } catch (Exception e) { log("Could not start scan: " + e); } } /*** * MyBarcodeDecoderListener *

* This BarcodeDecoverListener implementation tries to open any data encoded * in a barcode in the browser. * * @author PBernhardt * **/ private class MyBarcodeDecoderListener implements BarcodeDecoderListener { public void barcodeDecoded(final String rawText) { // First pop the viewfinder screen off of the stack so we can see // the main app _app.invokeLater(new Runnable() { public void run() { _app.popScreen(_barcodeScreen); } }); // We will use a StringBuffer to create our message as every String // concatenation creates a new Object final StringBuffer message = new StringBuffer("Would you like to open the browser pointing to \""); message.append(rawText); message.append("\"?"); log(message.toString()); _barcodeScreen.invalidate(); // Prompt the user to open the browser pointing at the URL we // scanned _app.invokeLater(new Runnable() { public void run() { if (Dialog.ask(Dialog.D_YES_NO, message.toString()) == Dialog.YES) { // Get the default sessionBrowserSession BrowserSession browserSession = Browser.getDefaultSession(); // Launch the URL browserSession.displayPage(rawText); } } }); } } /*** * MyBarcodeScannerViewScreen *

* This view screen is simply an extension of MainScreen that will hold our * scanner's viewfinder, and handle cleanly stopping the scan if the user * decides they want to abort via the back button. * * @author PBernhardt * */ private class MyBarcodeScannerViewScreen extends MainScreen { public MyBarcodeScannerViewScreen(BarcodeScanner scanner) { super(); try { // Get the viewfinder and add it to the screen _scanner.getVideoControl().setDisplayFullScreen(true); Field viewFinder = _scanner.getViewfinder(); this.add(viewFinder); // Create and add our key listener to the screen this.addKeyListener(new MyKeyListener()); } catch (Exception e) { log("Error creating view screen: " + e); } } /*** * MyKeyListener *

* This KeyListener will stop the current scan cleanly when the back * button is pressed, and then pop the viewfinder off the stack. * * @author PBernhardt * */ private class MyKeyListener implements KeyListener { public boolean keyDown(int keycode, int time) { // First convert the keycode into an actual key event, taking // modifiers into account int key = Keypad.key(keycode); // From there we can compare against the escape key constant. If // we get it, we stop the scan and pop this screen off the stack if (key == Keypad.KEY_ESCAPE) { try { _scanner.stopScan(); } catch (Exception e) { log("Error stopping scan: " + e); } _app.invokeLater(new Runnable() { public void run() { _app.popScreen(_barcodeScreen); } }); return true; } // Otherwise, we'll return false so as not to consume the // keyDown event return false; } // We will only act on the keyDown event public boolean keyChar(char key, int status, int time) { return false; } public boolean keyRepeat(int keycode, int time) { return false; } public boolean keyStatus(int keycode, int time) { return false; } public boolean keyUp(int keycode, int time) { return false; } } } /*** * log *

* Writes a message to an edit field for debug purposes. Also sends to * STDOUT. *

* * @param msg * - The String to log */ public void log(final String msg) { invokeLater(new Runnable() { public void run() { _logField.setText(_logField.getText() + "\n" + msg); System.out.println(msg); } }); } }

My request is properly signed and work very well in the Simulator.

Thanks in advance.

Solved.  http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800901/Support_-_Sign...

Tags: BlackBerry Developers

Similar Questions

  • Error with the Code of execution of RIM signing Key (RRT)

    Hello

    I changed my request but,

    When I try to run my program, I get an error stating:

    Error at startup MyProgram: Module "MyProgram" to be signed with the RIM Code Signing Key (RRT) DURATION.

    I can help with this question.

    Additional information:

    BlackBerry JDE 4.5.0

    JDK 1.6.0

    Device: BlackBerry 8320

    Thank you

    I do not understand your question.

    Any program accessing a secure API requires the signatures to run on the device (it's OK on the Simulator). They keys are available from the RIM for $20.

    Once you have the key, you can sign all applications you develop for the platform of BB.

    You can order the keys here:

    http://NA.BlackBerry.com/eng/developers/javaappdev/codekeys.jsp

  • Error Blu - ray: 'invalid operation', Code: "19", note: "attributes main video stream must be compatible with the playList.

    Hello

    I can't create a Blu - ray folder or Blu‑ray Image with my project.  Whenever I click on Build, I get this error:

    Purpose of Blu - ray: "< timeline > Untitled chronology", error: "invalid operation", Code: "19", note: "attributes of the main video stream must be compatible with the playList.

    I created my .m4v file and .wav files in Adobe Media Encoder using the H.264 Blu - ray built-in HDTV 1080 p 23.976 high quality.  I also tried to create several variants (encoded Dolby Digital audio, tried the HDTV 1080 p 24 high quality preset).  No matter what I still get the same error above.

    I only have a basic (no movement) menu, but I tried to remove it and still get the error.

    Still isn't my files and I want to keep it this way if possible and use the best rendering of SOUL of transcoding capabilities.  The only change I make for the presets of SOUL must enable VBR 2-pass and use maximum render quality.  Who should not cause the issue?

    I searched the forums and did not find anything.  Someone suggested to restart yet, but that did not help.

    Any suggestions?

    Thank you

    Graham

    I finally got the Blu - ray folder created.  I imported my original uncompressed AVI again and let the transcoding.

    So, the moral of this story is that still did not like the pre-transcoded from Adobe Media Encoder files.  Your suggestion on the audio being a slightly different length as the video could be a possible cause, if SOUL actually creates files with this problem.

  • How to remove a specific email inbox with the client application code?

    Hello

    How to remove a specific email inbox with the client application code?  Please suggest useful links.

    Advanced thanks.

    Concerning

    Sunil.G

    Your question is a bit broad, so it is difficult to give you details.

    First of all, you must have the ID of the original message. Usually, you get either by hanging the message when he came into the Inbox (by implementing FolderListener), or by retrieving a list of mail of enamel "Store".

    Once you have this message ID, you call Folder.deleteMessage ().

    Here, there is a laboratory of Developer:

    http://NA.BlackBerry.com/eng/developers/resources/Labs/listeningforemail.jsp

    Moreover, classes to look in the API of reference:

    Store

    Folder

    FolderEvent

    FolderListener

    Session

    ServiceConfiguration

    Message (message RIM, not the J2ME)

  • Windows Update error "windows update location must be replaced with the default windows location."

    Original title: Failed to automatically / thru fixit updated windows installation (another) indicates both failed 1 of 5. It says windows update location must be replaced with the default windows location

    XP86 running. Recently had installed the additional memory. Microsoft Update icon never goes away - seems like if 1 of 5 updates usually install on a group. Keep trying to install updates (even those) again and again. Sometimes we will not install and then moved the next time, he's trying to install the same updates, another a group. Worked through say fixit and details window update location must be changed to windows default = - but did not say how.

     

    Hello

    Have you tried Microsoft Fix - it?

    See the following article:

     

    Important: this section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base:

    http://support.Microsoft.com/kb/322756/

     

    You cannot install some programs or updates

  • Install Microsoft SQL Server 2005 Express edition service pack 4 (KB2463332) fails with the 0xD59 error code

    Computer tried to install the automatic update for SQL Server 2005 pack 4 (KB2463332) fails with the 0xD59 error code

    Hello Rich Boetsch,

    Please ask your question in the forums SQL Server within TechNet they manipulate all server related issue.

    See you soon

  • I tried to update my new S3 Galaxy and some updates succeeded with the exception with the error 800F020B code.

    What does the acronym for error 800F020B code?

    I tried to update my new S3 Galaxy and some updates succeeded with the exception of
    one with the error 800F020B code. It holds until the completion of the update. Help, please
    as I'm not in the computer. Thank you

    If the update is for your 3 contact your telephone service provider or Samsung Galaxy.

  • Get "I/o Error" with the 0x8078002A error code when I start a backup.

    * Original title: IO Error Message - I am an amateur

    When I start a backup of my hard drive to my external hard drive, I get an error that reads "I/o Error" with the 0x8078002A error code.  I am a real novice.  I can do either fix it or work around this problem?

    Hello

    Welcome to the Microsoft community.

    Try the steps in these articles:

    Error message when you try to perform a full backup on a Windows Vista-based computer: "" the request could not be performed because of an i/o device error".
    http://support.Microsoft.com/kb/952272
    Note: It is applicable for Windows 7 as well.

    Perform a clean boot:

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7
    http://support.Microsoft.com/kb/929135
    Note: After a repair, be sure to set the computer to start as usual as mentioned in step 7 in the Knowledge Base article.

  • How to combine code C++ of Cascade with the native C code in a project?

    Purpose: Using C++ Cascade camera video sample with native C sensor log.

    and function by using Cascade C++ user interface with native C detection function.

    Problem: After putting code of Cascade C++ native code C, the library shows unresolved inclusion.

    Question: How do I combine code C++ of Cascade with the native C code in a project?

    Minimal code:

    #include
    #include

    #include 'printf.h.

    #include
    #include
    #include

    #include "hellovideocameraapp.hpp".

    to: bb::cascades:Application;

    int main (void) {app app (argc, argv);

    New HelloVideoCameraApp (&app);)

    Return app.exec ();

    printfhw();
    printf ("Hello new %d", hwnum);
    Return EXIT_SUCCESS;
    }

    You just add the header and call the function as you would normally call a C in C++ function.

    You will need to provide clarification as to what you are trying to accomplish.  In its current form it looks like you want to run C code in an application of cascades.  You are more that welcome to do so, there is nothing to stop you.

    Waterfalls of projects are default C++ projects.  You do not even need to use QML and can do everything straight c++.

    Cascades IS C++ and C and C++ get along very well, so the answer that was given to us.

    We cannot give exmamples because all you need to do is create a new project of cascades in the IDE and it will generate the default files for you who are C++.  Just add your headers and other whatnot and start coding.

  • Random BSOD with the following error code: 0 x 00000116 whenever I'm in a game.

    For some time now, I have random BSOD with the following error code: 0 x 00000116 whenever I'm in a game.
    I tried to update the video drivers, rolling back to an older version of the driver, even reinstall windows and without having to install anything else except the video driver (without windows updates) I went and started a game(APB:Reloaded) one played for a while and he always gave me this JUDGMENT. I'm out of ideas.
    The machine that I use windows with is an Ace Aspire 5750 G laptop.
    The specifications are the following:
    Intel i5 - 2410 m with Intel HD 3000 (time, 83 all in game).
    NVIDIA GT540m (time, 76 while gaming),
    8 GB of ram.
    I took a picture of the BSOD and uploaded to Skydrive, link here: https://skydrive.live.com/redir?resid=AB28B2FD7DC5BA0E! 196 & authkey =! AF849R6EMQvYixs

    Hello

    Unfortunately I'm not surprised at all symptoms you described.

    As I said above:

    My main concern is that the material side of the issue is rooted in the video to verify that
    as much as you can. And of course it can still be heat related.

    Do not forget to ask in the Nvidia Forums (and support) to see if others have the same
    sort of problems with this video card.

    Rob - SpiritX

  • What is the maximum number of characters that a 2D barcode can have with the symbology PDF417 Matrix? How to solve the problem of code bar having too much data?

    What is the maximum number of characters that a 2D barcode can have with the symbology PDF417 Matrix? How to solve the problem of code bar having too much data? I'm incorporating data of the bar code under a button field. But when the data is large, the problem occurs.

    Apparently the theoretical capacity of the PDF417 barcode is 1850 characters or numbers in 2710. Of course, the actual capacity depends on the size - more square inches, more data. But before the theoretical limit, that you can reach practical limits in scanning technology so test carefully with all models of planned barcode scanner.

  • Flash CS6 does not not create an .app file when I output as application with the embedded runtime

    I'm looking to create an application with the embedded runtime, but the process keeps failing without raising an error. More precisely: in settings of the Air, I select output as follows: Application with the runtime shipped. When I build this way, Flash tells me that he created the Telepath tactical - Steam.app...

    AIR building error.png

    .. .but no never .app file really does appear in the folder:

    Files Created.png

    This happens regardless of what I included in the library path and default binding settings. (When I say that it out as follows: Windows install, on the other hand, the appropriate exe file opens without problems.)

    I use Flash Professional CS6 v. 12.0.0.481 on Windows 7, 64-bit.

    So, I found this one: this problem was caused by an old .fla (original created in Flash CS4 or something like that) that had been converted over time to be compatible CS6. Recreate the .fla from scratch in CS6, corrected the problem.

  • Please can someone tell if I can use my creations with the tool shape in Photoshop, commercially for example on t-shirts? [was: on]

    Please can someone tell if I can use my creations with the tool shape in Photoshop, commercially for example on t-shirts. Thank you.

    Yes.  No problem.

    [EDIT]  I decided to qualify that.  No problem with forms that come standard with Photoshop, but just about every logo, symbol of the brand, can be downloaded in two vector forms and brush presets.  It would be another story, obviously if you have used this kind of work, but you knew I'm sure.

  • Must be hyperlink with the tracking code of project edge, does not

    I used the URL to test inserted on the invisible elements "hot spot" in my animated project of edge that have been opening up fine in the browser. Now I need to update these URLs with the path of the syntax, but when I change sides (replace the URL in the control panel actions of this element) and then run the animation in the browser, the link does not open.

    Any ideas or suggestions?

    Too bad, the URL itself had quotes which needed to be removed; Once this has been done the URL is opened correctly.

  • Update Windows again me that there are 11 important to install updates. It fails with the error 80070490, Code and Code 80073712.

    Original title: update Windows problem on Vista 64-bit

    My Windows Update repeat me that there are 11 important to install updates. It fails whenever I have try running with 80070490, Code and Code 80073712 error.

    I tried the Windows analysis tool, the difficulty it tool Microsoft and the web site Microsoft Fix It I have have also run a registry cleaner and that he would follow the instructions of Microsoft to solve the problem of Windows Update by editing the registry, but I get 'Access denied' when ordering fast, even though I checked all permissions.

    The updates are:

    Update for Windows Vista for x 64-based systems (KB972145)
    Update for Windows Vista for x 64-based systems (KB2633952)
    Security Update for Microsoft .NET Framework 2.0 SP2 on Windows Vista SP2 and Windows Server 2008 SP2 for x 64 (KB2572075)
    Update security for Windows Vista for x 64-based systems (KB2564958)
    Update for Windows Vista for x 64-based systems (KB970430)
    Update security for Windows Vista for x 64-based systems (KB2378111)
    Windows PowerShell 2.0 and WinRM 2.0 for Windows Vista for x 64-based systems (KB968930)
    Update for Windows Vista for x 64-based systems (KB2345886)
    Update security for Windows Vista for x 64-based systems (KB967723)
    A security update for .NET Framework 3.5 SP1, Windows Vista SP2 and Windows Server 2008 SP2 for x 64 systems (KB2518866)
    Security Update for Microsoft .NET Framework 2.0 SP2 on Windows Vista SP2 and Windows Server 2008 SP2 for x 64 (KB2633874)

    I realize that these are not critical updates, but am concerned that, if there is a problem with the update, it will not refresh the critical updates either.

    Any help would be greatly appreciated. Thank you.

    Etherlass

    Hello again,

    Thought I would let you know that I've finally sorted this! :)

    In another forum I read a post from someone who had a similar problem and solved it by uninstalling the "failures" updated, restart the PC and then re-run the update. It worked! It had not occurred to me to try what I've assumed that 'impossible' meant that they had not installed at all, not that they didn't had simply not installed correctly and must have become corrupt.

    I hope this will help someone else who has the same problem, I've had!

    Best wishes

    Etherlass

Maybe you are looking for