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
-- 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


