How to use the webservice when I or tcp/ip and wifi?

I ran this code on my application for BIS, if possible tcp/ip or wifi connection...

but it always give me null in the conDescriptor

This is the cod

int [] preferredTransportTypes = {TransportInfo.TRANSPORT_TCP_WIFI, TransportInfo.TRANSPORT_BIS_B};

ConnectionFactory factory = new ConnectionFactory();

factory.setPreferredTransportTypes (preferredTransportTypes);

ConnectionDescriptor conDescriptor = factory.getConnection (url);

If (conDescriptor! = null) {/ / connection managed}

int transportUsed = conDescriptor.getTransportDescriptor () .getTransportType ();

Conn = conDescriptor.getConnection () (HttpConnection);
Logger.getInstance () .logInformationEvent ("transport" + transportUsed);

} else {}
Full book sb = ServiceBook.getSB ();
Reviews [] ServiceRecord = sb.findRecordsByCid ("IPPP");
for (int i = 0; i)< records.length;="" i++)="">

If (records [i] .isValid () &! records [i] .isDisabled ()) {}
URL += "& foo = true; deviceside = true; » ;
}
}
URL = HTTPConnections.getUrl (url);
         
Conn = getHttpConnection (url);

}

I've never used the api network in blackberry and AFAIK BIS is available on all blackberry devices.

It shud work...

What shud I do when I'm neither tcp/ip and wifi?

Thanks to advanice

BIS - B is a particular link, you need additional code to support, you will know if you are a member of the Alliance or use the Api to push.  Otherwise, it is not available to you.  You should try WQAP or direct TCP.

See this video which should explain the options.  Then change your favorite types to include TCP, and WAP support.

http://supportforums.BlackBerry.com/T5/Java-development/networking-transports-II/Ta-p/446742

Tags: BlackBerry Developers

Similar Questions

  • How to use the API to perform a "Power on and Force Recustomization" 1.5?

    With the help of VMWare vCloud Director, when the virtual machine is turned off, I have the menu ' power on and Force Recustomization "to turn on the machine and do some recustomization work such that reset the administrator password.

    However, I can't do this using the API. The vm/vapp. PowerOn() has no parameters. The vm/vapp. Deploy (true, 0, true) can (re) deploy the vm/vapp and plugged. But the recustomization never runs.

    My code can update the section "customization of the OS invited." I can see it in vCloud Director. And then if I manually ' power on and Force Recustomization ", the machine will be powered on to reset the password. But if I use the above codes, none of them works. So, I conclude that the problem occurs in the sending of the statement of "Power on and Force Recustomization ' using the API.

    Any help will be evaluated.

    Ref:

    http://communities.VMware.com/message/1691773

    http://communities.VMware.com/message/1837194

    http://communities.VMware.com/message/1805142

    http://communities.VMware.com/message/1844513

    Hello

    To perform the PowerOn + ForceCustomization option in the UI by using the API.

    Perform the same operation of the virtual machine deployment.

    Ex: POST - api/vApp/vm-uuid/action/deployment

    XML MESSAGE

                          http://www.VMware.com/vCloud/versions"xmlns:ns6 ="http://www.vmware.com/vcloud/v1.5"powerOn ="true"forceCustomization ="true"deploymentLeaseSeconds ="10000"/ >"

    Using Java SDK - use of the virtual machine-> deploy();

    Make sure that the customization of the comments is enabled on the virtual computer.

    Make sure that the deployment - forceCustomization and powerOn settings are set to true;

    Kind regards

    Rajesh Kamal.

  • How to: using the same control panel for several vi and reproducing change to the control panel.

    I created a labview project that contains about 40 vi.  Each vi has a joint control panel which is a group of ip address, or address of the port and the parameters that are passed high-level vi at low level vi for the purpose of control and access our daq cards.  As this control panel exists in all the vi and must not be the same there is a problem when the need to make a change or update the controls during development.  The problem is how long it takes to go and change the control panel of each single vi.  I wish I had a way of reproducing a change in the Panel of control through all six simultaneously.

    All controls in the control panel are in a bundle, so all values are passed to 1 thread.

    I tried to turn the Panel in a sub vi and this way I can just "create control" and have output parameters maniuplate vi, but if I update the vi, I still have to go back and create a new control for each vi under the control has changed.

    I tried using secondary and the creation of the control panel in a sub vi which is displayed in the secondary, but gives the undesirable consequence of not being able to view or change the settings of the control panel if the program does not work, as pristine as when sub-panels program does not work.

    Is there a another way to display the front panel of a Subvi next using a panel of void?  Is there a better way to propagate changes in a bundle in a series of vi?

    Yes a def type might help you and I would take the next step to make a strict type def if you want the look to be the same on all its bodies. You can also view this nugget on Type definitions for more idea about it.

    Have fun

    Ben

  • With no headphone jack, how to use the iPhone in my car 7

    Okay, so here's the challenge.  I have a power source and a headphone and not Bluetooth.  It works perfectly with iPhones before 7.  But with 7, it isn't possible to use the same configuration I had for years.  I own my car, and I have no interest in buying a new car just to support a new phone.  And since this will be a problem for the years to come if I stay with Apple, I would like to know what are the solutions are available.

    So, how to use the new iPhone 7 while remaining responsible and using my car speakers?  Dongles Bluetooth that I need to reload, it's probably not.

    Thus, looking for ideas that might have people.  I can't be the only one with this concern.

    It's almost a certainty that a third party adapter will appear quickly. The new Macbook has a single port usb - c and people asked the same question, 'how to load and use USB at the same time." There are today dozens of solutions for the Macbook, and then it will be with the iPhone 7. An adapter with a 3.5 mm jack and a port of loading Lightening would be my guess. Kickstarter entrepreneurs are probably already working on it.

  • How to set the title when using InvokeManager (MediaPlayer)

    Hi Im using InvokeManager to play the video file (Media Player)

    How to change the title when media player to play the video (above)-> it by default uses the name of the file being played

    but I want to change this

    How to do this?

    Thank you

    Try this

    InvokeManager * invokeManager = new InvokeManager();
    InvokeRequest cardRequest;
    cardRequest.setTarget ("sys.mediaplayer.previewer");
    cardRequest.setAction ("bb.action.OPEN");
    cardRequest.setUri ("* video url *");
                QVariantMap map;
    Map.Insert ("contentTitle", "My title");
    QByteArray requestData = bb:psObject::encode (map, NULL);
    cardRequest.setData (requestData);
    Response InvokeTargetReply * = invokeManager-> invoke (cardRequest);

    Note: Mark your post as solved, if this solves your problem

  • I have a purchased copy of PhotoShop Elements 9.  When I run it now I get an error message - error: 213:19.  What does that mean?  How to use the software I paid?  Thanks a lot for your help!

    I have a purchased copy of PhotoShop Elements 9.  When I run it now I get an error message - error: 213:19.  What does that mean?  How to use the software I paid?  Thanks a lot for your help!

    See here:

    In Photoshop Elements license error

  • How to generate the alert when pageitem move on the page? and what class boss be use to move pageitem

    How to generate the alert when pageitem move on the page? and what class boss be use to move pageitem

    Hi Philippe,.

    You can see the kDocBoss for the ClassID with the PMIID IID_ITRANSFORM_DOCUMENT kLocationChangedMessage.

    Markus

  • How to use the capture and the print button

    I tried to figure out how to use the capture and the "print" button, or add or what you call. I press it and the whole page of a different color changes, so I try to cut the section I want but I don't know how to send it to the printer. Can someone help me with this. I'm not at savvy with tech stuff, but when I find a recipe or something and it doesn't have an option to print a certain area, I can't understand how to use it?

    Thank you

    Andi Starbuck

    That happens to me is, I click and drag to make a rectangle of yellow selection, and as soon as I raise my finger on the mouse button, the part I've selected is captured as an image, a new tab opens and preview before printing, the image display. I can use the installation of the Page or simply print. But if I close the preview, this temporary image vanishes and I'm back on the page where I started. You see something different?

  • How to use the software keyboard Toshiba 50L9450VE TV?

    I just bought a LED TV model 50L9450VE. When installing, I need to enter the password for the wifi network. The remote doesn't have a keyboard of the letter, and the TV shows a soft keyboard to enter the password. How to use the software keyboard? I can't figure out how to get the cursor in it; the manual does not say, and I can't find the information online. Thank you.

    Hershel

    Suppose you are from Israel? Although this model is not made for the EU market, but probably for the Asian market, it looks like the European L93 series.
    You will find how to operate the software keyboard (page 52): http://www.toshiba-om.net/pdf/manual...h-Specific.pdf

  • How to use the recovery CD?

    Hello

    Ive lost the instructions to tell me how to use the recovery CD. I forgot, I need to press to access the disks when I reboot!

    Can anyone help please?
    St. Clare

    Hi clear, before using the recovery CD make you that all important data has been saved to the floppy or USB key because the procedure will erase the entire hard drive. The method for booting from a cΘdΘrom may vary according to the model number of your laptop, but it's something like hold the 'B' button for the Toshiba Startup logo. If this fails you can try to change the boot sequence or use the Toshiba from Windows or the BIOS configuration tool (ESC then F1 when prompted from a cold start) make CD-ROM the first device startup in the list.

    Richard S.

  • Tecra A8 - how to use the Clipboard?

    How to use the Clipboard?

    I don't know is it instaled when I use the recovery disc.

    After 3 years I do not know how to us it.

    Can help the somebady by PFIC step-by-step instructions

    Hello

    I have no idea of what you want to do and what should I Clipboard Viewer tell you exactly, but AFAIK the Clipboard Viewer are a part of Win XP.
    It s located in the folder C:\Windows\system32
    The file named clipbrd or clipbrd.exe

    You can also start typing Clipboard Viewer CLIPBRD in RUN.

    Welcome them

  • Satellite P100-PSPA3A-05S00P - how to use the remote control & infrared

    Satellite P100-PSPA3A-05S00P.

    Do not know if I have deleted the drivers or need drivers for remote control and infrared.
    I'm not sure how to activate the infrared but I got this cable look like an infrared receiver, but you don't know where it's going.

    I used the remote when I bought the laptop from 1st but it was a few years ago...

    Hello

    I think that infrared doesn t need to be activated. It s must already be enabled.
    But the remote control can be used within Windows Media Center.
    I think this will work because my friend of mouse remote control with Windows Media Center as well and it worked well.

  • How to use the product with laptop Portege R150 recovery CD?

    How to use the recovery CD product with laptop Portege R150 of Formate and reinstall the operating system?

    Mobile recovery procedure Asian does not for me but may not be very different as on mobile phones produced in Europe or the United States.

    Start your laptop and press F12 to display the boot options
    Place the recovery disc into the optical disc drive
    In the start menu, choose the CD/DVD drive and press ENTER
    The procedure of the facilities is expected to begin
    Follow the menu on the screen

    I do not know what will be shown at this stage, but it is not complicated to install the original recovery image. If you have any other questions please let me know what happens when upgraders begins. What options are displayed?

  • Satellite U300 - how to use the recovery disk?

    I inserted the recovery disc 1 and then restarted my computer, but nothing happened.
    I really need to fix my cause cell it's time to review!

    Does anyone know how to use the recovery disk or affecting function press when the laptop starts to use the programmed recovery?

    Thank you!

    Hello!

    If you have inserted the recovery disc you must only start her everything that s!

    I m not sure but I think you can go into the advanced boot menu if you press F12. Alternative change you the boot priority in the BIOS. You can access BIOS by pressing F2.

    Good bye

  • Pavilion dm4-3090se: how to use the SSD after restoration of the system of Windows backup disks?

    Hello

    After a lot of work, I finally could restore my OS using Windows backup disks that I created a few years back. (The OS has been corrupted when the power has been accidentally deleted from the system and the battery was dead)

    Restoring backup widows put everything on 444 GB C drive.  Nothing I put on the SSD drive d:-20 GB and there is nothing in the tools of HP E: drive - 4 GB

    How can I make use of the SSD drive to help speed up the system?  I see the system starts and runs more slowly now.  I'm ready to blow the current operating system and re-run the Windows backup utility.  But I need to know how to use the SSD during the restoration.

    Any help is appreciated.

    Thank you

    Bob

    Hey @llebrez,

    Welcome to the Forums of HP Support! This is a great place to find solutions and help our community!

    I understand that you have some information about using the SSD in your HP Pavilion dm4 Beats Edition Entertainment Notebook. I'd be happy to help you with that.

    The SSD in your laptop is used for a technology called Intel Smart Response. Intel Smart Response uses the SSD as a type of Cache smart to help load the items faster. The reason why that is not used currently is because the restoration of the system is not designed to use the SSD for intelligent caching and is not able to establish that on its own.

    If you want to configure Intelligent caching on your laptop, you can follow this guide provided by overclock.net: how: implement the Intel Smart Response Technology (SSD caching)

    I hope this helps. If you have more questions that I'm able to answer for you, please do not hesitate to ask.

    Please hold me.

    By pressing the Thumbs Up button below, you can always say thank you!

    See you soon.

Maybe you are looking for