While web apps work OK on Google Glass, if you want to make an app which looks great, is easy to use and can take advantage of Google Glass, you will need to make a native app.
Fortunately, it turns out that it is not that tough to do.
Google Glass is a wearable device: it looks like a pair of glasses with a small video screen by your right eye. Since it runs Android: we were automatically interested. Can AppStudio used to create apps for it?
It turns out the answer is yes!
To date, we’ve encouraged our users to use PhoneGap Build to make their native apps. It’s quick, easy to use and meets the needs of most users. PhoneGap Build is a wrapper built on top of the open source Cordova engine. PhoneGap CLI lets you work directly with Cordova, which has a few advantages:
- Build takes place on your local machine – no uploading to a service
- Free – PhoneGap CLI is open source.
- No limit on number of projects
- Use the latest plugins: Sometime developers have newer versions of their plugin that are not in PhoneGap Build yet.
- Use PlugIns which are not in PhoneGap Build at all.
- Use custom PlugIns you have developed yourself.
But there are a few downsides too:
ServerStorage is an easy new way to save data in your AppStudio App. It works just like localStorage, but instead of saving the data locally on your device, it saves to the server.
This opens up many new possibilities: Companies could upload and download data, teachers could publish information for students, games could share scores or moves. It could even be used as a backup in the cloud.
AppStudio 4.2.5 is ready. This release has an easy way to save data on the server, PhoneGap CLI support, and introduces Google Glass as a platform.
- Language: New serverStorage object: makes it easy to store data on the server.
- Deploy: PhoneGap CLI support added.
- Deploy: Google Glass support added.
- Code Window: Disable block comments in free form blocks.
- Controls: Error hiding Panel fixed.
- Deploy: Fix extraheaders line ending. Existing apps need to open property and hit OK.
- Deploy: versionCode added to default PhoneGap configxml.
- Design Screen: Fix non numeric left and top.
- Design Screen: Vertical drag now sets horizontal % correctly.
- IDE: Better message for Other files without an external file.
- Library: jQuery Mobile: Upgraded to 1.4.5. Fixes for iOS 8.
- Library: Updated iScroll to 1.5.3 and minified.
- Preferences: Moved PhoneGap options to a new tab.
- Runtime: Change close character to %times; in dialogs.
- Runtime: isEmpty() function improved. (Thanks, Tomas!)
- Runtime: PlaySound now fails gracefully in IE11.
- Runtime: Set NSBCurrentForm before global code executes.
- Samples: Dropbox samples updated.
- Samples: New serverStorage and StudentsServerStorage samples added.
- Samples: Google Glass sample added.
AppStudio 4.2.4 is ready. This release has support for iPhone 6 and 6 Plus splash screens, plus a number of updates and fixes.
- Code Window: K no longer quotes text on some German systems.
- Controls: Panel.close function added.
- Controls: Panel auto sizes form when opened.
- Controls: Panel.previousForm adds reference to calling form.
- Deploy: Obsolete demos cannot use nsbapp.com.
- Deploy: Splashscreens for iPhone 6, iPhone 6 Plus added.
- Design Screen: Grid overlay is no longer wiped out by background color.
- Documentation: Localization and wiki files updated.
- PhoneGap: remove obsolete reference to feature properties.
- Runtime: PlaySound incompatibility with Safari fixed.
- Samples: New PhoneGapVidCap sampled added. (Thanks, Julio!)
We now have a set of YouTube videos available. They’re short – just a minute or two each – but help with how to get started with AppStudio.
- A Short Tour of AppStudio
- Your first AppStudio App: Hello World!
- Run your AppStudio App on iOS
- Run your AppStudio App on Android
- Use PhoneGap to make an AppStudio App native
Ever had to code a messy statement like this?
sqlList[j]="INSERT INTO customerData (name, age, sales) VALUES _
( " & "'cust" & j & "', " & j & ", " & j*10 & ");"
Here’s a more elegant want to do the same thing. Load your values into an array, then put a question mark in your query string where you want them to be substituted:
args=[cust, j, j*10]
sqlList[j]=["INSERT INTO customerData (name, age, sales) VALUES _
Notice that we also had to put the query string into an array, with the first element being the query string and the second our array of arguments.
(This is only for SQLite strings. If you would like to do something similar to your other strings, check out the Format function.)
The NSBApp Debugger (AppStudio 4.2.2+) is based in the Weinre (“WEb INspector REmote”) app. It looks like a subset of the Chrome Debugger. That’s no surprise: both are based on the same Web Inspector software. This debugger does not have the ability to view code or set checkpoints, but otherwise is quite functional.
It’s a great way to debug your app when it running on an actual device.
Use it in the following cases:
AppStudio 4.2.3 is ready. This release has a nice new Panel control, how to Videos and a number of updates and fixes.
- Controls: New jQM Panel control. (Thanks, Erkan!)
- Controls: The height property of Form object can now be set if fullscreen is false.
- Controls: jQM RadioButton square corners fixed.
- Controls: HeaderBar – background on notext buttons is gone.
- Deploy: iOS 8 no longer supports minimal-ui, so default is now off.
- Deploy: Security certificate handlers updated.
- Language: SQL now supports Using_SQLite#Parameters|parameters.
- Language: Bug in Yosemite’s handling of Arabic worked around.
- Language: Serbian added (Thanks, Elvir!)
- Help: Link to English and Arabic AppStudio Videos added.
- Libraries: DropBox upgraded to 1.2.
- Samples: New Panel sample.
- Samples: All use .appcache as the cache file name suffix.
- Samples: Updated to use SQLite Parameters.