App Inventor provides an Android emulator, which works just like an Android. Then, from App Inventor's menu (on the App Inventor cloud-based software at ai2.appinventor.mit.edu), go to the Connect Menu and click the. First, go to App Inventor and open a project (or create a new one - use Project > Start New Project and give your project a name). Open an App Inventor project and connect it to the emulator.I also walked through a number of the available tutorials.Get notifications on updates for this project. I ran the browser-based tool on both Mac OS X and Windows 7. The tool, still in invitation-only beta, offers a graphical drag-and-drop programming interface instead of requiring that apps be written in Java.Installing App Inventor locally Time for action installing App Inventor on Mac Time for action installing App Inventor on GNU/Linux Time for action installing App Inventor on Windows Setting up and running the emulator Time for action opening up the emulator Finding and downloading drivers Time for action connecting a 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.
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. Get newsletters and notices that include site news, special offers and exclusive discounts about IT products & services.Now, let’s be clear: Drag-and-drop programming will not turn an average user into an expert coder. Emulator Appinventor How To Handle ThatEven 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. It’s less daunting than, say, learning Java, but there is a time investment, especially if you want to become proficient in creating applications that let you do more than tap a button to play a sound.There are two main parts to App Inventor: a browser-based design screen and the Java-based Blocks Editor (which is launched in a separate window by clicking an “Open the Blocks Editor” button). Eclipse luna ee for macHere, you can select icons for math functions, lists (i.e., arrays), logic, colors and more for your components. There, 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. (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. 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. ![]()
0 Comments
Leave a Reply. |
AuthorKara ArchivesCategories |