I was working on documenting the SQLite support in Codename One, you can see some of that work both in the
db package and in the
developer guide. As a demo for
SQL I decided to just create a tool that allows you to type arbitrary SQL to execute it on the device and see
the results in a Table
…
Beside being a cool example this can be a hugely powerful debugging tool to one of the more painful API’s to
debug on the device. You can integrate this as a hidden feature into your application and use it to debug odd “on device”
issues by querying the DB!
Toolbars All Around
The Toolbar API is the way forward
but up until now we didn’t include the option to set the Toolbar
globally so for every Form
you had to do the:
Toolbar tb = new Toolbar();
form.setToolbar(tb);
You can now set the Toolbar
to be on by default on all forms so form.getToolbar()
will return a valid Toolbar
that you can use right away. There are two ways to enable it, in code using:
Toolbar.setGlobalToolbar(true);
Or using the theme constant:
globalToobarBool=true
Debugging Location Calls
Piotr contributed another pull request
that refines the behavior of the simulator when working with the location API. This highlights a relatively
accessible path to code contribution thru the Java SE code which should be easier.
Check out my post on contributing code to the Codename One project
here
Documentation Progress
Our manual is over 650 pages. We just finished a rewrite of the IO section which is HUGE!
Similarly to the galleries we made for components and layouts we created sections for the
database,
XPath processing/parsing language &
general IO (storage, filesystem, parsing, networking etc.).
Check out these sections and let us know what you think.
4 Comments
Can we maybe add more functionality to the DB explorer tool?
This opens some potential to “on device analysis” style API’s. Any plans on that?
I’d love that but I’m not sure when we’ll get around to do something like this.
For some reason your locationmanager never works for me even tho i follow all possible instructions, it works perfectly on the emulator but moving to a real android device it never works
I suggest trying it as we explained it.