O'Reilly logo

Java Programming for Android Developers For Dummies, 2nd Edition by Barry A. Burd

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 3

Creating and Running an Android App

IN THIS CHAPTER

check Creating an elementary Android app

check Running an app on an emulator or a physical device

check Adding buttons, text fields, and other components to an app

In a quiet neighborhood in south Philadelphia, there's a maternity shop named Hello World. I stumbled onto the store on my way to Pat's (to get a delicious Philly cheesesteak, of course), and I couldn't resist taking a picture of the store's sign.

Computer geek that I am, I'd never thought of Hello World as anything but an app. A Hello World app is the simplest program that can run in a particular programming language or on a particular platform.* Authors create Hello World apps to show people how to get started writing code for a particular system.

So, in this chapter, you make an Android Hello World app. The app doesn't do much. (In fact, you might argue that the app doesn't do anything!) But the example shows you how to create and run new Android projects.

image

Creating Your First App

A typical gadget comes with a manual. The manual's first sentence is “Read all 37 safety warnings ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required