Posts

Showing posts from March, 2012

Android Development, Understanding Hello World

Image
With that confirmed, let’s take a step back and have a real look at your first Android application. Activity is the base class for the visual, interactive components of your application; it is roughly equivalent to a Form in traditional desktop development. The following snippet shows the skeleton code for an Activity-based class; note that it extends Activity, overriding the onCreate method. package com.paad.helloworld; import android.app.Activity; import android.os.Bundle; public class HelloWorld extends Activity {     /** Called when the activity is first created. */    @Override    public void onCreate(Bundle icicle) {        super.onCreate(icicle);    } } What’s missing from this template is the layout of the visual interface. In Android, visual components are called Views, which are similar to controls in traditional desktop development. In the Hello World template created by the wizard, the onCreate method is overridden to call setContentView, which lays out the user interface b

Android Application Development Tutorials, installing android sdk, java ide and ecplise

Image
Versions of the SDK, Java, and Eclipse are available for Windows, Mac OS, and Linux. Android code is written using Java syntax, and the core Android libraries include most of the features from the core Java APIs. The biggest challenge with Android, as with any new development toolkit, is learning the features and limitations of its APIs. The power of Android comes from its APIs, not from Java, so being unfamiliar with all the Java specific classes won’t be a big disadvantage. To get started, you’ll need to download and install the following:  The Android SDK  Java Development Kit (JDK) http://java.sun.com/javase/downloads/index.jsp Downloading and Installing the SDK The Android SDK is completely open. http://code.google.com/android/download.html you can use any text editor or Java IDE you’re comfortable with and use the developer tools in the SDK to compile, test, and debug the code snippets and sample applications. Developing with Eclipse Using Eclipse with the ADT plug-in for your An

android development: Collection of libraries in android

Image
Android Libraries for developing the application. Core APIs for android Android offers a number of APIs for developing your applications. The following list of core APIs should provide an insight into what’s available; all Android devices will offer support for at least these APIs: android framework ❑ android.util The core utility package contains low-level classes like specialized containers, string formatters, and XML parsing utilities. ❑ android.os The operating system package provides access to basic operating system services like message passing, interprocess communication, clock functions, and debugging. ❑ android.graphics The graphics API supplies the low-level graphics classes that support canvases, colors, and drawing primitives, and lets you draw on canvases. ❑ android.text The text processing tools for displaying and parsing text. ❑ android.database Supplies the low-level classes required for handling cursors when working with databases. ❑ android.content The content API is