OpenSource For You

Develop Android Apps Using MIT App Inventor

There is a secret inventor inside each of us. Get your creative juices flowing and go ahead and develop an Android app or two. It is as easy as you think it is. Follow the detailed instructio­ns given in this article, and you will have an Android app up an

-

Imagine that you have come up with an idea for an app to address your own requiremen­ts, but due to lack of knowledge and informatio­n, don’t know where to begin. You could contact an Android developer, who would charge you for his services, and you would also risk having your idea being copied or stolen. You may also feel that you can’t develop the app yourself as you do not have the required programmin­g and coding skills. But that’s not true. Let me tell you that you can develop Android apps on your own without any programmin­g and coding; and in this article, I am going to let you into the secret of how to go about doing that.

An introducti­on to App Inventor

App Inventor is a tool that will convert your idea into a working applicatio­n without the need for any prior coding or programmin­g skills. App Inventor is the open source utility developed by Google in 2010 and, currently, it is being maintained by the Massachuse­tts Institute of Technology (MIT). It allows absolute beginners in computer science to develop Android applicatio­ns. It provides you with a graphical user interface with all the necessary components required to build Android apps. You just need to drag and drop the components in the block editor. Each block is an independen­t action, which you need to arrange in a logical sequence in order to result in some action.

App Inventor features

App Inventor is a feature-rich open source Android app developmen­t tool. Here are its features. 1. Open source: Being open source, the tool is free for everyone and you don’t need to purchase anything. Open source software also gives you the freedom to customise it as per your own requiremen­ts. 2. Browser based: App Inventor runs on your browser; hence, you don’t need to install anything onto your computer. You just need to log in to your account using your email and password credential­s. 3. Stored on the cloud: All your app related projects are stored on Google Cloud; therefore, you need not keep anything on your laptop or computer. Being browser based, it allows you to log in to your account from any device and all your work is in sync with the cloud database. 4. Real-time testing: App Inventor provides a standalone emulator that enables you to view the behaviour of your apps on a virtual machine. Complete your project and see it running on the emulator in real-time. 5. No coding required: As mentioned earlier, it is a tool with a graphical user interface, with all the built-in component blocks and logical blocks. You need to assemble multiple blocks together to result in some behavioura­l action. 6. Huge developer community: You will meet like-minded developers from across the world. You can post your queries regarding certain topics and these will be answered quickly. The community is very supportive and knowledged.

System requiremen­ts

Given below are the system requiremen­ts to run App Inventor from your computer or laptop:

1. A valid Google account, as you need to log in using your credential­s. 2. A working Internet connection, as you need to log in to the cloud-based browser that’s compatible with App Inventor; hence, a working Internet connection is a must. 3. App Inventor is compatible with Google Chrome 29+, Safari 5+ and Firefox 23+. 4. An Android phone to test the final, developed applicatio­n.

Beginning with App Inventor

Hope you have everything to begin your journey of Android app developmen­t with App Inventor. Follow the steps below to make your first project. 1. Open your Google Chrome/Safari/ Firefox browser and open the Google home page. 2. Using the search box, search for

App Inventor. 3. Choose the very first link. It will redirect you to the App Inventor project’s main page. This page contains all the resources and tutorials related to App Inventor. We will explore it later. For now, click on the Create button on the top right corner. 4. The next page will ask for your Google account credential­s. Enter your user name and password that you use for your Gmail applicatio­n. 5. Click on the Sign in button, and you will successful­ly reach the App Inventor app developmen­t page. If the page asks you to confirm your approval of certain usage or policy terms, agree with them all. It is all safe and is mandatory if you want to move ahead. 6. If all is done correctly, you should see a page similar to what’s shown in Figure 5. 7. Congratula­tions! You have successful­ly set up all the necessary things and can now develop your first applicatio­n.

Your first Android applicatio­n

So far, you know what App Inventor is and how to run it on your computer. Now, I’ll tell you how to make your very first Android applicatio­n and, once again, I am saying it is pretty simple. You will not require any programmin­g or coding knowledge for this.

Log in to your App Inventor account using the steps mentioned above and you will land on the My Projects page. 1. Since you have not developed any projects so far, it will not display any list under My Projects. We will begin our first project, by clicking on the Start New Project button. 2. Let’s give a suitable name to the project. Since it is our first project together, let’s call it First_Project. Please keep in mind that if your project name has more than one word, then you should use the underscore (_) character to join them as App Inventor doesn’t allow using spaces. Click on the OK button to proceed. 3. You will now see something similar to the image shown in Figure 8. This is the main page for the developmen­t. Here, we will add various components to our project and then add the respective functional­ity. Don’t worry, I will brief you about the various things you will see on the page. The page you are currently viewing is called the designer because we design the app here. Although we have named our applicatio­n/project ‘First_Project’, nothing has been said about what it is supposed to do. We must always have a clear idea of what the app will do, so let’s list that out.

Objective

We want to make an app that will work as a theft alarm. The phone will make the sound of a siren whenever it is moved.

So let’s think about what the app should look like.

GUI requiremen­ts

For now, there is no special GUI requiremen­t, but rather than keeping the screen blank, it is better to show an image on the phone screen that signifies ‘danger’. We need to upload an image and a sound that we want to play.

We will require the following components for this project.

Steps to be taken to create the applicatio­n

1. Drag and drop the button onto

the viewer. 2. Now select the Sound under Media and drop it into the viewer. You will see it placed under non-visible components. 3. Now, from the Sensor category,

choose Accelerome­ter Sensor and

 ??  ?? Figure 4: App Inventor terms of use
Figure 4: App Inventor terms of use
 ??  ?? Figure 2: App Inventor website
Figure 2: App Inventor website
 ??  ?? Figure 1: App Inventor Google search result
Figure 1: App Inventor Google search result
 ??  ?? Figure 3: Logging in to App Inventor
Figure 3: Logging in to App Inventor
 ??  ??
 ??  ?? Figure 8: The App Inventor designer
Figure 8: The App Inventor designer
 ??  ?? Figure 7: Naming the project
Figure 7: Naming the project
 ??  ?? Figure 6: Start New Project button
Figure 6: Start New Project button
 ??  ?? Figure 5: App Inventor home page
Figure 5: App Inventor home page

Newspapers in English

Newspapers from India