GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing wiki.appstudio.dev — A Simple Program - NSB App Studio A Simple Program
Jump to navigation
Jump to search
PurposeThe purpose of this tutorial is to demonstrate how a simple program is created using AppStudio. You should have AppStudio installed before beginning this tutorial. You can view a similar video here: https://www.youtube.com/watch?v=hzyXuOJjp-E Description of the ProgramThe program to be developed will display a form with a button on it. When the user taps the button, the program responds with the message "Hello World!" Program DevelopmentStartup1. Start AppStudio from the Start menu. Here is what you will see:
2. Create a new project. Select menu item File...New. Choose BASIC as your programming language, the default iPhone/Nexus size and use HelloWorld as your new File name. It's best to create your project in a new folder. 3. Add a Button. Select the button in the ToolBox and drag & drop it where you like. 4. Edit the Value of the button to say "Click Me!" 5. We can actually run the program now. Choose Run...Start in Desktop Browser. It runs in your default browser: we recommend using Chrome or Safari, as these support the WebKit extensions which mobile devices use. We could even run this on a device, but let's do a bit more first... 6. In the Properties Editor, choose Events. It will show a popup with with the events for buttons. Near the top, you will see 'onclick'. Select that, and you will go into the Code Window:
Msgbox "Hello World!"
Run on an iPhone1. Good work! Now let's run it on a phone. From the Deploy picker, choose "Deploy to VoltServer". VoltServer is a test server we have set up for AppStudio users. (We're using an iPhone here. We'll do it for Android next.) Choose "I'd like to continue using the demo account for now". You can set up a permanent account later, and click Deploy. 2. You'll see this. Enter the link into Safari or use a QR Code scan utility to start app. 3. Hit Go. The page will appear. You can tap on "Click Me!", and you'll see: a working app in AppStudio. 4. But this isn't a real app: it's just a web page that looks like one. Let's turn it into a real app on the Home Screen. First, we'll tap on the box with an arrow icon at the bottom of the screen. 5. Choose "Add To Home Screen", then click on Add.
Run on an Android deviceOn Android the procedure is even simpler. 1. Here is how our app looks. 2. Tap on the menu button to bring up your choices. Click on Add to homescreen.
4. Here is how it looks on the homescreen. 5. Here is how it looks running on the homescreen. |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |