×

Discussion Board

Results 1 to 9 of 9
  1. #1
    Registered User
    Join Date
    May 2008
    Posts
    9

    How to use system clipboard in Asha 305

    I'm trying to test com.nokia.mid.ui.Clipboard in the emulator of Nokia SDK 2.0 for Java and Asha 305.
    But both throw java.lang.IllegalAccessException.
    Test code is below.
    Code:
    import com.nokia.mid.ui.Clipboard;
    ...
    try {
       Clipboard.copyToClipboard("test");
    } catch (Exception e) {
       System.out.println(e.toString());
    }
    And the same code work fine in C5-03(S60 5th).

    I think this is because Asha 305 does not have the function of copy/cut/paste,
    but Clipboard API should be valid in Nokia UI API 1.6. Hmm...

    So please give me advice.

  2. #2
    Nokia Developer Expert
    Join Date
    Oct 2007
    Posts
    441

    Re: How to use system clipboard in Asha 305

    Hi

    You cannot use Clipboard on Series 40 , check this

  3. #3
    Registered User
    Join Date
    May 2008
    Posts
    9

    Re: How to use system clipboard in Asha 305

    Thank you for reply.

    I checked the link, it's written as below
    Series 40 devices do not support the copyFromClipboard method so only text export is currently possible.
    I think that "text export" means Clipboard#copyToClipboard().
    Actually, in Javadoc, copyFromClipboard() is not shown but copyToClipboard() is shown.
    So copyToClipboard() should be possible in Asha 305 such as here.

    Is my understanding wrong?
    Last edited by ayamadori; 2012-09-10 at 15:02.

  4. #4
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,689

    Re: How to use system clipboard in Asha 305

    I do not know this device, however in your post you write "Asha 305 does not have the function of copy/cut/paste". If there is no clipboard, the API can not really do anything, however the exception should be mentioned in the documentation in this case.

  5. #5
    Nokia Developer Expert
    Join Date
    Oct 2007
    Posts
    441

    Re: How to use system clipboard in Asha 305

    Hi

    For Series 40 neither of statements is correct -- in fact N20X (the devices with keypad only) supports Clipboard but FullTouch device as N30X does not. So i suggest you to implement feature discovering in runtime with Reflection API (Class.forName trick) and enable / disable your Clipboard functionality in the app on the fly
    Last edited by izinin; 2012-09-11 at 10:35.

  6. #6
    Registered User
    Join Date
    May 2008
    Posts
    9

    Re: How to use system clipboard in Asha 305

    Thank you for reply. I understood.

    the exception should be mentioned in the documentation in this case
    I think so, too.

    But I really want Nokia to implement the clipboard function in Series 40 full touch devices

  7. #7
    Registered User
    Join Date
    Jul 2012
    Posts
    5

    how to realize copy and paste function in s40 full touch asha device

    how to realize copy and paste function in s40 full touch asha device.
    i have an app, which need to copy the app's text, then past the content on the clipboard to s40's other app like: contact, sms, email...
    is it possible.

    i searched that clipboard may not support on full touch devices. so is there any other way to realize my use case of copy the text from my own app to s40's system's apps such as sms/email...

    thank you.

  8. #8
    Registered User
    Join Date
    Jul 2012
    Posts
    5

    Re: How to use system clipboard in Asha 305

    Quote Originally Posted by ayamadori View Post
    Thank you for reply. I understood.


    I think so, too.

    But I really want Nokia to implement the clipboard function in Series 40 full touch devices



    how to realize copy and paste function in s40 full touch asha device.
    i have an app, which need to copy the app's text, then past the content on the clipboard to s40's other app like: contact, sms, email...
    is it possible.

    i searched that clipboard may not support on full touch devices. so is there any other way to realize my use case of copy the text from my own app to s40's system's apps such as sms/email...

    thank you.

  9. #9
    Registered User
    Join Date
    Mar 2003
    Posts
    4,105

    Re: how to realize copy and paste function in s40 full touch asha device

    As there is no copy-and-paste in the standard user interface of Series 40 Full Touch, how should it work from Java? Where should we paste? Touch-and-Type supported this in the latest phones.

Similar Threads

  1. Clipboard
    By stenlik in forum Symbian
    Replies: 6
    Last Post: 2012-03-23, 07:20
  2. Clipboard?
    By jonawebb in forum Mobile Java General
    Replies: 2
    Last Post: 2008-08-26, 19:57
  3. Clipboard
    By kingkiko in forum Symbian
    Replies: 1
    Last Post: 2006-07-19, 15:25
  4. System error 25 when pasting from clipboard
    By lkz633 in forum Symbian
    Replies: 0
    Last Post: 2005-11-27, 16:45
  5. Get data from system clipboard
    By kcome in forum Symbian
    Replies: 0
    Last Post: 2003-12-04, 16:02

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×