Eclipse Integrated Development Environment IDE

Eclipse is an IDE for developing applications. It is a preferred development platform for creating applications on many platforms such as JDK and Aptana. You can use Eclipse to develop desktop and mobile applications using the JDK integration. It's an open source application that IBM originally developed. It has a good plug-in model that easily integrates other tools. Although this isn't required when creating Android applications, using an IDE simplifies your development process by providing...

Android Software Development Kit SDK

The Android SDK is a set of tools and libraries for creating native Android applications. The Android SDK also includes an emulator that enables you to test your Android application before deploying it to an actual Android handset. You can download the Android SDK from http code.google.com Android download.html. A Software Development Kit (SDK) is a set of tools and libraries for creating applications. Typically, a vendor of a product releases an SDK to provide programmable access to the...

Key Components of Android

Android is designed to be different from other mobile platforms. As you've already learned, Android makes the best use of available resources by sharing those resources. But this doesn't just happen. The whole platform is designed so that sharable resources are available through the use of stacking. In the stacking method used to develop the Android platform, resources that are devoted specifically to the device reside at the bottom of the stack. Each progressive level above that becomes more...

The User Agent

The user-agent is the client application that sends a web request. This information is sent with the browser request and allows the server to send different content based on the client. For example, the user-agent helps you detect the type of web browser sending the request. To understand this further, let us send a test request for a web page. The actual URL requested during this test was http 192.168.0.5 , which is a local web server on my home network. Within the browser request is the...

Setting Up the Development Environment on Linux

Not a lot of difference arises when configuring the environment on the Linux platform. The following steps explain how to configure the development environment on Ubuntu Linux 1. Download and install the Java Standard Edition Development Kit. Use the sudo apt-get install sun-java6-jdk command in a terminal window to download and install JDK 6 on your system. 2. Download and install ANT. Use the sudo apt-get install ant command in a terminal window to download the necessary software and install...

Watching Videos with You Tube

Probably one of the hottest mobile applications right now is videos. From pod-casts to music videos, everyone is watching videos on their mobile devices or, at least, they wish they could watch videos on their mobile devices. With the Android phone, you can watch videos through the YouTube application. As good as that sounds, the video applications with Android phone have limitations and playback of those videos you have recorded. The only video playback installed on the device is the YouTube...

Capturing Video

Capturing video is a pretty straightforward task on the Android phone. From the menu, simply choose Camcorder. Remember, you can also put the Camcorder icon on the Home screen so that you don't have to dig into the menu to find it. Once you touch the Camcorder icon, the video recording software that was added to Android 1.5 automatically boots up. You'll see a small film icon in the upper right corner (if you're viewing your screen in landscape if you're viewing it in portrait mode, then the...

Picasa

In addition to these applications, YouTube is available for your G1. You can aggregate all these applications into a single page on the Web, iGoogle. To learn more about what applications are available and what you can do with those applications, go to www.google.com intl en options . You can also change the calendar view by picking a date on the Month view, or a day on the Week view. Long-press that date to open a menu that shows view options and enables you to add a new event. We return to...

Sharing Videos

Sharing your videos really isn't much different from sharing your pictures. Once you've recorded a video that you want to share, choose the share option from the options that are displayed on the preview screen. You're prompted to choose between email, messaging, and YouTube. Select the method you want to use to share the video and then complete the process using the prompts on the screen. Easy, right It really is. And to finally have the ability to share videos is a major plus for the Android...

Accessing You Tube and Videos

You access YouTube as you do any other application. From the applications menu, touch the YouTube icon. The YouTube service opens to a page that lists some of the top-rated and most popular videos of the day. These are constantly changing, so if you find something you like one time, it might not be there when you come back a second time. Fortunately, you can search for what you want. Press the Menu key and then touch the Search option. This opens the search bar at the top of the page that...

Developing Native Android Apps

You know all the features of an Android handset and have started playing with it. You have an idea for a brilliant application that you wish was shipped with the Android handset. You decide to create the application yourself and experience the excitement of running your application on your Android handset. In this chapter, we take a look at developing native Android applications. Native Android applications are applications that run within the Android runtime on an Android handset. Let's look...

Bringing It All Together Creating Your First Android Application

There are two ways to create an Android application using the tools we've discussed thus far. One is to create the application by issuing commands in a terminal or command window, another is to create the application from within the IDE, Eclipse. This section discusses creating the application using both methods. First, from the command window and then from Eclipse. To create a project, use the android script (found in the android tools directory). Open a command prompt and run this command...

Changing the Map View

You can change the map view that you're using when you're getting directions. To change your map view, press the Menu button from any map and then select Map Mode. This opens a menu similar to the one shown in Figure 7.7. To change map modes, touch the option you want Map, Satellite, Traffic, or Street View. We've worked with the Map option so far. It's a two-dimensional map, similar to looking at a paper map. Satellite View shows you the map as a satellite image, as shown in Figure 7.8. If...

Make SD Card mksdcard

When you create databases or log files, you often want to save them to an SD card. The Make SD Card tool enables you to create a disk image to simulate an SD card for the emulator. To create an SD card, run the command mksdcard 1024M img. This creates an SD card disk image named img with 1024MB capacity. When you run the emulator, pass the -sdcard argument and pass the image you want to use as the SD card for the emulator see Figure 11.18 . Creating and loading an SD card image.

Android Device Emulator emulator

The Android Device Emulator enables you to emulate an Android handset. This gives you a way to deploy your Android application and test it before you release it to the market. In the previous section we ran our sample application using the emulator. It emulates all the features of the handset and provides a way to emulate various events. You can also invoke other applications and access various functionalities in the emulator. You invoke the emulator by double-clicking it or by running the...

Setting Up the Development Environment on Windows

In this section, you'll configure the tools to create your first Android application on the Windows platform. If you're not a Windows user, skip to the next section, which explains how to configure the tools for a Linux distribution. Even though the steps describe configuring the environment on the Windows Vista platform, they are identical for other releases of the Windows operating system. 1. Download and install the Java Standard Edition Development Kit. This installs the complete set of...