Fork us on GitHub

Tutorial - Include Source

Debug apps on devices and study the native sources
Tutorial - Include Source

Tutorial - Include Source

I redid the include source tutorial which was really old by now and included some outdated "facts" while missing key information. Include source allows us to get the native OS project source code on build, this allows us to debug and profile on the devices.

New Codename One users often mix up native interfaces and include source. You shouldn’t change the code generated with "include source". It’s for debugging purposes only. If you need to write native code just use native interfaces to do so, you can then use include source and the native debugger to debug your native interfaces.

Share this Post:

Posted by Shai Almog

Shai is the co-founder of Codename One. He's been a professional programmer for over 25 years. During that time he has worked with dozens of companies including Sun Microsystems.
For more follow Shai on Twitter & github.