App Inventor meets NXTWorkshop Content
Inspiring | Creative | FunYsbrydoledig | Creadigol | Hwyl
This workshop covers a further implementation of App Inventor by combining app development with
robotics.
This workshops can lead to the development of any kind of application. Basic, intermediate or advanced,
these applications can even be published to the Play Store! The workshop provides a fantastic first step into
Android development without the need to dive head first into often confusing Java code. But during this
workshop, the participants will be combining App Inventor with Lego NXT kits, controlling the robotics kits
through a carefully programmed application.
The App Inventor software itself is very easy to use, and free to download for any platform. The tools it offers
are extensive, but also very easy to grasp. Although the underlying code cannot be directly interacted with (in
Java form), the apps created offer a huge insight into Android Applications. The App Inventor platform offers
a big advantage to those new to programming to familiarise themselves with many of the concepts used in full
programming languages such as conditionals, loops, methods, variables. The drag and drop design and code
editor allows many complex apps to be created in no time at all!
App Inventor meets NXT
1
AndroidAs of September 2013, Android was activates on 1,000,000,000 devices! So, it is not surprised that 80% of shipments made towards the end of 2013 were made up of Android smart phones!
Android will be bringing out a new operating system soon called “KitKat”.
With improved performance, new features and a more polished design.
2
App Inventor meets NXTThe LEGO NXT kits that will be controlled by the application are programmable lego kits, these kits can be
directly given instructions to follow without user interaction. Alternatively the programming can be applied
to the application and connected to the device using a bluetooth connection. These applications will be
programmed using “drag and drop” programming.
Drag and drop programming is a method of building code in a programming environment without actually
typing any code. Typing code can be problematic, particularly for beginners. Rather than worrying solely on
the code, users tend to make syntax and spelling errors which can be time consuming and understandably
frustrating. Drag and drop programming environments are colourful and provide all the code a user will need,
ready to drop onto the screen and build a combination of commands that will have different functionalities.
Below is an example of how code can be built up using the jigsaw piece environment. The code categories are
colour co-ordinated, so the code content is easy to read and easy to understand the functionality of the code.
For example, below the green block has been taken from “My Blocks” category as it directly links with the
components added to the app. The “open another screen” code in light yellow has been taken from the
control category within the “Built-in” menu and the text has been retrieved from the “Text” menu.