Example of an Android Application

The Android Developers web site has a tutorial known as “Hello, World,” which allows you to create a simple app that displays text that says anything you want it to say (the tutorial uses “Hello, World,” hence its name). You can find this tutorial at http://developer.android.com/resources/tutorials/hello-world.html, but I thought I would set up a program to do something a little more complex in order to demonstrate some of the concepts mentioned earlier.

This program, which I just call New Project, creates two buttons in the center of the screen. One button, labeled “Welcome,” creates a dialog that appears in the form of a small, pop-up window. The other button, marked “Website,” opens the application to a web ...

Get The Business of Android Apps Development: Making and Marketing Apps That Succeed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.