Send data to SD Card in BlackBerry through a program

I was wondering if there is any way I can access the SD Card inside BlackBerry through a program. 

Hi,Zach-H,
     Thanks. Actually, my problem is already solved after I contacted one NI engineer online. 
     I shouldn't use timed loop to write SD card.   Because SD card batch writing is time consuming and its priority can't be high. "while loop" is good for SD card writing. 
   Yizhai

Similar Messages

  • How to store xml data into file in xml format through java program?

    HI Friends,
    Please let me know
    How to store xml data into file in xml format through java program?
    thanks......
    can discuss further at messenger.....
    Avanish Kumar Singh
    Software Engineer,
    Samsung India Development Center,
    Bangalore--560001.
    [email protected]

    Hi i need to write the data from an XML file to a Microsoft SQL SErver database!
    i got a piece of code from the net which allows me to parse th file:
    import java.io.IOException;
    import org.xml.sax.*;
    import org.xml.sax.helpers.*;
    import org.apache.xerces.parsers.SAXParser;
    import java.lang.*;
    public class MySaxParser extends DefaultHandler
    private static int INDENT = 4;
    private static String attList = "";
    public static void main(String[] argv)
    if (argv.length != 1)
    System.out.println("Usage: java MySaxParser [URI]");
    System.exit(0);
    String uri = argv[0];
    try
    XMLReader parser = XMLReaderFactory.createXMLReader("org.apache.xerces.parsers.SAXParser");
    MySaxParser MySaxParserInstance = new MySaxParser();
    parser.setContentHandler(MySaxParserInstance);
    parser.parse(uri);
    catch(IOException ioe)
    ioe.printStackTrace();
    catch(SAXException saxe)
    saxe.printStackTrace();
    private int idx = 0;
    public void characters(char[] ch, int start, int length)
    throws SAXException
    String s = new String(ch, start, length);
    if (ch[0] == '\n')
    return;
    System.out.println(getIndent() + " Value: " + s);
    public void endDocument() throws SAXException
    idx -= INDENT;
    public void endElement(String uri, String localName, String qName) throws SAXException
    if (!attList.equals(""))
    System.out.println(getIndent() + " Attributes: " + attList);
    attList = "";
    System.out.println(getIndent() + "end document");
    idx -= INDENT;
    public void startDocument() throws SAXException
    idx += INDENT;
    public void startElement(String uri,
    String localName,
    String qName,
    Attributes attributes) throws SAXException
    idx += INDENT;
    System.out.println('\n' + getIndent() + "start element: " + localName);
    if (localName.compareTo("Machine") == 0)
    System.out.println("YES");
    if (attributes.getLength() > 0)
    idx += INDENT;
    for (int i = 0; i < attributes.getLength(); i++)
    attList = attList + attributes.getLocalName(i) + " = " + attributes.getValue(i);
    if (i < (attributes.getLength() - 1))
    attList = attList + ", ";
    idx-= INDENT;
    private String getIndent()
    StringBuffer sb = new StringBuffer();
    for (int i = 0; i < idx; i++)
    sb.append(" ");
    return sb.toString();
    }// END PRGM
    Now , am not a very good Java DEv. and i need to find a soln. to this prob within 1 week.
    The next step is to write the data to the DB.
    Am sending an example of my file:
    <Start>
    <Machine>
    <Hostname> IPCServer </Hostname>
    <HostID> 80c04499 </HostID>
    <MachineType> sun4u [ID 466748 kern.info] Sun Ultra 5/10 UPA/PCI (UltraSPARC-IIi 360MHz) </MachineType>
    <CPU> UltraSPARC-IIi at 360 MHz </CPU>
    <Memory> RAM : 512 MB </Memory>
    <HostAdapter>
    <HA> kern.info] </HA>
    </HostAdapter>
    <Harddisks>
    <HD>
    <HD1> c0t0d0 ctrl kern.info] target 0 lun 0 </HD1>
    <HD2> ST38420A 8.2 GB </HD2>
    </HD>
    </Harddisks>
    <GraphicCard> m64B : PCI PGX 8-bit +Accel. </GraphicCard>
    <NetworkType> hme0 : Fast-Ethernet </NetworkType>
    <EthernetAddress> 09:00:30:C1:34:90 </EthernetAddress>
    <IPAddress> 149.51.23.140 </IPAddress>
    </Machine>
    </Start>
    Note that i can have more than 1 machines (meaning that i have to loop thru the file to be able to write to the DB)
    Cal u tellme what to do!
    Even better- do u have a piece of code that will help me understand and implement the database writing portion?
    I badly need help here.
    THANX

  • Sending data to the card in a byte array

    I am trying to store a variable dataCI[] with the data that comes into the buffer. I send this:
    /send 0003000A0102030405
    (INS=03)
    Afterwards I want dataCI[] to have this value= "0102030405"
    Here is my code. But when I am sending the bytes, it gives me an error of wrong length and does not matter how many bytes I send :/
    DATA_LENGTH = 10;
    lDate= apdu.setIncomingAndReceive();
    if(lDate != DATA_LENGTH){
    ISOException.throwIt(ISO7816.SW_WRONG_LENGTH);
    Util.arrayCopy(buffer, ISO7816.OFFSET_CDATA, dataCI, (short) 0, lDate);
    return;
    Also I tried with (lDate > DATA_LENGTH) and (lDate < DATA_LENGTH) but nothing works, it always gives me the error of wrong_length.
    Can anybody tell me what am I doing wrong????                

    Let's break down your apdu command....
    "send 0003000A0102030405"
    We agree that you are sending 5 bytes, so your Lc should = 5 not 0a
    CLA = 00
    INS = 03
    P1 = 00
    P2 = 0A <-- This should be your Lc !
    Lc = 01 <--- This says there is 1 byte of data
    CData = 02
    Le = 03 <- This states there is 3 bytes coming back.
    Lost in la la land data 04 05
    So your command should read...
    00 03 00 00 05 01 02 03 04 05;

  • Data inserted twice in a table through concurrent program

    Hi All,
    I have a concurrent program that is run from two different responsibilities, CANADA and US respectively.
    Now it sometimes happens that since its being run from two different responsibilities, it is inserting data twice in a table.
    I want to know what is the best way to restrict this, setting incompatibility would be the right option, so that i make that conconcurrent program incompatible to itself or is there some better way possible.
    If setting the incompatibility is better, please let me know how do i do that.
    Regards,
    SK

    The process to make an program incompatible with itself is described in MOS Doc 142944.1 (How to Make a Concurrent Program Incompatible with Itself) - you will have to bounce the concurrent managers for the setting to take effect
    HTH
    Srini

  • Regarding  sending data throgh IDOC MBGMCR02

    hi friends,
    iam sending data from non sap to sap through xi using idoc adapter.i am using mbgmcr02 idoc.what is the use of mbgmcr02 and how to send .pls help on this.
    adavnce thanks
    Ravi

    Hi Ravi,
    Your scenario will be FIle-IDOC.
    How ur getting the data from non sap system to XI is it in the form of file.
    Refer the below FCC if ur getting the file in the form of CSV or fixed length.
    Sender -
    /people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
    Key value:
    /people/venkat.donela/blog/2005/06/08/how-to-send-a-flat-file-with-various-field-lengths-and-variable-substructures-to-xi-30
    /people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
    /people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter -
    IDOC configuration:
    Configurations required in R/3:
    Maintain Logical System (SALE) for PI
    Maintain Port (WE21)
    Maintain partner profile. (WE20): For XI
    COnfiguration required at Xi side:
    Create the Port using IDX1
    Load the metadata using IDX2 transaction
    Create RFC destination which points to R3.
    mbgmcr02 is the IDOC which post the data in R3 table which wil hold the data which is send by XI.
    Thnx
    Chirag

  • Fatal Internal error: "oleautomgr.cpp", line 2832 when sending data by means of ActiveX methode

    I have experienced  error "Fatal Internal error: "oleautomgr.cpp", line 2832" during sending data to CAN card IXXAT iPCI-I XC16/PCI. LabVIEW communicates with that card by means of ActiveX methodes via "VCI Wrapper" which is COM object interface. Mass compiling of the project does not help. Card is initialized and configured propely. The driver card is working propely.
    LabVIEW version is 8.5
    The efect of that error is that labview completly shot down.
    I appraciate any suggetions
    thanks a lot

    Hello,
    Please try to reinstall the drivers for the CAN card, then make sure you close all references to the ActiveX control (at all levels) using the Automation Close primitive in LabVIEW.
    Regards,
    Emil

  • Would like to cooy music data to microSD card

    I would like to copy the music data to microSD card, But BlackBerry Link copy the music data to device.
    Could you let me know how to copy the music data to microSD card?
    Thank you very much!
    BlackBerry Link Version 1.1.0 Build 32 (Mac version)
    Blackberry Q10 SQN100-3 RFN81UW

    Hey there...
    When you plug your device into your computer, does the BlackBerry Device Manager display a message about initializing the storage volume access?  You should be able to access the storage on your device (whether it's the device or the microSD card) directly from your File Manager.
    I'm not familiar with a Mac all that much so, you could check your File Manager... It may show 2 drives which have the name similar to "DeviceName [DevicePin] (Drive)".  One of them would be your microSD card, and you should be able to copy and paste your media files directly.

  • STORING DATA IN FILE IN XML FORMAT THROUGH JAVA ?

    HOW TO STORE DATA IN FILE IN XML FORMAT THROUGH JAVA PROGRAM?

    Have you looked into JAXB?
    That is a new way of processing XML into Java classes or visa versa.
    Otherwise, there are a lot of other XML related tools for Java in the -XML link on the left side of the page.

  • How to send data to bam data object through java code

    how to send data to bam data object through java code

    I've made a suggestion in other thread: https://forums.oracle.com/thread/2560276
    You can invoke BAM Webservices (Using Oracle BAM Web Services) or use JMS integration using Enterprise Message Sources (http://docs.oracle.com/cd/E17904_01/integration.1111/e10224/bam_ent_msg_sources.htm)
    Regards
    Luis Fernando Heckler

  • Sender sending data through XML, How to process it in ECC (No PI involve)?

    Hi,
    The sender system sending data through XML tag and that need to be processed in SAP side.
    How it can be done without involving XI or IDoc?
    Is it possible through HTTP post?
    Sample XML Transactions
    1. SAP Availability Transaction (Request)
    <?xml version="1.0" standalone="yes"?>
    <ECCAVAILREQUEST>
    <AVAILTEXT>CHK STATUS</AVAILTEXT>
    </ECCAVAILREQUEST>
    2. SAP Availability Transaction (Response)
    <?xml version="1.0" standalone="yes"?>
    <ECCAVAILRESPONSE>
    <AVAILTEXT>OK</AVAILTEXT>
    </ECCAVAILRESPONSE>
    3. DUMMY_SYSTEM PO Transaction (Request)
    <?xml version="1.0" standalone="yes"?>
    <DUMMY_SYSTEM REQUEST>
    <CREATEPB>1</CREATEPB>
    <POORDERDATA>
    05607015156070151TORDAEHTWW05727500002D0979054+
    </POORDERDATA>
    4. DUMMY_SYSTEM Order/Inquiry Transaction (Response)
    <DUMMY_SYSTEM RESPONSE>
    <C_PO>99999</C_PO>
    <RETURNDATA>
    DAT&#13;&#10;
    </RETURNDATA>
    </DUMMY_SYSTEM RESPONSE>

    Hi,
    check this link
    http://help.sap.com/saphelp_nw04/helpdata/en/21/e9c97ceb1911d6b2ea00508b6b8a93/content.htm
    this is for processing inbound IDOc through XML-HTTP(Inbound) port
    like this there should be an option for reading files placed by HTTP_POST.
    in SICF transaction there should be a service to do that.
    defaulthost -> sap-> xi-> adapter_plain. i know you don't have XI in your landscape but this is the component which be responsble for receving messages over HTTP_POST.
    look for a program which can access messages from there.
    please check with your basis team
    Suresh

  • How to send business card (VCF file) through sms? it can only be send via email?

    how to send business card (VCF file) through sms? it can only be send via email?

    Go into your contacts click on the person you want to send, when the info opens scroll down to the bottom and click share contact it will as it you want to email or mms. 

  • Sending Data from BI to Third Party System through CIB Interface

    Hi Experts ,
    We have a requirement where we need to send data from BI to any Third Party System through CIB Interface . We do not have to use the OHD's . Please share the documents for the same .
    Regards
    Garima

    Hi,
          My problem is solved.
    Sol:  Getting wrong data from third party sytem. They are adding spaces in front of the payload and end of the payload so it was not processing. After deleting that spaces its is working fine.
            Thanks for your help.
    Thanks & Regards,
    Purshothamm

  • CRIO9074 RT jitter every 10 sec. when writing data to SD card through 9802 module

    Hi, 
     I am trying to use cRIO 9074 to collect data from different sensors at 50Hz  and log the data to SD card plugged in 9802 module. I use FPGA- scan interface hybrid mode because some sensors are just based on analog signals and others(i.e.. IMUs) are based on RS232.  This structure worked well. I used to transfer all the data to host VI in my desktop and log them there.
    Recently, since I have more and more sensors, I decide to log all the data locally  to SD card on cRIO 9074.  However, I have a trouble.
    I found my data are not continuous and always miss one second after ever other 10 seconds.  So I tried to insert a FIFO to buffer the data between two timed loops. The high priority loop is in charge of collecting data and the low one is in charge of writing.  But the problem still exists.  Actually, the problem has nothing to do with FIFO because 50Hz is  slow and I have validated that 9074 can collect and write all data within 10ms(100Hz).  Even with out FIFO, the program should work.
    Finally, I find out an phenomenon that both the  two interaction variables "i" in the two timed loops will periodically stop for one second after every 10 second( I check them through front panel and probe).  At the same time, the CPU usage increase dramatically and after one second, it will go back to normal level.  That means the RT jitter every other 10 seconds and cannot work at this instant. If I fully delete the SD writing blocks, the problem is gone and the system works very smoothly.  So most likely, the problem is due to SD card module.
    I tried different ways, i,e, changing the loop priority,  clock resources, the size of fifos.  Nothing works.  I even reduce the system frequency by two to 25 HZ, and even by 5 to 10 Hz. The problem still exists. 
    Attachments are two CPU usage check at 50HZ and 25HZ.  Usually it is below 80% at 50HZ so that the capability of CRIO9074 is not a problem at all. 
    And I also attach my RT VI which is messy,  because I almost go crazy thess days due to the problem . Does anybody have chance to check is there anything wrong in my VI? Or do I need to change the configuration of CRIO 9074 or update the RT engine?  It seems like a hardware problem. 
    Does anybody face the same problem before?
    Yizhai
    Rugers Univesity

    Hi,Zach-H,
         Thanks. Actually, my problem is already solved after I contacted one NI engineer online. 
         I shouldn't use timed loop to write SD card.   Because SD card batch writing is time consuming and its priority can't be high. "while loop" is good for SD card writing. 
       Yizhai

  • Send data to ECC table through RFC Call function from SAP B1 via  b1if

    Hi,
    I have created scenario in B1if which triggers from SAP B1, now I have to send this data in to ECC table, so I have created scenario for that with inbound SAP B1, outbound void and in process RFC Call atom is there but I am not getting data in receiver and also how to write xml to send data in RFC function. Function for RFC has configured from ECC end and have access of that function.
    So please help me to send data to ECC table through RFC Call function from SAP B1 (9.0) via b1if
    Thanks

    Solved by my own.

  • Sending Data Through a Output Stream...

    Hello,
    I am writing a program that works on a network...a server is running and client will connect to the server and send specific data for the server to complete transactions on.
    The transactions that are mainly seen are SQL SELECT statements and as you can imagine a statement could bring back many records.
    At present I have been able to send specific data through streams and have turned this into parameters on the server side and performed SQL. What I need help with or suggestions on is how to get the data back to the client. In some cases it may need to be displayed on screen or just used for further processing?
    Please let me know if this is not 100% clear.
    Thanks,
    P

    If you are able to send data over a network, then I assume that you know how to do network programming in Java, as well as knowing SQL.
    Java has JDBC - Java DataBase Connectivity API that supports your requirements in full.
    If you require a custom solution, then you need to be able to read data back from the server - when the server returns the ResultSet back to the client.
    A Socket object has both input and output streams. Seems that you know about the output stream, do you not know about the input stream?
    If the server is setup to send data back to the client over the same socket, then you should simply be able to read the results back from the socket's input stream.

Maybe you are looking for