Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
New Developer
Posts: 122
Registered: ‎07-28-2009
My Device: Not Specified

how to write a Vector with a byte[] into SD Card....

Hi

        how to write a Vector with byte[] array into BlackBerry SD Card...........

Developer
Posts: 3,951
Registered: ‎07-15-2008
My Device: Not Specified

Re: how to write a Vector with a byte[] into SD Card....

Why not use of persitance store?

Use Search. "Accept Solution" If the problem is resolved.
New Developer
Posts: 122
Registered: ‎07-28-2009
My Device: Not Specified

Re: how to write a Vector with a byte[] into SD Card....

i need to store in SD Card

Developer
Posts: 3,951
Registered: ‎07-15-2008
My Device: Not Specified

Re: how to write a Vector with a byte[] into SD Card....

Check this thread.

 

http://supportforums.blackberry.com/rim/board/message?board.id=java_dev&message.id=21350&query.id=14...


Use Search. "Accept Solution" If the problem is resolved.
Highlighted
Super Contributor
Posts: 253
Registered: ‎08-19-2010
My Device: BB10, Playbook, 9900, 9800, 9700, 9550, 9530, 9500, 8700.
My Carrier: TT

Re: how to write a Vector with a byte[] into SD Card....

public ByteVector cpu_config = new ByteVector();

 

public void setConfigInt(char key, int value) {

//ByteVector method
cpu_config.addElement((byte) key);
byte[] arr = Util.itob(value);
cpu_config.addElement((arr[0]));
cpu_config.addElement((arr[1]));
cpu_config.addElement((arr[2]));
cpu_config.addElement((arr[3]));

}

-Fight with BB10