Mr. 23

Quack!
Like this?

Notes

Mobile Phone Javascript Development

Today I’ve been coding a simple drawing app for Android (and possibly for iOS things) and it’s been difficult. The main difficulty is that rather than make my app with Java, the language that most Android apps are written in, I’m using PhoneGap to write my app in Javascript. This would seem easier, and likely will be eventually, but there is no error console that I’m aware of when using PhoneGap. Another problem is that if PhoneGap is added to the page source, it creates errors if run in desktop browsers so I can’t use those for finding errors either.

As a result, I’ve written a debug function, trace, that shows me the status at given times of execution. It works much like Flash’s trace function and it seems absolutely necessary.

While writing this post I’ve realized that I should just add the Java debugger to my javascript and trace like that.

Hopefully my app will be finished sometime tonight for testing.

Another problem is working with the <canvas> element…