New in BlackBerry Developer aplications

Hi all! I'm new in the development of BlackBerry and I have a question:

API of witch I can use to get the imei of the device? How can I use?

Thanks for all! And I want to apologize for my bad English...

If you had read the API, you might find a method:
public static String imeiToString (byte [] imei)
Converts the value of the International Mobile Equipment Identity (IMEI) in a string.

You can try to use in conjunction with
public static byte [] getIMEI()

not very surprising to see gibberish, if you try to use the method toString to a byte array.

Tags: BlackBerry Developers

Similar Questions

  • Problem with the BlackBerry Developer Site

    We are currently experiencing a problem with the integration of BlackBerry ID with the BlackBerry Developer web site.  This prevents the developers to create a new BlackBerry ID Token, connecting Issue Tracker and Developer area and potentially other areas that require authentication.  Trying to access one of these pages gives the following error.

    Sorry, there is a problem with the page you are trying to reach and it cannot be displayed. Please try again later.
    

    Teams are trying to solve the problem.  We apologize for the inconvenience.

    The problem has been resolved.  You should now be able to connect Issue Tracker and generate BlackBerry ID chips again.

  • BlackBerry development

    Hi guys I'm new to the development of blackberry applications. Ihad develop applications using the html5 with angular. My dough is that blackberry will accept the apk for submission?

    If you have developed applications HTML5, you can package it with Cordova or our tools WebWorks to create a direct application of "HTML5" in your source:
    https://developer.BlackBerry.com/HTML5/

    If you have already created Android APK files you want on the port, it is certainly a viable solution as well:
    https://developer.BlackBerry.com/Android/

    You can always give the conversion a quick test to see if it is compatible, or just to measure the interest on our platform for your applications before you convert them to the direct process of WebWorks HTML5.

    You're on what approach to take. What kind of doubts/questions do you have about sending the APK?

  • Problem to connect/disconnect blackBerry Developer Web site

    When I connect to the BlackBerry Developer's Web site (http://developer.blackberry.com) Safari (6.0.4) on my Mac (10.8.3) a bunch of weird files have been downloaded in my downloads folder. File as: GnCYWDHJWbM, UXEt5tfUEdc, etc...

    The same thing happens when I logout on the developer site.

    Is anyone else facing this problem?

    Although we can say that it is corrected now.

    If someone else has the same problem, however, please let me know.

  • New to Java development. Get an error with the Hello World program. Help, please

    Hello everyone. I just started with Java and I would begin to develop applications for Blackberry. I'm trying the HelloWorld application, I found in the book of Apress beginning Blackberry development. Yesterday, I installed:

    (1) jdk-1_5_0_22-windows-i586 - p.exe (32 bit)

    (2) BlackBerry_JDE_5.0.0.exe

    I have everything installed in the default location, what he said and this is the error I get when I try to launch my app:

    Building HelloWorld
    C:\Program Files (x 86) \Research In Motion\BlackBerry JDE quiet 5.0.0\bin\rapc.exe-codename = HelloWorld HelloWorld.rapc warnkey = 0 x 52424200; 0 x 52525400; ' 0 x 52435200 import ="... \Program files (x 86) \Research in Motion\BlackBerry JDE 5.0.0\lib\net_rim_api.jar" C:\BeginningBlackBerryDevelopment\com\beginningblackberry\helloworld\HelloWorldApp.java C:\BeginningBlackBerryDevelopment\com\beginningblackberry\helloworld\HelloWorldMainScreen.java
    I/o Error: CreateProcess: javac - 1.3 source-target 1.3 - g - O-d C:\Users\ADAMSK~1\AppData\Local\Temp\rapc_3d5cd53a.dir - bootclasspath "... \Program files (x 86) \Research in Motion\BlackBerry JDE 5.0.0\lib\net_rim_api.jar"-classpath "...» "Error in \Program files (x 86) \Research In Motion\BlackBerry JDE 5.0.0\lib\net_rim_api.jar" C:\BeginningBlackBerryDevelopment\com\beginningblackberry\helloworld\HelloWorldApp.java C:\BeginningBlackBerryDevelopment\com\beginningblackberry\helloworld\HelloWorldMainScreen.java = 2
    Error while building project

    I don't know why. Can someone help me please? I'm running Windows 7 Ultimate x 64.

    Thank you

    No, you set your ACCESS Windows path variable to include the location where the java compiler is installed, usually the directory "/ bin" where you installed java.

    Mine is located here:

    C:\Program Files\Java\jdk1.6.0_05\bin

    Update the path:

    Control Panel

    System

    Advanced tab

    Click the "Environment Variables" button

    Under "System Variables", look for the path and to update.

  • Z10 blackBerry development mode

    Hello!

    When I go into Settings/Security/Development mode, I can:

    • activate this,
    • specify an IP address for the development,
    • install a token "debug".

    (if I translate well to the french).

    Could someone tell me more about these options?

    Is there a security problem if I try and install the debugging token?

    The token lets connect you the phone via ssh (among a few other things.)  You don't always have root access on the same phone with installed.

    With mode on you can sideload apps debugging, but they must always be signed (by someone with a BlackBerry Developer certificate, which could be you.)  Without development mode on the phone will not allow direct loading of applications via the interface USB at all.

    For purposes of sldeloading, there is no need to install the debugging token.

  • BlackBerry development environment - SDM does not

    Hi all

    I put in place following the BlackBerry development environment.

    1 blackBerry JED 4.7

    2 blackBerry Email and MDS Simulator 4.1.4

    3 blackBerry WebLoader 1.1.0

    If I try to run the MDS through the stand-alone option (Option 2 above). SDM works very well and I am able to access the Internet while browser.

    But if I try to run MDS if the option provided internal JDE (Option 1). SDM is not running. Command window opens for the fraction of a second and then closes. Some how I managed to catch the snap-snap-in error and which is "Exception in thread"main"java.lang.UnsupportedClassVersionError.» Bad Version in .class file number' do not know what the problem is.

    According to my understanding MDS should work in both options.

    Please provide your inputs.

    Thanks in advance,

    Sandeep

    Baiscally the MDS is to simulate the transfer of your data through MDS.

    Well, if your Java version is compatiable with the MDS, avoid any problems for MDS.

  • New to blackberry application development

    Please help how to become developer proffesional... am using the native sdk for qnx.

    Once you go through all the official stuff and you want more... Visit my website: www.BBcascades.com for more samples and tutorials

  • Helps the RichList and managers for a new Blackberry developer

    Hi all, I searched through the blackberry Quick reference Guide as well as the API on get a RichList to work in my application. However, I'm not entirely sure how Managers are used (I'm building my little app using the latest version of the BB SDK, 7.1). Here is my code (Simplified): http://pastie.org/4163177

    Basically, my screen pushes this full screen and it provides a Manager. I did this is because getManager() did not work (getManager() returned null, so I got an error), so I pushed the Director of the screen through. Now my list does not appear on the screen. So my question is: how to use managers, and how do I get my RichList appears?

    using menuManager which was transmitted through my screen:

    using getManger():

    A handler can be added to a single screen.  Try to use your screen in your full screen Manager (or any instance of another screen) will not work.  I recommend reading this guide on the managers. Let us know if you have any questions after checking that.

  • Guide for newbie blackberry developer

    Hi, I am a developer beginner blackberry.

    I would like to ask everyone may be giving me advice for me.

    It is a simple question, I just want to make a unique form like this.

    that I should use listfield or labelfield.

    If you don't mind, appreciated for give me the sample code just for the text current City New York until the RESTAURANT

    Thanks in advance

    Think that you will find what you want here:

    http://supportforums.BlackBerry.com/T5/Java-development/implement-advanced-buttons-fields-and-manage...

  • Call the JavaScript file java class in the native blackberry development.


    What you are looking for is the ScriptableFunction class.

    You can extend the script engine of a JavaScript object name to a ScriptableFunction Java class mapping.  In this example, if you called foo. JavaScript bar(), the BrowserField would facilitate a call to the invoke() method defined in the MyScriptableFunction() class:

    protected BrowserField _browserField   = null;
    _browserField = new BrowserField();
    _browserField.extendScriptEngine("foo.Bar", new MyScriptableFunction());
    

    Then you set your ScriptableFunction class like this and fill it with some Java code, you need.  Note: it only accepts strings as input parameters.

    import net.rim.device.api.script.ScriptableFunction;
    
    /**
     * @description Demonstration of using the ScriptableFunction class added to version 5.0 of the BlackBerry Device
     *              Software
     * @version 1.0
     * @author Adam Stanley, Developer Relations
     * @category BlackBerry BrowserField Development: ScriptableFunction API
     * @see http ://www.blackberry.com/developers/docs/5.0.0api/net/rim/device/api/script/ScriptableFunction .html
     */
    
    /**
     * This class can be used to represent a function in the JavaScript environment.
     */
    public class MyScriptableFunction extends ScriptableFunction
    {
    
        /**
         * User has invoked this ScriptableFunction from the JavaScript engine This example shows how to open the Messages
         * application and create a new message
         */
        public Object invoke(Object obj, Object[] args) throws Exception
        {
            if (args.length == 3)
            {
    
                String param1 = args[0].toString();
                String param2 = args[1].toString();
                String param3 = args[2].toString();
    
                //Do something
            }
            return Boolean.TRUE; //Always
        }
    
    }
    

    Hope that helps.

  • What are the concepts that we should brush upward in java to be a good blackberry developer

    Hi, if I am not new to java and blackberry, but I don't know where to start when an advanced blackberry application is given to me to develop I feel like that because maybe I need to brush the concepts in java more carefully, cannot therefore a whole list important concepts I should know inorder to write any application for blackberry.

    For me, this could be the list:

    (1) thread

    (2) networking

    (3) vector and manipulation of tables

    (4) exception management

  • A few questions for the first blackberry development

    Hello

    First of all, my apologies for this being placed in the Java section, it seemed, the nearest section of what it is, but please move if need be.

    We have an application in development for the iOS platform that uses some geolocation and Web services.  We believe that we should have a version for the blackberry also platform, so we're looking in this evolution.  However, not being not to developers or users of blackberry, the different options for creating an application are quite overwhelming.  My questions are the following:

    (a) what language (Java?) is the most compatible?  Ideally, we would like to write the backend once, don't have to change the interface for devices of the curve through to the new playbook.  Java is also based on all of these devices?  None of us have any idea of Adobe Air, this is probably out of the question.

    (b) what are the operating systems are supported by what?  The curve I picked up seems to have Blackberry OS5 on it.  All operating systems support Java everything too, and whose support wifi location and cell tower map (the curve does not have a GPS unit).

    (c) I understand that during the development in Java there is a blackberry UI api, that's fine.  However, what version of Java is supported?  Is - this SE6, or we are talking about mobile Java here?

    (d) distribute the Apps.  The Blackberry App World seems to be the best route.  Do most people use?  It seems that the Blackberry is not restricted like iOS devices in how applications can be distributed.  Is there any other App stores (e.g. Amazon for Android?).  I guess it would be silly not not to enumerate the BB App World.

    Thanks in advance, any help is much appreciated.

    S.

    It is a really difficult game of questions.

    (a) Yes is the short answer.

    The long answer involves noting that the PlayBook does not directly support Java, and development platforms only available to this end are currently Adobe Air and Web works.  I can't give you a good explanation, since I dabbled only in them, but in summary,

    (a) with Web works you are essentially creating a Web application using HTML and JavaScript, with some JavaScript interfaces to the native operating system

    (b) air seems to me be in another development environment where screens and treatment are defined in a "Scripting" language that runs on the device.

    Work Web development is possible on the current BlackBerry phones as well, although I have no idea how compatible the two are - in other words how much you would have to change to a PlayBook Web app works works on the Palm and vice versa.

    I suggest you ask a similar question in the forums for these two platforms and see what they say.

    Anyway, there is a train of thought that phones current based Java will stop at some point, and phones will become based QNX, as PB.  So right now, if you want to learn something, then Web works.  But the works Web will be able to do what you want?  I don't know, but I don't know that Java is.

    But whatever the customer, you should be able to write the backend once.  Everything should speak http towards it.

    (b) there is not a BONE by device. Most devices come out with only one level and can be upgraded, usually at the next big release.

    Take a look at this good:

    http://us.BlackBerry.com/developers/choosingtargetos.jsp

    OS 5.0 in theory supports the location of the cell tower.  I say in theory because I never had to work in the United Kingdom.  But I have not tried very hard.  In my view, WiFi is available in the OS 6.0.

    (c) blackBerry support J2ME, with a significant number of extensions.  Think of it as Java 1.4 without all the useful bits, but the then RIM tried to add their useful in bits.

    (d) cannot speak for others, but BB App World is all I use.  Tried another one and didn't get anywhere.  YMMV.

    I hope this helps.

  • Need help breaking into Java/BlackBerry development / this sample project

    I have a ton of experience OO, but I am new to Java and I am trying to enter development for BlackBerry, and my first problem is being stuck with this defective sample app that comes w/Eclipse or JDE or something (they call it "CityInfo"). When I run the Simulator, I see the drop-down list box, but by selecting its members does nothing, and I don't know enough about the environment/language to understand why.

    I installed all the packages that are free. They are Eclipse (I can't find a version number), JDE, the Java plugin for Eclipse and the BlackBerry JDE 4.3 to 4.7 components Packages.

    And when this has been resolved, perhaps someone can show me a good set of sample applications with tutorials. I'm trying to follow http://supportforums.blackberry.com/rim/attachments/rim/java_dev@tkb/9/1/Writing_Your_First_Applicat... but it's not compatible w / the environment that I run.

    Here is the code for the project CityInfo:

    package com.mycompany;

    Net.rim.device.api.ui import. *;
    Net.rim.device.api.ui.component import. *;
    Net.rim.device.api.ui.container import. *;
    Net.rim.device.api.system import. *;
    Net.rim.device.api.i18n import. *;

    Import net.rim.device.api.ui.UiApplication;

    SerializableAttribute public class CityInfo extends UiApplication {}

    public CityInfo() {}
    pushScreen (new CityInfoScreen());
    }

    /**
    @param args
    */
    Public Shared Sub main (String [] args) {}
    CityInfo PAP = new CityInfo();
    theApp.enterEventDispatcher ();
    }

    }

    final CityInfoScreen class extends form {}
    Private InfoScreen _infoScreen;
    Private ObjectChoiceField choiceField;
    private int select;

    public CityInfoScreen() {}
    Super();
    LabelField title = new LabelField ("town Information Kiosk", LabelField.ELLIPSIS)
    | LabelField.USE_ALL_WIDTH);
    setTitle (title);

    Add (new RichTextField ("cities"));

    Choice of String() = {"Montreal", "Waterloo", "Ottawa"};
    choiceField = new ObjectChoiceField ("select a city", choice).
    Add (choiceField);
    }

    public boolean onClose() {}
    Dialog.Alert ("Goodbye!");
    System.Exit (0);
    Returns true;
    }

    _viewItem private MenuItem = new MenuItem ("other info", 110, 10) {}
    public void run() {}

    Store the index for the city that selects a BlackBerry device user

    Select = choiceField.getSelectedIndex ();

    Create an instance of the screen that displays information about the city that
    the BlackBerry device user selects

    _infoScreen = new InfoScreen();
    UiApplication.getUiApplication () .pushScreen (_infoScreen);
    }

    };
    private MenuItem _closeItem = new MenuItem {("close", 200000, 10)
    public void run() {}
    onClose();
    }
    };

    protected void makeMenu (menu Menu, for example int) {}
    menu. Add (_viewItem);
    menu. Add (_closeItem);
    }

    private class InfoScreen extends form {}
    public InfoScreen() {}
    Super();
    LabelField lf = new LabelField();
    BasicEditField popField = new BasicEditField ("Population:", null, 20, Field.READONLY);
    BasicEditField stateField = new BasicEditField ("Province:", null, 20, Field.READONLY);
    BasicEditField sightsField = new BasicEditField ("sites:", null, 50, Field.READONLY);

    Add (LF);
    Add (new SeparatorField());
    Add (popField);
    Add (stateField);
    Add (sightsField);

    If (select == 0) {}
    lf.setText ("Ottawa");
    popField.setText ("3,694,820");
    stateField.setText ("Ontario");
    sightsField.setText ("Parliament");

    } ElseIf (select == 1) {}
    lf.setText ("Waterloo");
    popField.setText ("2,896,016");
    stateField.setText ("Ontario");
    sightsField.setText ("University of Waterloo");
    } ElseIf (select == 2) {}
    lf.setText ("Montreal");
    popField.setText ("8,008,278");
    stateField.setText ("Quebec");
    sightsField.setText ("Saint - Joseph Oratory");
    }
    }
    }
    };

    Hi and welcome to our forum!

    1. When you select item in your ObjectChoiceField nothing happens in terms of user interface. You must press menu and select "Details". Try it!
    2. Check out this http://docs.blackberry.com/en/developers/?userType=21
  • New review of Developer - Visual Studio 2010 professional

    I am very new to develop and would appreciate your help. I have developed using Visual Studio 2008 under an educational license and is now looking to develop a commercial application.

    I am looking to buy Visual Studio 2010 professional, but want to clarify some important points:
    (1) is a license automatically included to purchase produce a commercial application that can be sold worldwide (small scale)
    (2) Visual studio 2010 Professional allows a request to be released in a stand-alone executable file? because my educational version required for each computer to have a version of visual studio to run
    (3) Visual Studio 2010 professional does allowing databases to be created, held online and accessed/updated form to update several points at the same time? It is the function of SQL server?
    I would be very grateful for any help, cheers,.
    Tom
    p.s. I've struggled to find an appropriate forum to put this in so if someone can point in the right direction id appreciate it

    Hi TomKK_123,

    The question you posted would be better suited in the following forums:
    http://social.msdn.Microsoft.com/forums/en-us/categories

Maybe you are looking for

  • How to use iphone headphones 7 on mac?

    Hello I wonder how I'll be able to use my iphone headphones 7 with my computer? In the box provided with the phone, the included adapter allows me to my phone compatible with ropes to the... However, the adapter does not work in reverse order to allo

  • Qosmio G30 - HDD2 not found after replacement

    The lack of HARD drive capacity, I replaced drive HARD n ° 2 (drive D :) on my Qosmio G30 with a bigger (640 GB instead of 200 GB).The startup is going well, Windows 7 starts immediately. But the HDD is not shown in the 'Computer' window (the replace

  • HP Pavilion Sleekbook 15-b105la PCI Device driver

    Hi my laptop is a HP - Pavilion 15-b105la, I have installed window 8.1 pro, but I had a problem with a PCI device driver that is missing, please provide necessary driver link and suggestions, thaks in advance! the device name of the BIOS: \_SB. PCI0.

  • We Build wave error when make it executable

    Hi guys,. It is a long shot, since I don't have much to go off in addition to a very vague survey error. The Details area looks like this: Click on the link below to visit the Application Builder support page. Use the following as a reference: Error

  • Outlook Express in Windows XP SP3 edition. My incoming emails started to go directly in my deleted items folder.

    I use Outlook Express in Windows XP Service Pack 3. several weeks ago, some of my incoming emails began to go to my Inbox deleted instead of my box. All shippers are in my Contacts List.Why is it? Cam original title: the Emails given erroneous instru