O'Reilly logo

Android™ Tablet Application Development For Dummies® by Donn Felker

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

Creating the Screen Brightness Toggle

Your task at hand is to create the Screen Brightness Toggle application, and because you're already an expert on setting up new Android applications, I'm not going to walk you through it step by step. If you need a brief refresher on how to create a new Android app in Eclipse, review Chapter 5.

If you still have files open from the Hello Android project in Chapter 5, you need to do some tidying up before starting on this new project. First, close all the files you already have open in Eclipse. You can do this by closing each file individually or by right-clicking the files and choosing Close All from the shortcut menu.

After you have closed all the files, you need to close the current project (Hello Android) in which you're working. In Eclipse, in the Package Explorer, right-click the Hello Android project and choose Close Project. By closing the project, you are telling Eclipse that you currently do not need to work with that project. Doing this frees resources that Eclipse uses to track the project state, and therefore speeds up your application.

You're now ready to create your new Screen Brightness Toggle application. Follow these steps to get started:

  1. Create the new application by choosing FileimageNew Project. Choose Android Project from the list and then click the Next button.
  2. Fill out the project settings. For the appropriate values, refer ...

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