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: 12
Registered: ‎04-14-2008
My Device: Not Specified
Accepted Solution

How to capture copy from other Application?

Hi everyone,

 

I would like to know if there is a way to capture the copied text from another application using a MenuItem from my Application?

 

It would be like this:

  1. You open my application and it will register the MenuItem in another application like the e-mail messages.
  2. You open an e-mail messag, select some text and click on my menu item.
  3. It would open my application (it could be a just dialog) that will show the selected text.
Is it possible?
João Eduardo Galli
Developer
Posts: 4,764
Registered: ‎07-21-2008
My Device: Not Specified

Re: How to capture copy from other Application?

You will have to retrieve the text from the clipboard when your menu item is called.

 

See Clipboard in the API docs.

 

New Developer
Posts: 12
Registered: ‎04-14-2008
My Device: Not Specified

Re: How to capture copy from other Application?

Yes, but I will have to click in the COPY menu of the other application, right?
João Eduardo Galli
Highlighted
Developer
Posts: 4,764
Registered: ‎07-21-2008
My Device: Not Specified

Re: How to capture copy from other Application?

Yes.