This has been a highly requested feature in most of todays apps... unfortunately it's not yet implemented in Codenameone. Last time I checked, Shai mentioned it's in their to-do list.
Best way to go about this is Native Interface. Build a simple Hello World app that does this in native code. If it works fine, I believe you can easily port it to your CN1 project. Steve has some good tutorial on Native Interface in the blog (
Part 1,
Part 2, and
Part 3) that could help you.
I was working on a similar task recently but had to stop due to other commitments and trying-and-failing. I will be glad to see me or someone else creating a solution for this in CN1.