KSOAP and BB JDE 4.5

Hello

I am new to java.  I was working with the MDS and discovered that I need more than what it can offer. I had working nusoap, but MDS has no cards. So I'm trying here is my simple question and java.

In java and 3rd BB JDE 4.5, how you understand a library to your project?  I get a message error "package org.ksoap does not exist.  I downloaded the project and unpacked, but now I'm lost.

When I finished, how do the ksoap over the phone? Make ALX file?

Thank you

Scott

Try like this...

C:\Program Research In Motion\BlackBerry JDE 4.6\bin > preverify - classpath 'C:\Program research in Motion\BlackBerry JDE 4.6\lib\net_rim_api.jar' ksoap2-j2me-core - 2.1.2.jar

Where "ksoap2-j2me-core - 2.1.2.jar" is located in 'C:\Program looking in Motion\BlackBerry JDE 4.6\bin\' and 'exit' folder is created and you can find the pre-audit jar.

For more details... Just check the use of "preverify" for its use.

Tags: BlackBerry Developers

Similar Questions

  • PHP connection with ksoap and nusoap

    I got a problem here.

    I tried a simple code to connect php and java with ksoap and nusoap.

    When I run this program in the Simulator, just loading program and my Simulator cannot click more.

    and that never stopped loading...

    When I am trying to test the nusoap connection. I create phpclient.php and phpserver.php. and when I run phpclient.php, the web is responsible for long time, and finally an error showed...

    error on php:

    Warning: SoapClient:oapClient (http://localhost/phphack/helloworld.php) [soapclient.soapclient]: failed to open stream: a connection attempt failed because the connected party responded properly after a period of time, or an established connection failed because connected host has failed. in C:\xampp\htdocs\phphack\helloclient.php on line 3

    Warning: SoapClient:oapClient() [soapclient.soapclient]: I/O warning: failed to load external entity "http://localhost/phphack/helloworld.php" in C:\xampp\htdocs\phphack\helloclient.php on line 3

    Fatal error: Runtime Maximum of 60 seconds exceeded in C:\xampp\htdocs\phphack\helloclient.php on line 6

    like I said: use a thread separate from your network code.

  • Windows 7 and BlackBerry JDE

    Hello

    is there anyone who has worked with JDE and Windows 7?

    I have tons of problem running JDE on 7...

    With a warning that Windows 7 is not yet officially supported...  please refer to the following.

    How - manually save the CSI files
    Article number: DB-00100

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800989/How_to_-_Manua...

  • How do you see the System.out.println (without using Eclipse and BlackBerry JDE)

    Hi all

    I just want to know if there is no solution to see System.out.println.

    I use neither Eclipse nor BlackBerry JDE for my development.

    I have my jar, jad files. I convert my jar file using the CAP tool. The .cod files are generated.

    I start the trainer. Now I have 2 windows: Windows Simulor and the output (see picture).

    Then I load my .cod files. But I see not all System.out.println ("...") in the output windows.

    How can I see these System.out.println ("...")?

    Please help me.

    Thank you all.

    Thanks for your help.

    I try your solution EventLogger.

    But I have another problem:

    My request is not a native application (it is a midlet in J2ME, not a UIApplication). Do you think that it will work with EventLogger?

    How can I make a registry for EventLogger:

    static boolean register(long guid, String name) 
    Registers the name and the guid of the calling application.
    static boolean register(long guid, String name, int viewerType) 
  • not sure about my blackberry and what jde to use

    Hi all, I'm confused about what version of the software (blackberry api) I can code for my BB tour.

    and I guess the mean packs I use to be able to run my apps on my tour 9630.

    under

    options-> on

    I see

    BlackBerry 9630

    Smartphone (3G, CDMA)

    V5.0.0.732 (Bundle 1242, platform 4.2.0.334)

    Band 3G 1

    .....

    What is the v5.0.0.732 verses of the 4.2.0.334?

    This means, if I use the 1.1 ecplise plugin, and I noticed that when I create a blackberry project, the

    "Use a specific project JRE" option button is selected and the associated combobox has

    "BlackBerry JRE 5.0.0" selected

    I can run this application on my lap because the above version is 5.0.0.732

    the component pack (which I think is 5 for ecplise 1.1 plugin) does not mean that I need

    I'm coding for bb to support platform 5 (the stuff in parentheses)?

    can I ask another question, when I run my application (Directory book of blackberry begginning example), I get "error starting location: Module 'rental' attempts to access a secure API."

    I had my signature keys and install them via JDE 5, I had first installed so

    the file association has wondows and I just double clicked each of 3 keys.

    If I remember correctly, he installed all the 3 ok, I see these

    sigtool. CSK

    sigtool.DB

    sigtool. Set

    in the JDE_5.0\bin directory

    but then I went to 1.1 plugin eclipse and start using the ide instead, so I

    installed the first key via the Signature tool in eclipse and it seems to have succeeded.

    but you try to install the other 2 I get errors on

    "Cannot save the client '545245' because there is no more attempts at records.  ..."

    I guess that's led to errors during execution in my location app?

    I received an email to [email protected]

    to understand why I can't get the last 2 to work

    You can use any jde (or component pack) equal to or less than your operating system.

    but unless you want to develop for phones earlier, there is no reason to go below 5 OS.

    You can ignore safely from the platform when it comes to development.

    You can use the Simulator without signing keys, for most things, it's good enough.

  • trouble setting up Blackberry JDE and the JDE plugin Eclipse

    Can someone please tell me what I'm doing wrong here? I just downloaded blackberry JDE, tried to launch an example helloworld app that came with the IDE, but it keeps displaying error in the building.

    Then I tried to use the blackberry with eclipse plug-in. I downloaded the eclipse IDE, installed the plugin on the same folder as the eclipse IDE, and then when I click the icon blackberry on the eclipse toolbar, it asks me a key sigature... of course there must be something I am doing wrong.

    I tried some of the materials and videos on the site but you can't always find my way through...

    Would be happy if someone could take me through the steps. Thank you!

    Rex007 wrote:
    Watch "install signature keys...". "I also see the"request for signatures"and"Manage workspace for blackberry", but it seems that I won't be able to click on one of them, until I do something about signing keys 'install '.

    No, don't worry about the "install key Signature...". "That will not matter until you want to run on a real device.  The "configure BlackBerry Workspace' is grayed out until you have a BlackBerry workspace to configure.  Yes, a bit strange, but that's the way it works.

    To do this, you will need to either import a file from workspace BB existing (.jdw) or a file existing project BB (.jdp), or to build a new BB project from scratch. You build a new project of BB with file-> New-> project, which opens a new project dialog box, and then select BlackBerry-> BlackBerry project and run the new project wizard.  But you probably just want to import the demonstration project you are trying to build.

  • Error of connectivity HTTP using JDE 5.0.0 and Blackberry MDS

    Hello

    I use BB MDS Simulator 4.1.2 and BB JDE 5.0.0 for test sample Oracle ADF Mobile client apps that I have developed.
    My application tries to access Web services using HTTP.

    Here's where I meet a HTTP connectivity problem.

    1 see, for example, while trying to test HTTP using the Blackberry browser, I got the error: "host unknown mobile.blackberry.com:80.

    2. the sample I tried to run to test Web Services - accepts a user password and gets its translation in a desired language, using a service offered on the internet Web.
    Here, I tried to translate the word "Madame" in English to the French.
    I met a HTTP/1.0 400 Bad Request.

    Please take a look at the Trace of SDM as below (the entries for the "BOLD") and indicate if I'm missing something from the perspective of the configuration.

    PS: I tried different options on the blackberry forums, but they were not very useful.

    ---------------------------------------------------------------------------------------------------------------------------------------------

    < 17:48:16.000 2010-05-24 IST >: [215]: MDS-CS_MDS >: < DEBUG >: < LAYER = SCM, EVENT = connections of the device: latency AVG (MS) 0 >

    < 17:48:16.000 2010-05-24 IST >: [216]: MDS-CS_MDS >: < DEBUG >: < LAYER = PDAP, EVENT = RemovedReceivingQueue, DEVICEPIN: CONNECT
    IONID = 2100000a: 771975383, ReceivingQueueSize = 0 >
    < 17:48:16.343 2010-05-24 IST >: [217]: MDS-CS_MDS >: < DEBUG >: < LAYER = PDAP, EVENT = Notification, TAG = 36110347, STATE = OF
    PROTO >
    < 17:48:19.046 2010-05-24 IST >: [218]: MDS-CS_MDS >: < DEBUG >: < LAYER = PDAP, EVENT = RemovedSendingQueue, DEVICEPIN = 2100000
    a >
    < 17:49:57.437 2010-05-24 IST >: [219]: MDS-CS_MDS >: < DEBUG >: < LAYER = PDAP, EVENT = reception, TAG = 371769629, DEVICEPIN =
    2100000a, VERSION = 16, CONNECTIONID = 771975384, SEQUENCE = 0, TYPE = CONNECTION REQUEST, CONNECTIONHANDLER = httpc, PR
    PROTOCOL = TCP, PARAMETERS = [www.webservicex.net:80], SIZE = 121 >
    < 17:49:57.437 2010-05-24 IST >: [220]: MDS-CS_MDS >: < DEBUG >: < LAYER = PDAP, EVENT = CreatedReceivingQueue, DEVICEPIN: CONNECT
    IONID = 2100000a: 771975384, ReceivingQueueSize = 1 >
    < 17:49:57.437 2010-05-24 IST >: [221]: MDS-CS_MDS >: < DEBUG >: < LAYER = PDAP, EVENT = StartExecuting, TAG = 371769629, DEVICEP
    IN = 2100000a, VERSION = 16, CONNECTIONID = 771975384, = 0, TYPE = CONNECTION REQUEST SEQUENCE, CONNECTIONHANDLER = http
    c, PROTOCOL = TCP, PARAMETERS = [www.webservicex.net:80], SIZE = 121 >
    < 17:49:57.437 2010-05-24 IST >: [222]: MDS-CS_MDS >: < DEBUG >: < LAYER = PDAP, EVENT = EndExecuting, TAG = 371769629, DEVICEPIN
    = 2100000 a., VERSION = 16, CONNECTIONID = 771975384, SEQUENCE = 0, TYPE = CONNECTION REQUEST, CONNECTIONHANDLER httpc =,
    PROTOCOL = TCP, PARAMETERS = [www.webservicex.net:80], SIZE = 121 >
    < 17:49:57.437 2010-05-24 IST >: [223]: MDS-CS_MDS >: < DEBUG >: < LAYER = SCM, EVENT = available threads in DefaultJobPool = r 9
    Unning JobRunner: DefaultJobRunner-3 >
    < 17:49:57.453 2010-05-24 IST >: [224]: MDS-CS_MDS >: < DEBUG >: < LAYER = PDAP, wire HTTP: DefaultJobRunner-3 began >
    < 17:49:57.453 2010-05-24 IST >: [225]: MDS-CS_MDS >: < DEBUG >: < = PDAP MANAGER LAYER = HTTP, EVENT = ReceivedFromDevice, DEVI
    CEPIN = 2100000a, LOGIN ID = 771975384, HTTPTRANSMISSION = >
    < 17:49:57.453 2010-05-24 IST >: [225]: MDS-CS_MDS >: < DEBUG >: < = PDAP MANAGER LAYER = HTTP, EVENT = ReceivedFromDevice, DEVI
    CEPIN = 2100000 a., CONNECTION ID = 771975384, HTTPTRANSMISSION = [Section of Transmission line]: >
    * <-2010-05-24 17:49:57.453 IST >: [225]: MDS-CS_MDS >: < DEBUG >: < LAYER = PDAP, HANDLER = HTTP, EVENT = ReceivedFromDevice, DEVI *.
    CEPIN = 2100000 a., Connectionid = 771975384, HTTPTRANSMISSION = GET /TranslateService.asmx/Translate? LanguageMode = English
    TOFrench & text = Madame HTTP/1.1 >
    < 17:49:57.453 2010-05-24 IST >: [225]: MDS-CS_MDS >: < DEBUG >: < = PDAP MANAGER LAYER = HTTP, EVENT = ReceivedFromDevice, DEVI
    CEPIN = 2100000 a., CONNECTION ID = 771975384, HTTPTRANSMISSION = [Section headings]: 2 headers >
    < 17:49:57.453 2010-05-24 IST >: [225]: MDS-CS_MDS >: < DEBUG >: < = PDAP MANAGER LAYER = HTTP, EVENT = ReceivedFromDevice, DEVI
    CEPIN = 2100000 a., CONNECTION ID = 771975384, HTTPTRANSMISSION = x-rim - conttime:10000 >
    < 17:49:57.453 2010-05-24 IST >: [225]: MDS-CS_MDS >: < DEBUG >: < = PDAP MANAGER LAYER = HTTP, EVENT = ReceivedFromDevice, DEVI
    CEPIN = 2100000 a., CONNECTION ID = 771975384, HTTPTRANSMISSION = host: www.webservicex.net >
    < 17:49:57.453 2010-05-24 IST >: [225]: MDS-CS_MDS >: < DEBUG >: < = PDAP MANAGER LAYER = HTTP, EVENT = ReceivedFromDevice, DEVI
    CEPIN = 2100000 a., CONNECTION ID = 771975384, HTTPTRANSMISSION = [Settings]: 2 parameters >
    * <-2010-05-24 17:49:57.453 IST >: [225]: MDS-CS_MDS >: < DEBUG >: < LAYER = PDAP, HANDLER = HTTP, EVENT = ReceivedFromDevice, DEVI *.
    CEPIN = 2100000 a., Connectionid = 771975384, HTTPTRANSMISSION = LanguageMode = EnglishTOFrench >
    * <-2010-05-24 17:49:57.453 IST >: [225]: MDS-CS_MDS >: < DEBUG >: < LAYER = PDAP, HANDLER = HTTP, EVENT = ReceivedFromDevice, DEVI *.
    CEPIN = 2100000 a., CONNECTION ID = 771975384, HTTPTRANSMISSION = text = Madam >
    < 17:49:57.453 2010-05-24 IST >: [226]: MDS-CS_MDS >: < DEBUG >: < = PDAP MANAGER LAYER = HTTP, EVENT = SentToServer, DEVICEPIN
    = 2100000a, LOGIN ID = 771975384, HTTPTRANSMISSION = >
    < 17:49:57.453 2010-05-24 IST >: [226]: MDS-CS_MDS >: < DEBUG >: < = PDAP MANAGER LAYER = HTTP, EVENT = SentToServer, DEVICEPIN
    = 2100000 a., CONNECTION ID = 771975384, HTTPTRANSMISSION = [Section of Transmission line]: >
    * <-2010-05-24 17:49:57.453 IST >: [226]: MDS-CS_MDS >: < DEBUG >: < LAYER = PDAP, HANDLER = HTTP, EVENT = SentToServer, DEVICEPIN *.
    * is 2100000a LOGIN ID is 771975384, HTTPTRANSMISSION = GET /TranslateService.asmx/Translate? LanguageMode = EnglishTOFren *.
    ch & text = Madame HTTP/1.1 >
    < 17:49:57.453 2010-05-24 IST >: [226]: MDS-CS_MDS >: < DEBUG >: < = PDAP MANAGER LAYER = HTTP, EVENT = SentToServer, DEVICEPIN
    = 2100000, CONNECTION ID = 771975384, HTTPTRANSMISSION = [Section headings]: 6 headers >
    < 17:49:57.453 2010-05-24 IST >: [226]: MDS-CS_MDS >: < DEBUG >: < = PDAP MANAGER LAYER = HTTP, EVENT = SentToServer, DEVICEPIN
    = 2100000, CONNECTION ID = 771975384, HTTPTRANSMISSION = Connection: close >
    < 17:49:57.453 2010-05-24 IST >: [226]: MDS-CS_MDS >: < DEBUG >: < = PDAP MANAGER LAYER = HTTP, EVENT = SentToServer, DEVICEPIN
    = 2100000a, LOGIN ID = 771975384, HTTPTRANSMISSION = Via: MDS_4.1.2.17 >
    < 17:49:57.453 2010-05-24 IST >: [226]: MDS-CS_MDS >: < DEBUG >: < = PDAP MANAGER LAYER = HTTP, EVENT = SentToServer, DEVICEPIN
    = 2100000a, LOGIN ID = 771975384, HTTPTRANSMISSION = accept: * / * >
    < 17:49:57.453 2010-05-24 IST >: [226]: MDS-CS_MDS >: < DEBUG >: < = PDAP MANAGER LAYER = HTTP, EVENT = SentToServer, DEVICEPIN
    = 2100000, CONNECTION ID = 771975384, HTTPTRANSMISSION = x-rim-original-accept: * / * >
    < 17:49:57.453 2010-05-24 IST >: [226]: MDS-CS_MDS >: < DEBUG >: < = PDAP MANAGER LAYER = HTTP, EVENT = SentToServer, DEVICEPIN
    = 2100000, LOGIN ID = 771975384, HTTPTRANSMISSION = x-rim - conttime:10000 >
    < 17:49:57.453 2010-05-24 IST >: [226]: MDS-CS_MDS >: < DEBUG >: < = PDAP MANAGER LAYER = HTTP, EVENT = SentToServer, DEVICEPIN
    = 2100000, CONNECTION ID = 771975384, HTTPTRANSMISSION = host: www.webservicex.net >
    < 17:49:57.453 2010-05-24 IST >: [226]: MDS-CS_MDS >: < DEBUG >: < = PDAP MANAGER LAYER = HTTP, EVENT = SentToServer, DEVICEPIN
    = 2100000, CONNECTION ID = 771975384, HTTPTRANSMISSION = [Settings]: 2 parameters >
    * <-2010-05-24 17:49:57.453 IST >: [226]: MDS-CS_MDS >: < DEBUG >: < LAYER = PDAP, HANDLER = HTTP, EVENT = SentToServer, DEVICEPIN *.
    * = 2100000a, LOGIN ID = 771975384, HTTPTRANSMISSION = LanguageMode = EnglishTOFrench > *.
    * <-2010-05-24 17:49:57.453 IST >: [226]: MDS-CS_MDS >: < DEBUG >: < LAYER = PDAP, HANDLER = HTTP, EVENT = SentToServer, DEVICEPIN *.
    * = 2100000a, ID = 771975384, HTTPTRANSMISSION = text = Mrs CONNECTION > *.
    < 17:49:57.515 2010-05-24 IST >: [227]: MDS-CS_MDS >: < DEBUG >: < LAYER = SCM, EVENT statistics = save task started >
    < 17:49:57.625 2010-05-24 IST >: [228]: MDS-CS_MDS >: < DEBUG >: < LAYER = SCM, EVENT statistics = save finished task - number o
    f rows inserted: 5 >
    < 17:50:18.453 2010-05-24 IST >: [229]: MDS-CS_MDS >: < DEBUG >: < = PDAP MANAGER LAYER = HTTP, EVENT = SentToDevice, DEVICEPIN
    = 2100000a, LOGIN ID = 771975384, HTTPTRANSMISSION = >
    < 17:50:18.453 2010-05-24 IST >: [229]: MDS-CS_MDS >: < DEBUG >: < = PDAP MANAGER LAYER = HTTP, EVENT = SentToDevice, DEVICEPIN
    = 2100000 a., CONNECTION ID = 771975384, HTTPTRANSMISSION = [Section of Transmission line]: >
    * <-2010-05-24 17:50:18.453 IST >: [229]: MDS-CS_MDS >: < DEBUG >: < LAYER = PDAP, HANDLER = HTTP, EVENT = SentToDevice, DEVICEPIN *.
    * = 2100000a, LOGIN ID = 771975384, HTTPTRANSMISSION = HTTP/1.0 400 Bad Request > *.
    < 17:50:18.453 2010-05-24 IST >: [229]: MDS-CS_MDS >: < DEBUG >: < = PDAP MANAGER LAYER = HTTP, EVENT = SentToDevice, DEVICEPIN
    = 2100000, CONNECTION ID = 771975384, HTTPTRANSMISSION = [Section headings]: 2 headers >
    < 17:50:18.453 2010-05-24 IST >: [229]: MDS-CS_MDS >: < DEBUG >: < = PDAP MANAGER LAYER = HTTP, EVENT = SentToDevice, DEVICEPIN
    = 2100000, CONNECTION ID = 771975384, HTTPTRANSMISSION = Content-Type: text / plain >
    < 17:50:18.453 2010-05-24 IST >: [229]: MDS-CS_MDS >: < DEBUG >: < = PDAP MANAGER LAYER = HTTP, EVENT = SentToDevice, DEVICEPIN
    = 2100000, CONNECTION ID = 771975384, HTTPTRANSMISSION = content-length: 35 >
    < 17:50:18.453 2010-05-24 IST >: [229]: MDS-CS_MDS >: < DEBUG >: < = PDAP MANAGER LAYER = HTTP, EVENT = SentToDevice, DEVICEPIN
    = 2100000, CONNECTION ID = 771975384, HTTPTRANSMISSION = [Settings]: parameter 0 >
    < 17:50:18.468 2010-05-24 IST >: [230]: MDS-CS_MDS >: < DEBUG >: < LAYER = PDAP, EVENT = CreatedSendingQueue, DEVICEPIN = 2100000
    a >
    < 17:50:18.468 2010-05-24 IST >: [231]: MDS-CS_MDS >: < DEBUG >: < LAYER = PDAP, wire HTTP: DefaultJobRunner-3 stop >
    < 17:50:18.468 2010-05-24 IST >: [234]: MDS-CS_MDS >: < DEBUG >: < LAYER = PDAP, EVENT = sending, TAG = 36110349, DEVICEPIN = 210
    0000, VERSION = 16, CONNECTIONID = 771975384, SEQUENCE = 0, TYPE = DATA, SIZE = 48 >
    < 17:50:18.468 2010-05-24 IST >: [235]: MDS-CS_MDS >: < DEBUG >: < LAYER = PDAP, wire HTTP: DefaultJobRunner-3 order >
    < 17:50:18.484 2010-05-24 IST >: [236]: MDS-CS_MDS >: < DEBUG >: < LAYER = SCM, EVENT = finished JobRunner: DefaultJobRunner-3, a
    available in DefaultJobPool = 10 threads, time spent = 21047ms >
    < 17:50:18.500 2010-05-24 IST >: [239]: MDS-CS_MDS >: < DEBUG >: < LAYER = PDAP, EVENT = sending, TAG = 36110350, DEVICEPIN = 210
    0000a, VERSION = 16, CONNECTIONID = 771975384, SEQUENCE = 1, TYPE = ORDER to DISCONNECT, SIZE = 0 >
    < 17:50:18.500 2010-05-24 IST >: [240]: MDS-CS_MDS >: < DEBUG >: < LAYER = SCM, EVENT = connections of the device: latency (MS) 32 AVG >
    < 17:50:18.500 2010-05-24 IST >: [241]: MDS-CS_MDS >: < DEBUG >: < LAYER = PDAP, wire HTTP: ConnectionsInputStreamesReader0-Def
    stop aultJobRunner-3 >
    < 17:50:18.500 2010-05-24 IST >: [242]: MDS-CS_MDS >: < DEBUG >: < LAYER = PDAP, wire HTTP: ConnectionsInputStreamesReader0-Def
    aultJobRunner-3 order >
    < 17:50:18.500 2010-05-24 IST >: [243]: MDS-CS_MDS >: < DEBUG >: < LAYER = PDAP, EVENT = RemovedReceivingQueue, DEVICEPIN: CONNECT
    IONID = 2100000a: 771975384, ReceivingQueueSize = 0 >
    < 17:50:18.531 2010-05-24 IST >: [244]: MDS-CS_MDS >: < DEBUG >: < LAYER = PDAP, EVENT = Notification, TAG = 36110349, STATE = OF
    PROTO >
    < 17:50:18.562 2010-05-24 IST >: [245]: MDS-CS_MDS >: < DEBUG >: < LAYER = PDAP, EVENT = Notification, TAG = 36110350, STATE = OF
    PROTO >
    < 17:50:19.046 2010-05-24 IST >: [246]: MDS-CS_MDS >: < DEBUG >: < LAYER = PDAP, EVENT = RemovedSendingQueue, DEVICEPIN = 2100000
    a >

    Hello:

    A couple of things to try and check:

    -What is your network connection through the proxy server? If you are behind a proxy server, then you would need to set up proxy server in MDS by opening the file /config/rimpublic.property, go to the [HTTP handler] section and add the following line:

    application.handler.http.proxyEnabled = true
    application.handler.http.proxyHost =
    application.handler.http.proxyPort =

    -Try of BlackBerry MDS Simulator that came with JDE 5.0. SDM 4.1.2 should continue to work with 5.0 simulators of the device, but it's worth a

    Can you reach the web service in the browser in your Blackberry Simulator? Feel free to contact me directly at [email protected] - if needed, we can also draw resources to help diagnose this RIM/BlackBerry.

    Thank you

    Joe Huang

  • Array of bytes and KSOAP2

    Hello
    I have a request. I have a MSSQL database into two columns. One is a varchar and the second is the Image type. I would use these two fields filled to KSOAP2. I tried to send a picture in KSOAP byte array but it did not, probably, I sometimes confuse.
    Here is the source code.

    public byte[] getBytesFromBitmap(Bitmap bmp) {
     try {
      int height=bmp.getHeight();
      int width=bmp.getWidth();
      int[] rgbdata = new int[width*height];
      ByteArrayOutputStream bos = new ByteArrayOutputStream();
      DataOutputStream dos = new DataOutputStream(bos);
      bmp.getARGB(rgbdata,0,width,0,0,width,height);
      for (int i = 0; i < rgbdata.length ; i++) {
       if (rgbdata[i] != -1) {
        dos.writeInt(i);
        dos.flush();
        //l++;
       }
      }
      bos.flush();
      return bos.toByteArray();
     } catch (Exception ex) {
      Dialog.alert("getBytesFromBitmap: " + ex.toString()); return null;
     }
    }
    
    Bitmap borderBitmap = Bitmap.getBitmapResource("rounded.png");
    byte[] img = getBytesFromBitmap(borderBitmap);
    String name = "Name";
    SoapObject rpc = new SoapObject(serviceNamespace, "name");
    
    SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
    rpc.addProperty("_img", img);
    rpc.addProperty("_string", name);
    envelope.setOutputSoapObject(rpc);
    envelope.bodyOut = rpc;
    envelope.dotNet = true;
    envelope.encodingStyle = SoapSerializationEnvelope.XSD;
    

    I also tried... I transferred the image in the array of bytes to a string, using the string, I sent KSOAP and everything went well... The problem was that if she string converted to array of bytes, and then in a Bitmap, then bb do not show Bitmap. I would like to send a byte array.

    Thank you

    Stepan

    This function is useful to get the bytes of the image.

    public static byte[] returnByte(String path)
    {
    FileConnection fconn;
    int available = 0;
    InputStream input = null;
    byte[] data=null;
    try
    {
    fconn = (FileConnection)Connector.open(path);
    if(fconn.exists()==true)
    {
    input = fconn.openInputStream();
    available = input.available();
    int fSz = (int)fconn.fileSize();
    data = new byte[fSz];
    input.read(data, 0, fSz);
    }
    }
    catch(Exception e)
    {
    Dialog.alert("Error");
    }
    return data;
    }
    

    Now you must do this:

    Byte [] img = returnByte ("pawan.png");

    rpc.addProperty("_img", Base64.encode(img));
    

    I'm sure it works...

    Thank you

  • I could develop Java Application for Blackberry device software version 5.0 to 6.0 JDE

    Hi, expert,

    I saw this line of the ' BlackBerry Java Development Environment - 4.7.0 - fundamentals Guide'.

    It is said:

    ===============================

    With each major version of the BlackBerry Device Software and the FMV of BlackBerry, Research In Motion includes the
    corresponding Java API and version of the BlackBerry® Java® development environment. The version of the BlackBerry device
    Software determines the version of the BlackBerry® integrated development environment that you can use to develop
    applications. For example, RIM released BlackBerry Device Software version 4.0 and BlackBerry JDE version 4.0 in even
    time. BlackBerry JDE version 4.0 supports APIs that were introduced in BlackBerry Device Software version 4.0
    and BlackBerry JVM version 4.0.

    The applications that you create by using BlackBerry JDE Version 4.0 only work on BlackBerry devices
    running BlackBerry Device Software version 4.0 or later.

    =========================

    The last sentence talking about version 4.0 of JDE. I think that would mean that I could not develop a java application on JDE 6.0 for Blackberry 5.0 version of the software, even if I do not use any new API to 6.0. However, it seems to me that it is a useless limitation. Could someone throw some lights on it?

    I'm going to agree with superdirt here.

    I have the 5.0 OS update of applications work well on OS 5.0, 6.0 and 7.0 of the OS OS phones.  I try not to recompile for levels of the OS, if I can, and so far I've been perfectly safe with OS 5.0 running on the later levels of the operating system.  So you should be able to get away with just using OS 5.0.

    Not that it is important for you, but I just thought I documents some historical information about level changes.  .

    As far as I know it 2 change cod in the file format, one to the 4.0 OS and the other in OS 4.2.  Therefore, if you want to run anything in OS 6.0 or above, it must be compiled in OS 4.2 or higher.  Again, I have applications compiled to OS 4.2 running on OS 6.0, without no problem devices.

    There have been changes to the API - the result is that the code that works in OS xx does not work in OS yy where yy is after xx.  I hit a few of them and have so far managed to rework the code so that it works very well on both levels of the operating system.  In general it is things that I do wrong anyway, as the older operating systems (from memory) are not as strict on when the event Thread must be used.

    The problem with OS 4.7 compatibility is an impact and to get more of this, for devices touch screen only, I compile using OS 4.7.  If an application that uses only the functionality that was available in the OS 4.2, I compile on OS 4.2 for non touch screen phones and OS 4.7 for touchscreen phones.  And everything works fine.

    I hope this helps.

  • Backup and restoration of large amounts of data during the update of the operating system (permanent storage)

    We all have our persistent store backup and restore after updating the OS using Desktop Manager,

    We store the data using intHashtable, how can we implement this?

    While searching, I had the following example, but it shows how to implement custom objects

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/8067/645045/8655/8656/110625...

    my doubts, is how to manage the tables hash, vectors, Inthashtables...

    You'll need to serialize your data backup and deserialize on restore.  It'll be to you, how to convert these objects into a stream of bytes.  Take a look at the demo of otabackuprestore which comes with the SDK Java BlackBerry and BlackBerry JDE for an example.

  • AutoStart / Alernate input and discussions in VM

    I have one application with another point of entry for a GUI. The automatic startup application creates a thread that listens to changes made to the message. I set it up as a singleton so that only one instance is created. However, when I start the GUI, it creates a new instance of the listener rather than go back already created. I read somewhere before the apps that auto start can be placed in a different thread and VM as the start of GUI. So, how do you pass object references back between the application threads? I use the storm and the JDE 4.7. I know that two instances are created because it prints a message whenever a parameter is created.

    Use the RuntimeStore to hold the object, and then you can access it from any application.

  • Eclipse, plugin, found no BB JDE entry point

    I'm pretty new to Java and just to try my first app HelloWorld with BB JDE rain-gin for Eclipse.  I have read through a few early sections of the BB Device Application Startup Guide and have basically just copied the code in section 2.

    I can build the app without problems, but when I try to run on the Simulator, the sim card comes with JVM error 102 invalid code in filesystem and get the following output in the Console of BB generator:

    Executing rapc for the project HelloWorld at Thu Apr 02 23:56:33 EST 2009.
    C:\eclipse\plugins\net.rim.eide.componentpack4.5.0_4.5.0.16\components\bin\launcher.exe C:\eclipse\plugins\net.rim.eide.componentpack4.5.0_4.5.0.16\components\bin\rapc.exe  -quiet codename=..\HelloWorld\HelloWorld ..\HelloWorld\HelloWorld.rapc warnkey=0x52424200;0x52435200;0x52525400 -sourceroot=C:\Users\Tony\workspace\HelloWorld\src C:\Users\Tony\workspace\HelloWorld\bin
    Warning!: No entry points found
    java.lang.Object: Warning!: No definition found
    net.rim.device.resources.Resource: Warning!: No definition found
    java.lang.String: Warning!: No definition found
    com.rim.resources.HelloWorldRIMResources: Error!: Class: java.lang.String has no member: equals
    rapc failed for the project HelloWorld
    
    Executing rapc for the project HelloWorldBB at Thu Apr 02 23:56:35 EST 2009.
    C:\eclipse\plugins\net.rim.eide.componentpack4.5.0_4.5.0.16\components\bin\launcher.exe C:\eclipse\plugins\net.rim.eide.componentpack4.5.0_4.5.0.16\components\bin\rapc.exe  -quiet codename=..\HelloWorldBB\HelloWorldBB ..\HelloWorldBB\HelloWorldBB.rapc warnkey=0x52424200;0x52435200;0x52525400 -sourceroot=C:\Users\Tony\workspace\HelloWorldBB\src C:\Users\Tony\workspace\HelloWorldBB\bin
    Warning!: No entry points found
    java.lang.Object: Warning!: No definition found
    net.rim.device.resources.Resource: Warning!: No definition found
    java.lang.String: Warning!: No definition found
    com.rim.resources.HelloWorldBBRIMResources: Error!: Class: java.lang.String has no member: equals
    rapc failed for the project HelloWorldBB
    

    I don't see that I left something out of my Java code.  Also, I tried to find where the appeal of CAP is defined - can someone please point me in the right direction.

    I'm under Eclipse 3.4.2 and 8300 Simulator.

    FYI, I did an uninstall complete re - install Eclipse and the JDE plug-in and now it works fine.  I had prviously installed in are, unrelated with folders and also in the path of the users folder then maybe it had something to do with it.  This time, I installed under a dedicated path of BlackBerry and everything works fine.

    Thanks for your time.

  • Simulators not appearing is not in the JDE

    My company has recently switched us to new computers using Windows 7, which requires me to re - install the simulators that I had used and the JDE (JDE is 5.0 and is necessary according to the needs of the customer).

    Initially, I've deployed the Simulator on the default folder, but got an error whenever I started it. The research forums, it was suggested that the error would leave if I have deployed in a different folder.  So, I have deployed the JDE in a different directory.

    Then, I tried to install the Verizon 9650 Simulator.  I have deployed it in the same folder that the JDE is deployed (for example simualtor is c:\...\dev\BlackBerry SmarthPhone simulators 6.0.0 and jde is in c:\...\dev\BlackBerry JDE 5.0.0). I stop the JDE during installation of the Simulator.  When I restarted the JDE, the Simulator was not visible in the list of Simulator (by default the simulators are and I am able to start them). Any thoughts on what I might need to do to get the JDE to recognize simulators?

    Thanks in advance,

    Dennis Brundage

    Simulator installers should update the JDE when they are installed.  Try one of these installers as administrator.  They probably fail update the installation location of the JDE.

    Or you can try to configure them manually.  To do so open the file SimPackage-# .rc located in the installation directory of the Simulator with a text editor.  Copy the decommentes lines (those that do not start with a #) and paste them into the SimPackage - JDE.rc, located in the bin of the BlackBerry JDE installation directory directory.

  • JDE BB v6

    Hello dear,

    I recently downloaded the JDE for BlackBerry v6 and I have problems in the execution.

    the software is running, but it still arouses the foloowing error:

    "java.io.FileNotFoundException: C:\Program Research In Motion\BlackBerry JDE 6.0.0\bin\System.rc (access is denied).

    In addition to this, I'm not be able to open a new file or a new project and the software runs under samples (liberation) and launch the program "HelloWorldDemo.java".

    then any assistance please solve this problem so that I will be able to program in this software?

    Hello

    Welcome to the forums... !!

    To avoid the "access denied" error trying to install JDE to another folder rather than c:\program files

    How to install JDE in a file C:\BlackBerryDev\JDE or C:\RIM\JDE

    and install JDE in this folder.

    Thank you

    Kanak

  • KSOAP send string array

    Hello

    Has anyone worked with ksoap and handed over an array of strings to the WebService using Ksoap? For example

    Purpose of accounts [] = new Object [] {"String1", "Word2", "3", "String4"};

    Can you give me directions?

    Thank you

    Hello, thank you for your interest. I found a very simple solution eventually. Apparently, it works if I create a simple vector rather than an array, ksoap send exactly what you need I guess.

    Create a vector

    Vector myVec = new Vector();
    for (int i = 0; i)< anarray.length;="" i++)="">
    myVec.addElement (anArray [i]);
    }

    and set the property to

    request.addProperty ("objectName", myVec);

    Kind regards

    Bogdan

Maybe you are looking for