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: