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.
And the same code work fine in C5-03(S60 5th).Code:import com.nokia.mid.ui.Clipboard; ... try { Clipboard.copyToClipboard("test"); } catch (Exception e) { System.out.println(e.toString()); }
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.

Reply With Quote

