I ran the browser-based tool on both Mac OS X and Windows 7. I received access to the beta a couple of weeks ago and tested many of the available programming functions, using both the built-in Android device emulator and a loaner Droid X smartphone. You can learn more about it from the Android Emulator section of the Android Developer’s Guide. Tips: The emulator provided with App Inventor is the standard Android emulator. Build games, social apps, quizzes, and other apps for you and your friends.When your app is finished, you can download it to your computer just as you would if you’d been developing on a real phone.If you can write good “pseudocode” - basic instructions in English describing each step of what your app needs to do - you should be able to use App Inventor.There is a learning curve - even visual interfaces require some investment in time to discover just how they work. If you already have the skills to outline the steps needed to make your app come to life, you don’t have to worry about what code creates a button or what syntax is needed to pull a name up from the contacts database. Even with a visual interface, devising complex applications is not trivial.But just as you don’t need to create pivot tables in order to get value from Excel, you don’t need to be creating, say, a full-fledged fantasy football app in order to use App Inventor.MIT professor Hal Abelson, currently on sabbatical in order to work on the App Inventor project, cites one student-created app that simply delivers a text auto-response when the user is behind the wheel (“Please don’t text me now, I’m driving.”) as an example of what App Inventor was designed to facilitate.In other words, the goal here is not to turn the majority of Android owners into professional developers, but to give them access to more-robust phone customization than is currently available.However, for those who are knowledgeable coders but not yet experienced with Android, App Inventor could make it more attractive to start developing for the platform, since this lessens the need to learn a lot of particulars. Navigate to the directory where the App Inventor Extras.Now, let’s be clear: Drag-and-drop programming will not turn an average user into an expert coder.
App Inventor Emulator Trial And ErrorThere, each component/object in your application has a “drawer” that shows all its available actions.For instance, the button drawer includes draggable icons that represent actions for when a button is clicked, as well as commands to change its color, size, image and text - either when the app first runs or when the button is clicked - as well as its visible and enabled states.There are also separate “drawers” for built-in items that are available to every application by default. In a column on the right, you can then set some of the properties of that object, such as colors for a button or a specific sound file for a sound object.If you want a component to do something specific - for example, play a sound after a button is clicked - you head to the Blocks Editor. I still think it’s worth working through issues like this in return for not being locked into one hardware vendor, though.)The browser-based portion of App Inventor contains a listing of various components - buttons, sounds, videos, a “tiny database,” social networking components, sensors, text-to-speech and more - basically, all the available building blocks for an app.To create a new application, you begin by simply dragging and dropping items into the central “viewer” portion of the screen. Even the helpful folks in the App Inventor Google discussion group didn’t seem to know how to handle that particular issue.After some trial and error, it turned out that the default USB connection setting on the Droid X did not work for App Inventor, at least on my Mac, so I needed to change the phone from “PC Mode” to “USB Mass Storage.”(This underscores what fans of the iPhone - and the Palm Pre, Palm Pixi and BlackBerry - argue is the drawback to Android’s open platform: Because one company doesn’t control hardware design and how devices interact with the OS, undocumented quirks such as this on some devices are more likely. Logging into the browser-based software and downloading the additional components worked on the first try, but the final step - connecting a device - was more challenging: App Inventor wouldn’t see my Droid X at first, making it impossible either to view my app in progress on the phone’s screen while doing development work or to download my apps to the device. There is also an “Extras” application to download and install, containing items such as an Android phone emulator.I found the first-time setup to be surprisingly frustrating. (And I’ve got to say that dragging out three blocks from multiple drawers is not as simple as typing $i++ - sometimes text really is quickest.)On the other hand, I found that the drag-and-drop method cut down on maddening mistakes I sometimes make when programming - like misplacing close brackets and semicolons. Add 1 to the index value? Blocks “+” and “Number” in the “Math” drawer. Set the question label? The “Question Label” drawer. Need to set an index value when cycling through quiz questions? It’s in the “My Definitions” drawer. You snap pieces together to create actions, such as telling the phone to play a sound and vibrate when a button is pressed.The Blocks Editor also contains the button to connect an Android phone plugged into your computer to the App Inventor environment.It wasn’t always clear right away where to go to find the blocks I needed. Yet the sound played just fine when I tried the same app on the emulator. The Droid X vibration worked, but the sound did not. I think Google has done the right thing in limiting access while it works out these kinks (it’s hard to respond adequately to bug reports from millions of users), especially since capacity is still limited.Besides my problem during initial setup, I encountered several other minor snags, such as my app not playing a sound when the button was tapped after I had followed step-by-step instructions for the simple “Hello Purr” first tutorial. There were a fair number of glitches being reported on the App Inventor discussion group, and there have been periodic issues, such as Google’s App Inventor server being unable to package applications. You can also download the source code to your system and then e-mail it to someone else, which right now is the only way people can collaborate on an App Inventor project.Unlike many Google applications that had a “beta” label long after they were production-quality with millions of users worldwide, App Inventor for Android is indeed a beta. Turns out I’d snagged the wrong block and actually needed the “set MyCall.PhoneNumber to” block (the action of setting the number, not the contents of the variable holding the actual number).However, with App Inventor, it was fairly easy to see where the problem was instead of hunting through dozens of lines of code.Once you have finished snapping pieces together and otherwise designing your application, you can package and download your project to your phone as a stand-alone app. Openoffice for mac downloadIt was pretty impressive to be able to create a complete touch-screen drawing application, including buttons to change colors and the capability to create dots when touched and lines when dragged, in well under an hour with the PaintPot tutorial.And once I got the hang of the interface setup, I found it rather slick to be able to add another button color to the project by simply dragging out the “color black” block icon and snapping that into the “set Canvas1.PaintColor to” block, which I’d already snapped into the “when blackButton.click do” block.I was pleasantly surprised to see some basic debugging tools included in the visual interface, such as a “watch” function that allows you to observe the values of variables in the Blocks Editor as you interact with your app on a connected phone.Providing significantly more (and more varied) tutorials and sample apps would go a long way toward expanding the App Inventor audience. I was initially confused about when to use the main browser-based screen and when to go to Blocks Editor, for example, but working through the examples gave me a reasonable feel for which window to use for each step.After getting through the warm-ups, I enjoyed being able to create applications for a mobile device without having to write detailed code. However, the images displayed just fine after I saved, packaged and downloaded apps to the phone.Overall, though, I found the step-by-step tutorials on the App Inventor site to be helpful and well documented.
0 Comments
Leave a Reply. |
AuthorDeon ArchivesCategories |