We have updated Tutorial 1 to show how you can install your apps on Android devices.
Dec 25 = Oct 31
I had a chance to try out NSBasic App Studio on my Palm Pre Plus and it looks like it works fine – even the email example worked great (the message loaded into my gmail app, including the body of the text). From what I read, WebOS (the OS running on the Palm Pre) is basically all built upon the WebKit model, so the two seem made for each other.
The only sample app that I tested that I couldn’t get to work right was the one where you squeeze and expand the picture of Mario – I think this is because the WebOS browser natively responds to those gestures already. Otherwise, it seems to work great.
Lennie De Villiers from South Africa has built an NS Basic app into AppMobi. AppMobi takes your apps and turns them into packages suitable for submission to the App Store. If you try this, let us know how it goes for you. We will probably turn this into a full Tech Note. Here are his notes:
- Register for a free account on AppMobi.com, this free account allows you to test the application but if you want to deploy to the App Store then you need to pay the license fee.
- Download and install AppMobi XDK IDE, this requires Chrome and Java 6 run-time. The XDK is a full IDE that run within the web browser.
- Run the IDE and start a new project.
- Choose “Open project folder” menu option.
- It open all the project folders… Within this folder you will find “image” folder and the index.html file
- Replace these files with your files (see attached sample)
- Back at the IDE choose the Reload button. You will see that the interface will change to show the Twitter example.
- Go to appmobi.com on your mobile phone
- you might need to download the test program to your phone (SlimFat)
- Choose your application
- Choose “Test Local” or “Test Anywhere”
- Chose Launch
- SlimFat will open up and run with your NSBasic application.
- To deploy to the App Store you need to purchase a license.
More information on how the XDK IDE works etc can be found on the AppMobi web site.
NS Basic/App Studio 1.0.0 has been released!
Here’s the announcement:
You can order it here:
Introductory price is $99.95 – regular price is $149.95 for a Single Developer. As always, there are no royalties of distribution charges.
I’d like to thank the team who developed this product in record time. I’d also like to thank the testers who got us through 10 rounds of beta in just 11 days. We received literally hundreds of comments which led to tons of improvements and fixes.
Ever want to put an image in a grid control?
a="<img src='mario.jpg'>" Grid1.setValue(1,1,a)
The cells in a grid will render HTML as their values. We’re just creating a simple html tag that goes into the cell.
Japanese and other extended alphabets are working pretty well with NS Basic/App Studio now, with one exception: the characters show up on the Design Screen as rectangles. It’s because the Design Screen does not know what font to use.
The solution is to specify the font in the style property of the
control. Put this string into the style property:
font-family: 'MS UI Gothic';
and it will display properly. For other languages, you will need to change the font name to something that is appropriate.
It looks like Apple has added some goodies for us in iOS 4.2:
- Accelerometer support through the DeviceOrientation API
- WebSockets API from HTML5
- Updated HTML5 Form Support
- Partial XHR-2 Support
- Print Support
- New DOM events
- Enhanced SVG and Canvas support
Full docs have not been posted, but these features should be usable on any iOS 4.2 device.
Did you notice that the first time you hit refresh on the device, you don’t seem to see the updated app?
Here is what is going on:
First, there is a pause while the files are moved into place on nsbapp.com.
The next time you run the program (or refresh), the device runs its current version from memory while it gets the latest manifest from the server. It compares them: if the manifest has changed, it then downloads the whole application again and saves it to the device. Once this is complete, the new version of the app will run next time you do a refresh.
There are properties you can check to see if the download is complete.