Google App Inventor初体验:会做饭的人就会做App

2010-08-27 22:05

Google App Inventor初体验:会做饭的人就会做App

by

at 2010-08-27 14:05:28

original http://www.cnbeta.com/articles/120472.htm

Google Android

感谢墨客的投递
新闻来源:天涯海阁
前言:当年看到第一台搭载Android的G1发布的时候我就心动不已,因为我意识到这是我能买得起的智能机;当年因为喜欢Android我去了机锋,也因为Android结识了很多朋友;今早,我收到了Google带来的惊喜,一封App Inventor的邀请信。

使用App Inventor的准备工作

在Getting started页面你需要完成两个步骤:设置你的手机和电脑、将app inventor与手机相连。

①电脑设置:下载最新版的Java(www.java.com)、安装app inventor附加软件(Instructions for Mac OS XInstructions for GNU/LinuxInstructions for Windows

②手机设置(如果找不到,可以把你的手机设置成英文):

  1. From your phone’s home screen, select the menu, then Settings, then Applications.
  2. If your phone has an Unknown Sources box, it should be turned on (checked).
  3. Still on the Applications screen, tap Development.
  4. Make sure both USB Debugging and Stay Awake are checked.
  5. Go back to the Settings screen (you can tap the Back button twice to get there).
  6. Tap Sound & Display. Scroll down to Orientation and make sure it’s not checked. Note: On some phones there might be be only a Display settings item. If so, tap that and make sure that the Auto-rotate screen item is not checked.

悟空的第一个Android应用Say hello

这个界面叫做设计器Designer,中间的部分viewer查看台,左侧是palette组件区(包括常见的文本label、按钮Button、还有高 级一些的加速度感应计、指南针、图像、画板canvas等等)右侧的components是你的app中正在使用的组件和组件中链接的媒体(我这里链接了 一张图片和一个mp3文件);最右侧是组件的属性,包括组件的大小,文字颜色,背景色,背景图等。

我做了一个say hello,点击那头驴(实际上是个按钮)就会发出叫声。当你摇晃手机的时候,也会发出叫声。


Design相当于你做菜的时候的菜板,你把所有的葱姜蒜、肉都放在了菜板就等着下锅炒一炒了。然后你要告诉他们怎么炒,先放葱还是先放肉,这时候你就需要用到Blocks editor模块编辑器了。

每个block都有自己的相关属性,比如按钮有自己的点击、聚焦、聚焦丢失等属性;声音有自己的play、resume、stop等属性。这些都是告诉你在Designer里的组件他们的动作是什么。

我是一个有点编程基础知识的人,但是在app inventor里面完全用不到的。这个东西真是太强大了,我上初中的时候曾经梦想着有这么一个利器,Google圆了我的梦。