Book Image

Google App Inventor

By : Ralph Roberts
Book Image

Google App Inventor

By: Ralph Roberts

Overview of this book

<center><iframe src="http://www.youtube.com/embed/UgRhYG_bvW8" width="500" height="315" frameborder="0"></iframe></center> <p>The number of mobile apps has grown exponentially in the last two years. If you want to join the crowd, Google’s App Inventor is the easiest and best tool for you to get started with. It is a tool to create Android phone apps and uses a graphical user interface, and drag and drop methods to create apps. It’s so simple that anyone can build an app.<br /><br />Learn how Google App Inventor eliminates the mystery around programming. It is a visual language, where we simply drag and drop blocks (graphic elements representing blocks of code) in various combinations to give us applications that run on our phones or other Android-based devices. No programming background is required. Playing with blocks has never been more fun!<br /><br />The emphasis is on creating apps that work and that you understand fully. The first part of the book gives you a sound foundation in the basics, and lots of tips on how to use App Inventor. The second part is all about creating complete apps ready for real world use. The book includes apps that communicate, use databases to remember, surf the Web and other networks, use GPS and various sensors on your phone, and let you write or play games.</p>
Table of Contents (19 chapters)
Google App Inventor
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface

Time for action vibrating buttons


  1. 1. In Design, drag a Sound component (another invisible one) and drop it on the screen. That all's we do there; nothing to attach for this purpose.

  2. 2. In Blocks Editor, open the Sound1 drawer and drag out Sound1.Vibrate. Click it into the Start button. Get a numerical variable (Built-In/Math, top choice), click it in, and change it to 200 (that's 200 milliseconds or about 1/5 of a second).

  3. 3. Click on Sound1.Vibrate to select it. Type Ctrl + C to select, click anywhere blank on the Blocks Editor screen, and type Ctrl + V to drop the copy (the number variable will be included). Drag it into the Pause button framework.

  4. 4. Click on a blank area again and do Ctrl + V to drop a second copy. Drag it into the stop button framework. Your blocks now look like the following screenshot:

Check it out on your phone. All three buttons now vibrate when tapped. Fun, yes?

VideoPlayer

The VideoPlayer component ... well... it plays videos. The component works quite similar...