Tip: Copy and Paste within the App Inventor Block Editor

This is not obvious but … you can select a group of blocks and press Ctrl-C (on Windows) and then press Ctrl-V (on Windows) to copy and paste your blocks.

Press Ctrl-X (on Windows) to delete  a selected group of blocks.  If you did not mean to delete those blocks, press Ctrl-V and paste them back!

Another trick is to select a block or blocks and then press right-click on your mouse (or Ctrl-click on Mac OS X) and then select Duplicate from the popup menu. Copy and paste should also work on Mac OS X using the standard Mac OS X keystrokes but I have not yet tested it there.

 

Tip Calculator App (version 2) for App Inventor

What the App Does

This is a simple app to calculate the tip and total bill at a restaurant – or other service provider where a tip is common place.

This is the second of 3 apps that implement a tip calculator.

  • Version 1 introduced the basic app and the use of error checking to handle user data entry mistakes.
  • Version 2 (this tutorial) introduces the Slider user interface component to select the tip amount. Using the Slider, the user selects a tip from 0% to 30%. Since there is no text entry, it is not possible for an incorrect tip value to be entered.
  • Version 3 will introduce a way to avoid all user data entry errors – by designing the app in such a way that the user can enter only correct values.

The Tip Calculator User Interface

In version 2, we eliminate the text box for tip percentage and replace it with a Slider component and we use a Label component to display the current setting of the Slider. A slider is something you drag with your finger, as shown in this screen shot:

Screenshot_2014-11-05-12-31-57

We set the tip amount by putting our finger on the “thumb” and dragging the thumb left or right. “Thumb” is the name given to the moveable control that appears on the slider.

As we drag the “thumb” control on the slider, the amount of the selected tip is shown – which is 20% in this screen shot.  Using this design with a Slider, it is impossible for someone to enter an invalid tip!

Continue reading Tip Calculator App (version 2) for App Inventor

Lenovo and NAF sponsor App Inventor-based STEM curriculum

Students will be using App Inventor:

Lenovo and the National Academy Foundation (NAF) today announced 10 NAF Academies have been selected to participate in the Lenovo Scholar Network, a program designed to enable the next generation of developers and entrepreneurs through a rich application development curriculum and creation of apps. As part of the program, students will participate in a project-based competition that tasks them with designing and developing a mobile app and a business plan for taking the app to market.

via Lenovo and the National Academy Foundation Announce Academies Selected to the Lenovo Scholar Network | Business Wire.

App Inventor said to make creation of Android apps too easy

Malicious attackers find App Inventor so easy to use they can create their own nasty Android apps quickly:

App Inventor doesn’t give malicious apps any special powers nor access to exotic exploits to attack your phone. But it does make the production of Trojanized apps enormously easy. With only a basic understanding of Android programming, an attacker can churn out tons of malicious apps.

via Mobile Threat Monday: Android Attackers Use App Inventor for Evil.

There is nothing in App Inventor itself that is any different than any other Android app written, for example, in Java using Eclipse and the Android SDK. The issue is that App Inventor lowers the barrier for writing Android apps of all types, including malware. Again, there is nothing in App Inventor itself that is nasty.

Learn to program with App Inventor