Handling Long Clicks with setOnLong ClickListener

A long-click is a special type of click available on the Android platform. Basically, a long-click event is when a user clicks on a control for about one second. This type of click is handled separately from a regular, short click. To handle long-clicks, you need to implement the View.OnLongClickListener class and pass it into the ImageButton control's setOnLongClickListener method. OnLongClickListener has one required method you must implement onLongClick . Here is a sample implementation of...

Editing Project Resources

By default, the Android manifest file resource editor is opened when you create a new Android project. If you have clicked away from this screen to check out the various project files, simply double-click the AndroidManifest.xml file within your new project to return to the Android manifest file resource editor (see Figure 1.3). Editing an Android resource file in Eclipse. The Android manifest file is the central configuration file for an Android application. The editor organizes the manifest...