BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 07-23-2009, 05:34 AM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Jun 2008
Model: 8100
PIN: N/A
Carrier: Vodafone India
Posts: 39
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default How to store text to default clipboard from my application

Please Login to Remove!

Hi buddies,

I have some text on my canvas screen and I want to copy the text to default clipboard, so that copied text will be available outside my app.
Is there any Blackberry API, which allow us to store text to default available clipboard?

I know textfield comes with default select, copy, paste option and solve my problem but I don't want to use textfield.

Please help me.

Thanks,
Alpesh
Offline  
Old 07-23-2009, 06:16 AM   #2 (permalink)
Knows Where the Search Button Is
 
Join Date: Jun 2008
Model: 8100
PIN: N/A
Carrier: Vodafone India
Posts: 39
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

friends,

I guess, I was too hurry.
I got the solution from API references. So, just want to share with you guys.

Blackberry provides Clipboard class to access the default clipboard and we can get/ put object.

Code:
Clipboard cb = Clipboard.getClipboard();
		cb.put(object);
Thanks,
Alpesh
Offline  
Old 07-23-2009, 11:59 AM   #3 (permalink)
BlackBerry Extraordinaire
 
Join Date: Jan 2006
Model: LEZ10
OS: 10.0.10
Carrier: Rogers CA
Posts: 1,704
Post Thanks: 20
Thanked 77 Times in 68 Posts
Default

Good work. Finding a solution, and posting it here for others.
__________________
My other Blackberry is a PlayBook.
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Synertek 6502 CPU 40 PIN DIP SY6502 CPU for Commodore Apple Atari Acorn & Others
$7.99
Synertek 6502 CPU 40 PIN DIP SY6502 CPU for Commodore Apple Atari Acorn & Others pictureWINDSOR Commodore CMD Carpet Extractor Cleaning Machine 0541 Hours WORKING
$199.99
WINDSOR Commodore CMD Carpet Extractor Cleaning Machine 0541 Hours WORKING pictureITT Memory 8341 - 4116 3N Set of (8) for Commodore PET
$15.5
ITT Memory  8341  - 4116  3N  Set of (8) for Commodore PET pictureMOS 906114-01 Commodore 64 PLA 28-Pin PDIP Used-Pull
$25.0
MOS 906114-01 Commodore 64 PLA 28-Pin PDIP Used-Pull  pictureReconditioned Windsor Commodore 20 Carpet Extractor
$3025.0
Reconditioned Windsor Commodore 20 Carpet Extractor picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.