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
Regular Contributor
Posts: 52
Registered: ‎07-28-2011
My Device: Blackberry Torch 9800
My Carrier: T-Mobile

Retrieve Blackberry PIN and apply it elsewhere

Hi All

 

My first postish, so please be gentle..

 

I understand how to retrieve the Blackberry PIN through development coding.

 

However my question is, is it possible to retrieve the Blackberry PIN, place the Blackberry PIN into an 'array' and then recall this array to be placed anywhere else within the code or recall it to another custom api?

 

What I want to do is save the Blackberry PIN when it has been called up and place the results of this callup (the PIN) into a image/document properties field/summary, so when the document properties are seen, the blackberry PIN will be shown.

 

This needs to be saved to the document properties though and not just shown!

 

please note Blackberry PIN is the unique identifier of the blackberry device and not the pin of the simcard or device

 

Your help will be appreciated, thank

Developer
Posts: 17,012
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Retrieve Blackberry PIN and apply it elsewhere

welcome to the support forums.

can you describe in normal words what you want to do?
currently i have no clue Smiley Happy
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Regular Contributor
Posts: 52
Registered: ‎07-28-2011
My Device: Blackberry Torch 9800
My Carrier: T-Mobile

Re: Retrieve Blackberry PIN and apply it elsewhere

Sorry, I wasnt clear, in effect I want the Blackberry PIN to be retrieved and then saved to the photo properties (summary) of a image, for example take any image, right click and go to property summary, you may find height/width resolution time taken etc i want the blackberry pin to be saved here somewhere

 

hope this makes it clearer..

Developer
Posts: 17,012
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Retrieve Blackberry PIN and apply it elsewhere

as far as i know there is no API to modify the ex-if headers of a photo (where such information is usually stored).
you can most likely open the picture file and manipulate it manually, that would require you to know something about the format (like jpg).
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Developer
Posts: 713
Registered: ‎05-31-2010
My Device: 8520
My Carrier: Movistar

Re: Retrieve Blackberry PIN and apply it elsewhere

You can get the PIN a create a text file in SDCard with it, so this file can be used by another app..

Regular Contributor
Posts: 52
Registered: ‎07-28-2011
My Device: Blackberry Torch 9800
My Carrier: T-Mobile

Re: Retrieve Blackberry PIN and apply it elsewhere

OK, but does anyone know if I can use Java to edit a jpeg header file? example to change the image properties of the details below?

 

Date/Time    : 2001:08:05 15:39:33
Resolution   : 1600 x 1200
Flash used   : No

Developer
Developer
Posts: 1,123
Registered: ‎02-10-2009
My Device: 8130 / 8350 / 9530 / 9550 / 9850 / PlayBook
My Carrier: Verizon

Re: Retrieve Blackberry PIN and apply it elsewhere

You would have to do it manually as simon suggested by reading and altering the header(s) manually.