Sei sulla pagina 1di 36

Android Tutorial Android Tutorials Development and Android Programming Tutorial Online Course taught by real tutors through

h video, weekly worksheets, private forum access and one-on-one support. Skip to content

* Home * About * Android SDK Tutorials

Older posts Android Tutorial | Online Android Development Tutorials Posted on November 2, 2010 by admin

Heres a great Android Tutorial and Android Development Tutorials Course taught by real teachers who guide you step by step overa 10 week period.

Android development is becoming hot and all developers who venture into the mobile programming space must move towards learning how to program for Android.

As Google and other Android device manufacturers embed the Android OS into more and more mobile devices including tablet touch PCs this is a skill you want to learn as quickly as possible.

By taking this course you will master all aspects of Android SDK development and programming in a matter of weeks. The course is taught step by step by real tutors through online video, one-on-one email help, live private forum and weekly worksheets.

Inside This Android Tutorials Program You Will

* Master Android Development via a fun and easy to learn system * Learn step-by-step via Online Video Tutorials, PDFs and Worksheets * Get direct guidance and live One-on-One Support from our Tutors * Take Weekly Exercises that are then reviewed and graded for you * Have Tutors chart and monitor your progress on a regular basis * Learn from the comfort of your home, at the time of your convenience * Work on a live commercial project as part of your final project * Get an EDUmobile certification for the full tenure of the course

The course is run by EDUmobile.ORG the professional online mobile training institute. To learn more about Android Tutorial and training visit their site.

Once candidates complete the Android course they may go on to independently create and publish their own Android Apps, or work as Freelancers taking on Android projects for Clients from sites like Elance and oDesk, or they can directly benefit from a higher pay having enhanced their technical skill sets in a cutting edge technology space.

Here is an overview of the android development course material that is taught over 10 weeks of intense Android Tutorials

Week 1 Introduction to Android and Java

(a) Installing Android (b) Creating Hello World (c) Running on Emulator (d) Introduction to Java Data types, Loops, Conditionals and Operators

Week 2 Android Architecture and OOPS

(a) Building Blocks of Android (b) Java Classes and Objects (c) Class Methods and Instances (d) Inheritance and Polymorphism in Java (e) Interface and Abstract class

Week 3 Android UI and Advance Java

(a) Using resources (b) Using themes (c) Debugging Android Code (d) Settings (e) Java I/O (f) Threads and Synchronization

Week 4 Android Graphics and Multimedia

(a) Basic Graphics (b) Input Handling (c) Playing Audio (d) Playing Video

Week 5 Persistence in Android

(a) Accessing Internal Files system (b) Acessing SD cards (c) Introduction to SQLite

(d) Data Binding (e) Content Provider

Week 6 Network Awareness

(a) Accessing the Internet (b) Using Web services (c) Using Java and Java Script (d) Location Sensing

Week 7 3D graphics in OpenGL and other views

(a) OpenGL Introduction (b) Using Threads and Models (c) Texture in OpenGL (d) Making a application in OpenGL (e) Other standard views in Android

Week 8 Widgets and the way ahead

(a) Android Widget Development (b) The Path Ahead for Android (c) Running Application on device (d) Android Market Some Dos and Donts (e) Introduction to System programming in Android

Week 9 & Week 10 Live Project

(a) Design and Requirement analysis support (b) Implementation and QA support

Visit EDUmobile.ORG to learn more about the Android Tutorials and Android Development Training Course Program.

learn android programming Posted in Android Development | Tagged android course, android development, android programming, android sdk, android tutorial, android tutorials, learn android development, learn android programming | Leave a comment Learn How to Create android application on your own Posted on December 1, 2011 by admin

We are living in an era when smart phones have become unavoidable part of the life. Among these, smart phones have grabbed our work life too. Smart phones, i.e. phones with computing facility has now become the potential risk to regular computers, because many software applications can be run on it and now we do not require desktop or laptop. And among these smart phones, android phones have become popular at relatively higher speed. With the ever increasing popularity of android phones the demand for android application enhanced. Android is the prime OS for developing applications in today for several reasons. The actual reasons being that it is Open Source and Intuitive. Furthermore, it uses Java for development, which is quite an easy language to get used to and develop in.

how to make Android apps

Following are the ways that can help you in Android apps development are:

1. You can use the Eclipse as your IDE as simply being a excellent plugin it can handle the development immediately assists in monitoring the development cycle very fast as a result it helps you to enjoy easy development in a limited period of time.

2. Google is always prepared to introduce a innovative tool which can assist even a non developer with little knowledge of creating apps to develop wonderful android apps in a much better way.

3. You can also take the help of a software development kit or SDK that originates with a unique variety of modules that has the potential to assist you to build up android Apps from the scratch.

4. You can even find many guides that give you an support in creating android apps on your own. Hence without spending money you can understand more about creating apps.

5. You can even rely on app inventor another ideal source that aid you to design apps as per your desire and hope.

Android application development is progressively becoming a necessity. Apps can be easily made for smart phones without the need to undergo tricky procedures and offers a great deal of returns on investment. The Android applications have added a substantial revolution in the market of smart phones. The applications have the potential of affecting every single lifestyle. Android application development is considered the most talented application platforms. It provides developers simple and correct development for multipart business necessities. As more and more Android smart phones are sold in the market the interest in new android applications are expanding pushing developers to go beyond their expertise to meet the public demand. In short, Android market is an open platform for all and creating apps no more remains a developers job. Even though if you are a non-developer you have equal chances to learn how to make Android apps, create, and try to launch apps that can assist you completely. Posted in Android Development | Tagged how to make an app for android, how to make Android app, how to make Android apps, learn how to make Android apps | Leave a comment 10 Best Open Source Android Applications which every Android developer must look into Posted on March 10, 2011 by admin

I used to study code from famous open source projects to check out how others execute specific features as well as to learn from them. (I am a firm believer of the fact that you need to read good code to write good code)

Not Long Ago I have been following up a selection of good open source Android apps development and considered itemizing them here in order that it could be useful for many others. Example Apps by Android Team.

Could there be a better way to start off without going through the code of the developers who developed the framework? ;) These are 15 various android sample apps developed by the primary developers of the Android framework. These include a few games, photostream, time display, home display shortcuts etc.

url : http://code.google.com/p/apps-for-android/

Remote Droid

RemoteDroid is undoubtedly an android app which turns your phone into a wireless keyboard and mouse along with touchpad, using your own wireless network. You can learn lot of things like linking to a network, managing user finger motion etc from its source.

url: http://code.google.com/p/remotedroid/

TorProxy and Shadow

TorProxy is an implementation of Tor for Android mobiles. Along with Shadow, it enables you to surf internet site anonymously through your cell phone. You can study regarding tunnelling socket connections, managing cookies etc by reading its source code.

url: http://www.cl.cam.ac.uk/research/dtg/code/svn/android-tor/ and http://www.cl.cam.ac.uk/research/dtg/android/tor/

Android SMSPopup

It is an Android app that will intercepts incoming text messages and shows them in the pop-up window. Besides becoming a time saver, this app also shows us the best way to interface with the built-in application that handles SMS.

url: http://code.google.com/p/android-smspopup/

Standup Timer

Standup Timer is an Android application that behaves as a basic, stand-up meeting stopwatch. It can be used to ensure that your stand-up assembly completes on time, and provides each of the members the same share of time to state their progress. You can learn how to operate the timer features simply by reading through the source code. In addition this applications has clear distinction between view, model etc and has large amount of util procedures that we can reuse in our app.

url: http://github.com/jwood/standup-timer

Foursquare

It is a four square client for android. This app is basically divided into two components; Reading through the source code you can discover how to make

url: http://code.google.com/p/foursquared/

Pedometer

The pedometer app attempts to take the number of steps you take every day. However the count isnt precise, you can learn different things such as interacting with accelerometer, doing voice updates, running background services etc by just studying its source code.

url: http://code.google.com/p/pedometer/

opensudoku-android

OpenSudoku is an easy open source sudoku game. You can learn the best way to show things in a grid in your view and also how to interact with a website by reading its source code.

url: http://code.google.com/p/opensudoku-android/

ConnectBot

ConnectBot is a Secure Shell client for the Android platform. You will find lot of good stuff about this apps source code. Check it out for your self :)

http://code.google.com/p/connectbot/

WordPress for Android

How can a person expect a list of apps from me without mentioning WordPress ;) This android app is from the official WordPress development team. You can learn steps to make XMLRPC calls (as well as other cool things) by reading its source code.

url: http://android.svn.wordpress.org/trunk/

If you got worthwhile open source android apps from where we could learn something, then do leave a comment and I will include them up here, If anyone interested in learning Android app programming can visit EDUmobile.ORG Posted in Android App tutorial | Tagged Android app development, android app tutorial, Android game tutorial | 2 Comments Android SDK Tutorial Learn how to install Android SDK Posted on January 12, 2011 by admin

Installing the SDK

This page describes how to install the Android SDK and set up your development environment for the first time. If you encounter any problems during installation, see the Troubleshooting section at the bottom of this page.

Updating?

If you already have an Android SDK, use the Android SDK and AVD Manager tool to install updated tools and new Android platforms into your existing environment. For information about how to do that, see Adding SDK Components here http://developer.android.com/sdk/adding-components.html

Step 1. Preparing Your Development Computer

Before getting started with the Android SDK, take a moment to confirm that your development computer meets the System Requirements. In particular, you might need to install the JDK, if you dont have it already.

If you will be developing in Eclipse with the Android Development Tools (ADT) Pluginthe recommended path if you are new to Androidmake sure that you have a suitable version of Eclipse installed on your computer (3.4 or newer is recommended). If you need to install Eclipse, you can download it from this location:

http://www.eclipse.org/downloads/

For Eclipse 3.5 or newer, the Eclipse Classic version is recommended. Otherwise, a Java or RCP version of Eclipse is recommended.

Step 2. Downloading the SDK Starter Package

The SDK starter package is not a full development environmentit includes only the core SDK Tools, which you can use to download the rest of the SDK components (such as the latest Android platform).

If you havent already, get the latest version of the SDK starter package from the SDK download page http://developer.android.com/sdk/index.html

If you downloaded a .zip or .tgz package (instead of the SDK installer), unpack it to a safe location on your machine. By default, the SDK files are unpacked into a directory named android-sdk-.

If you downloaded the Windows installer (.exe file), run it now and it will check whether the proper Java SE Development Kit (JDK) is installed (installing it, if necessary), then install the SDK Tools into a default location (which you can modify).

Make a note of the name and location of the SDK directory on your systemyou will need to refer to the SDK directory later, when setting up the ADT plugin and when using the SDK tools from command line.

Step 3. Installing the ADT Plugin for Eclipse

Android offers a custom plugin for the Eclipse IDE, called Android Development Tools (ADT), that is designed to give you a powerful, integrated environment in which to build Android applications. It extends the capabilites of Eclipse to let you quickly set up new Android projects, create an application UI, debug your applications using the Android SDK tools, and even export signed (or unsigned) APKs in order to distribute your application. In general, developing in Eclipse with ADT is a highly recommended approach and is the fastest way to get started with Android.

If youd like to use ADT for developing Android applications, install it now. Read Installing the ADT Plugin for step-by-step installation instructions, then return here to continue the last step in setting up your Android SDK.

If you prefer to work in a different IDE, you do not need to install Eclipse or ADT, instead, you can directly use the SDK tools to build and debug your application. The developer guide has more information about Developing in Other IDEs.

Step 4. Adding Platforms and Other Components

The last step in setting up your SDK is using the Android SDK and AVD Manager (a tool included in the SDK starter package) to download essential SDK components into your development environment.

The SDK uses a modular structure that separates the major parts of the SDKAndroid platform versions, add-ons, tools, samples, and documentationinto a set of separately installable components. The SDK starter package, which youve already downloaded, includes only a single component: the latest version of the SDK Tools. To develop an Android application, you also need to download at least one Android platform and the SDK Platform-tools (tools that the latest platform depend upon). However, downloading additional components is highly recommended.

If you used the Windows installer, when you complete the installation wizard, it will launch the Android SDK and AVD Manager with a default set of platforms and other components selected for you to install. Simply click Install to accept the recommended set of components and install them. You can then skip to Step 5, but we recommend you first read the section about the Available Components to better understand the components available from the Android SDK and AVD Manager.

You can launch the Android SDK and AVD Manager in one of the following ways:

From within Eclipse, select Window > Android SDK and AVD Manager.

On Windows, double-click the SDK Manager.ext file at the root of the Android SDK directory.

On Mac or Linux, open a terminal and navigate to the tools/ directory in the Android SDK, then execute:

To download components, use the graphical UI of the Android SDK and AVD Manager, shown in Figure 1, to browse the SDK repository and select new or updated components. The Android SDK and AVD Manager will install the selected components in your SDK environment. For information about which components you should download, see the following section about Recommended Components.

Figure 1. The Android SDK and AVD Managers Available Packages panel, which shows the SDK components that are available for you to download into your environment.

Available Components

By default, there are two repositories of components for your SDK: Android Repository and Third party Add-ons. The Android Repository offers these types of components:

SDK Tools (pre-installed in the Android SDK starter package) Contains tools for debugging and testing your application and other utility tools. You can access these in the /tools/ directory of your SDK and read more about them in the Tools section of the developer guide.

SDK Platform-tools Contains tools that are required to develop and debug your application, but which are developed alongside the Android platform in order to support the latest features. These tools are typically updated only when a new platform becomes available. You can access these in the /platform-tools/ directory. Read more about them in the Tools section of the developer guide.

Android platforms An SDK platform is available for every production Android platform deployable to Android-powered devices. Each platform component includes a fully compliant Android library and system image, sample code, emulator skins, and any version specific tools. For detailed information about each platform, see the overview documents available under the section Downloadable SDK Components, at left.

USB Driver for Windows (Windows only) Contains driver files that you can install on your Windows computer, so that you can run and debug your applications on an actual

device. You do not need the USB driver unless you plan to debug your application on an actual Android-powered device. If you develop on Mac OS X or Linux, you do not need a special driver to debug your application on an Android-powered device. (See Developing on a Device for more information about developing on a real device.)

Samples Contains the sample code and apps available for each Android sdk development platform. If you are just getting started with Android development, make sure to download the samples to your SDK.

Documentation Contains a local copy of the latest multiversion documentation for the Android framework API.

The Third party Add-ons provide components that allow you to create a development environment using a specific Android external library (such as the Google Maps library) or a customized (but fully compliant) Android system image. You can add additional Add-on repositories, by clicking Add Add-on Site.

Recommended Components

The SDK repository contains a range of components that you can download. Use the table below to determine which components you need, based on whether you want to set up a basic, recommended, or full development environment:

Once youve installed at least the basic configuration of SDK components, youre ready to start developing Android apps. The next section describes the contents of the Android SDK to familiarize you with the components youve just installed.

For more information about using the Android SDK and AVD Manager, see the Adding SDK

Components document here http://developer.android.com/sdk/adding-components.html.

Step 5. Exploring the SDK (Optional)

Once youve installed the SDK and downloaded the platforms, documentation, and addons that you need, we suggest that you open the SDK directory and take a look at whats inside.

The table below describes the full SDK directory contents, with components installed.

Optionally, you might want to add the location of the SDKs tools/ and platform-tools to your PATH environment variable, to provide easy access to the tools.

How to update your PATH

Adding both tools/ and platform-tools/ to your PATH lets you run command line tools without needing to supply the full path to the tool directories. Depending on your operating system, you can include these directories in your PATH in the following way:

On Windows, right-click on My Computer, and select Properties. Under the Advanced tab, hit the Environment Variables button, and in the dialog that comes up, double-click on Path (under System Variables). Add the full path to the tools/ and platform-tools/ directories to the path.

On Linux, edit your ~/.bash_profile or ~/.bashrc file. Look for a line that sets the PATH environment variable and add the full path to the tools/ and platform-tools directories to it. If you dont see a line setting the path, you can add one:

export PATH=${PATH}:/tools:/platform-tools

On a Mac OS X, look in your home directory for .bash_profile and proceed as for Linux. You can create the .bash_profile if you dont already have one.

After following the above Android SDK tutorial for successful installation of Android SDK in our PC you are ready to begin developing applications. Now next step will be learning Android development and create your own apps and games.

Troubleshooting

Ubuntu Linux Notes

If you need help installing and configuring Java on your development machine, you might find these resources helpful: o https://help.ubuntu.com/community/Java o https://help.ubuntu.com/community/JavaInstallation

Here are the steps to install Java and Eclipse, prior to installing the Android SDK and ADT Plugin.

1. If you are running a 64-bit distribution on your development machine, you need to install the ia32-libs package using apt-get::

apt-get install ia32-libs

2. Next, install Java:

apt-get install sun-java6-jdk

3. The Ubuntu package manager does not currently offer an Eclipse 3.3 version for download, so we recommend that you download Eclipse from eclipse.org (http://www.eclipse.org/ downloads/). A Java or RCP version of Eclipse is recommended.

4. Follow the steps given in previous sections to install the SDK and the ADT plugin. Other Linux Notes

If JDK is already installed on your development computer, please take a moment to make sure that it meets the version requirements listed in the System Requirements. In particular, note that some Linux distributions may include JDK 1.4 or Gnu Compiler for Java, both of which are not supported for Android development.

learn android programming Posted in Android SDK Tutorial | Tagged android sdk, android sdk development, Android SDK Platform, android sdk tutorial | Leave a comment Android App Development Some Basic Tips For Android Application Development. Posted on January 6, 2011 by admin

Android is a mobile software platform. It is an operating system too. It is designed based upon Linux Kernel. It is developed by Google and the Open Handset Alliance. Being an opensource platform there is no license fees so it reduces the initial investment of the project owner.

In the era of mobile technology, Android has been showing its enormous presence attracting, both, users and Android application developers. Since its release in 2007, we have found Androids prospects in developing quality mobile applications. Whenever Google releases new versions of Android SDK, multiple new features are added to compete in the mobile technology world.

Android has various characteristics to produce revolutionary mobile applications.

* To send and receive data across mobile platform Android uses various technologies like GSM, EDGE, CDMA, Bluetooth, Wi-Fi, EV-DO, and UMTS

* SQ-Lite for data storage

* Android has wide range of libraries for image, video and audio files like MPEG4, H.263, H.264, AMR, AMR-WB, MP3, AAC, JPG, BMP, GIF, PNG, WAV, and MIDI formats.

* It has comprehensive libraries for 2d and 3d graphics

* It has Inter-Process Communication (IPC) message passing facilities

* You can use Google talk for P2P communication

* It has features for video camera, touch screens, GPS, accelerometer, and magnetometer.

Android has SDK which provides tools and libraries for Android app development. With its SDK a developer can design the UI for an application and debug it as well.

The SDK includes multiple versions of Android platform (For example, Android 1.1, and Android 1.5) that you can use for Android Application Development. For every version, the SDK offers a fully compliant Android library and system image.

Android SDK includes some core applications:

* An e-mail client compatible with Gmail

* An SMS program

* A Personal Information Management (PIM) program including a calendar and contact list

* A Google Map Application

* A web browser

* A music player

* A picture viewer

* The Android Marketplace client to download third-party application

* The Amazon MP3 store client to purchase DRM free music

Android Application Development is based on four basic elements:

* Activities: A UI component that corresponds to display screens. Each activity displays one screen to the user. When the activity is not running, the operating system can kill it to save memory space.

* Broadcast Receiver: Is a reaction to an event. For example, phone ringing.

* Services: The tasks that run in the background. For example, an MP3 players running in the background while the user has gone to use other application on mobile device.

* Content Provider: Shares data with other activities and services.

Some Benefits of Google Android Application Development

* Android is an opensource platform means it is open for all so you can find a dedicated community of developers who are ready to help other developers and assure your bug free development.

* There is ease of development and porting with Android. By default Android is configured to auto-scale everything, however if layouts are specified with exact value then developer can make necessary changes with the help of published content. Support for porting is much simpler in case of Android.

* Android has Linux core so its operating system exhibits solid stability against the crashes and anomalies in the system.

* There are many ways to sell an Android application. First you can sell it through Android App Market where the majority of users come in order to purchase and download Android apps. Second way is the third party stores where any one can sell their apps.

* If you have quality work and you can deliver as per the aspiration of the users then it is sure that you will get good price in Android App Market. So you have good ROI in Android app development.

* Its built to speeding up the information gathering process and delivers exact user requested information.

* It has reduced the application development cycle, and easy to use development tools to ensure fast development.

Android Application Development is a booming business among software development companies these days. The developers have leveraging skills and expertise in Android App Development. It has showed new path for the incredible growth of Outsourcing Android services and expertise.

learn android programming Posted in Android app development | Tagged Android app development, Android apps development, Android game development | Leave a comment A Bit Of Theory On The Android Development Platform Posted on December 24, 2010 by admin

Let us now go through some important features of Android and see how they are linked and provides application developers powerful environment to work in. It primarily consists of a stack of operating system, middleware and key applications which can be summarized as follows

Application framework The application framework is a component driven system where old components are replaced and new components are added thereby keeping the environment dynamic.

Dalvik Virtual machine it is an optimized java virtual machine.

Integrated Browser Webkit based internet browser.

SQLite A relational data base for applications.

Media support It has codecs for common video and audio support.

Telephony components These include other GSM and CDMA telephony components along with other phone features.

Structurally Android can be broken down into four major parts -

Applications - The actual application that the user interacts with resides in this layer. All your third party applications you create will belong to this part of the system.

Application Framework The application framework provides usable components for the application developers on top of which new applications can be built. It include things like Views, Resource manager, content providers and notification manager helping the application use underlying standard libraries.

Libraries It is the C/C++ libraries used by Android system. These are provided to the developer through Application framework.

Linux Kernel Android uses linux kernel for hardware management and providing hardware abstraction to the rest of the software stack.

learn android programming Posted in Android Development | Tagged android development framework, android environment, android programming theory | 1 Comment Android SDK Installation and Usage PART 2 Posted on December 17, 2010 by admin

Downloading Android Starter package

Once you have your system ready you need to download the Android Starter package. The starter package is not a full development environment it includes only the core SDK Tools, which you can use to download the rest of the SDK components. You can get the latest version of the SDK starter package from the

Link http://developer.android.com/sdk/index.html

After downloading, unpack the Android SDK archive to a safe location on your machine. Make a note of the name and location of the unpacked SDK directory on your system you will need to refer to the SDK directory later, when setting up the ADT plugin or when using the SDK tools.

On Windows, right-click on My Computer, and select Properties. Under the Advanced tab, hit the Environment Variables button, and in the dialog that comes up, double-click on Path (under System Variables). Add the full path to the tools/ directory to the path.

Installing the ADT plug-in

ADT has been created for Android to ease the development of applications using an integrated system for development, compiling and signing and transferring to an android

device. It helps us quickly integrate java code with Android API and create applications with it. To simplify ADT setup, we recommend installing the Android SDK prior to installing ADT. When your Eclipse and Android SDK environments are ready, continue with the ADT installation as described in the steps below.

1. Start Eclipse, then select Help > Install New Software. 2. In the Available Software dialog, click Add. 3. In the Add Site dialog that appears, enter a name for the remote site (for example, Android Plugin) in the Name field.

In the Location field, enter this URL:

https://dl-ssl.google.com/android/eclipse/

If you have trouble acquiring the plugin, you can try using http in the URL, instead of https (https is preferred for security reasons.

Click OK.

1. Back in the Available Software view, you should now see Developer Tools added to the list. Select the checkbox next to Developer Tools, which will automatically select the nested tools Android DDMS and Android Development Tools. Click Next. 2. In the resulting Install Details dialog, the Android DDMS and Android Development Tools features are listed. Click Next to read and accept the license agreement and install any dependencies, then click Finish. 3. Restart Eclipse.

Configuring the ADT Plugin

Once youve downloaded ADT the next step is to modify your ADT preferences in Eclipse to point to the Android SDK directory:

1. Select Window > Preferences to open the Preferences panel (Mac OS X: Eclipse > Preferences). 2. Select Android from the left panel. 3. For the SDK Location in the main panel, click Browse and locate your downloaded SDK directory. 4. Click Apply, then OK.

Adding Android platform

The last step is to use AVD manager to install various components into you development environment. 5. Launching from Eclipse/ADT

If you are developing in Eclipse and have already installed the ADT Plugin, follow these steps to access the Android SDK and AVD Manager tool:

1. Open Eclipse 2. Select Window > Android SDK and AVD Manager. 3. Select Available Packages in the left panel. This will reveal all of the components that are currently available for download from the SDK repository. 4. Select the component(s) youd like to install and click Install Selected. 5. Verify and accept the components you want and click Install Accepted. The components will now be installed into your existing Android SDK directories.

New platforms are automatically saved into the <sdk>/platforms/ directory of your SDK; new add-ons are saved in the <sdk>/add-ons/ directory; samples are saved in the <sdk>/samples/android-<level>/; and new documentation is saved in the existing <sdk>/docs/ directory (old docs are replaced).

learn android programming Posted in Uncategorized | Tagged android development, android sdk installation, android sdk tutorial, android tutorial | 2 Comments

Android SDK Installation and Usage PART 1 Posted on December 8, 2010 by admin

Please follow the steps mentioned below to install Android SDK and eclipse IDE to get started with application development.

Preparing your development machine

Your development system should first download some software before you can program for it. The first one is the JDK which you can download from -

http://www.oracle.com/technetwork/java/javase/downloads/index.html

As this book is targeted towards beginners we suggest using Eclipse and ADT plug-in to develop for android. You can switch to different tool chain once you are familiar with the Android APIs.

You can download eclipse from here -

http://www.eclipse.org/downloads/

You can use any eclipse IDE above 3.4 but you should always use the latest version.

Note: Make sure you first install the JDK before installing the Eclipse.

Google Recommends

Operating Systems

* Windows XP (32-bit), Vista (32- or 64-bit), or Windows 7 (32- or 64-bit)

* Mac OS X 10.5.8 or later (x86 only)

* Linux (tested on Linux Ubuntu Hardy Heron)

* 64-bit distributions must be capable of running 32-bit applications. For information about how to add support for 32-bit applications, see the Ubuntu Linux installation notes.

Supported Development Environments

* Eclipse IDE * Eclipse 3.4 (Ganymede) or 3.5 (Galileo)

Caution: There are known issues with the ADT plugin running with Eclipse 3.6. Please stay on 3.5 until further notice.

Eclipse JDT plugin (included in most Eclipse IDE packages)

If you need to install or update Eclipse, you can download it from http://www.eclipse.org/downloads/

Several types of Eclipse packages are available for each platform. For developing Android applications, we recommend that you install one of these packages:

* Eclipse IDE for Java EE Developers * Eclipse IDE for Java Developers * Eclipse for RCP/Plug-in Developers * Eclipse Classic (versions 3.5.1 and higher) * JDK 5 or JDK 6 (JRE alone is not sufficient) * Android Development Tools plugin (optional)

Not compatible with Gnu Compiler for Java (gcj) Other development environments or IDEs

* JDK 5 or JDK 6 (JRE alone is not sufficient) * Apache Ant 1.6.5 or later for Linux and Mac, 1.7 or later for Windows

Not compatible with Gnu Compiler for Java (gcj)

Note: If JDK is already installed on your development computer, please take a moment to make sure that it meets the version requirements listed above. In particular, note that some Linux distributions may include JDK 1.4 or Gnu Compiler for Java, both of which are not supported for Android development. Hardware requirements

The Android SDK requires disk storage for all of the components that you choose to install. The table below provides a rough idea of the disk-space requirements to expect, based on the components that you plan to use. Component type SDK Tools Approximate size 50 MB Required. 150 MB Optional. 10 MB 10M 250 MB Optional. For Windows only. Optional. Optional. At least one platform is required. Comments

Android platform (each) SDK Add-on (each) 100 MB USB Driver for Windows Samples (per platform) Offline documentation

Note that the disk-space requirements above are in addition to those of the Eclipse IDE, JDK, or other prerequisite tools that you may need to install on your development computer.

# end of part 1 Posted in Android Development | Tagged android sdk development, android sdk installation, how to install android sdk | 1 Comment Android API level | A Brief Introduction to Android Programming Posted on December 6, 2010 by admin

The SDKs distribution currently in the market.

Google has released the Android platform under following versions.

* Android 1.0 * Android 1.1 * Android 1.5 * Android 1.6 * Android 2.1 * Android 2.2

Android API Level is an integer value that uniquely identifies the framework API revision offered by a version of the Android platform. The Android platform provides a framework API that applications can use to interact with the underlying Android programming system. The framework API consists of:

* A core set of packages and classes * A set of XML elements and attributes for declaring a manifest file * A set of XML elements and attributes for declaring and accessing resources * A set of Intents * A set of permissions that applications can request, as well as permission enforcements included in the system

Platform Version Android 2.2 Android 2.1 Android 2.0.1 Android 2.0 Android 1.6 Android 1.5 Android 1.1 Android 1.0

API Level 8 7 6 5 4 3 2

The above data will give you a peek into the Android marketplace for which you will create products.

The Android Development is done on two levels -

System Level It involves modifying the Android system code and adapting it to various hardware platforms. It also involves creating additional services and features in the android system itself.

Application level It involves creating software products and services which sits on top of the Android software stack and interacts with the hardware through the underlying Android platform.

In our free first chapter of the android development tutorial ebook, that is available for all, we will limit our discussion in this book only for Application level programming for Android and Android Marketplace. The System level programming is out of the scope of this free ebook and if you want to jump right into it, you should perhaps start with C and Linux kernel programming.

So now that we have defined the scope of our discussions we must outline what is the minimum requirement for you to learn the application programming for Android OS.

Android applications are built using Java. The Java byte code executes on a efficient and modified virtual machine known as Dalvik Virtual Machine. Dalvik does not align to Java SE nor Java ME Class Library profiles (e.g., Java ME classes, AWT or Swing are not supported). Instead it uses its own library built on a subset of the Apache Harmony Java implementation. So you need to know basic core java but it alone is not sufficient to leverage this great platform for creating great applications. However to follow this book you need to have a basic understanding of Java, XML, Eclipse and object oriented programming principles.

To summarize, you are expected to know the following basics before you jump into any Android Training -

Core Java Standard Java programming is necessary to program applications for Android. You should understand operators, loops and should have a basic idea of classes and objects. You can refer here to brush up your java skills

Link - http://download.oracle.com/javase/tutorial/

XML You should know what the XML standard is all about and how it is used in software applications.

Link - http://www.w3schools.com/xml/default.asp

Eclipse If you have worked in any IDE for Java you should be ok with eclipse. You can read more about it here.

Link - http://www.vogella.de/articles/Eclipse/article.html

Object fundamentals You will be able to create elegant and efficient programs if you know the basics of OOPs. Features like Inheritance, Polymorphism, Encapsulation and Overloading help us create efficient and organized software systems and it is expected that you as ajava programmer must know them. Look at the following links for these concepts

Link - http://download.oracle.com/javase/tutorial/java/concepts/

learn android programming Posted in Android Development | Tagged android api, android development, android programming, android sdk tutorial | Leave a comment 8 Fantastic Open Source Free Android Apps Posted on November 17, 2010 by admin

Heres a great list of 8 fantastic open source Android Apps that every Android developer must look at. Its absolutely essential that you read good code if you are to learn how to write good code! Follow this principal and you will win half the battle of learning android development. These 8 different android sample apps have been written by the core developers of the Android framework. They all include games, time display, photostream, home screen shortcuts and such.

1. Android SMSPopup

http://code.google.com/p/android-smspopup/

This Android app intercepts incoming text messages and then displays them on your device in a popup window. So bascially, this app will show you how to interface with the built-in android app which manages SMS.

2. WordPress for Android

http://android.svn.wordpress.org/trunk/

This is the famous WordPress for Android! It is made by the guys behind the WordPress platform and its all Open! By looking at this android code and studying it, you will learn how to make XMLRPC calls and some other nifty things.

3. Foursquare

http://code.google.com/p/foursquared/

Now you can see the code that powers the famous four square like client for android platform.

4. Standup Timer

http://github.com/jwood/standup-timer

Standup Timer is an Android app that will act as a simple, stand-up meeting stop watch. This can be used to make sure that your stand-up meeting finishes on time! It gives all the meeting participants the same amount of time to state their progress. Learn how to use timer functionality by going through this code. A

5. Open Sudoku

http://code.google.com/p/opensudoku-android/

OpenSudoku is well a very simple sudoku game. By going through this code you will learn how to display elements in a grid like fashion on your display and in your view. You will also learn how to interact with the web data.

6. TorProxy and Shadow

http://www.cl.cam.ac.uk/research/dtg/code/svn/android-tor/

http://www.cl.cam.ac.uk/research/dtg/android/tor/

TorProxy is basically the implementation of Tor for Android mobiles. This implemtation

along with Shadow, will allow you to browse any website anonymously. By studyin this code you can quickly leanr how to tunnel socket connections and manage cookies.

6. ConnectBot

http://code.google.com/p/connectbot/

ConnectBot is a basically a Secure Shell client for the Android OS. You need to see this ones code yourself!

7. Pedometer

http://code.google.com/p/pedometer/

Pedometer Android App will measure how many steps you take every day! However, note that the count may not be very accurate. By studying this android tutorial code you will learn how to interact with the accelerometer, make voice updates and how to run background services.

8. Remote Droid

http://code.google.com/p/remotedroid/

RemoteDroid is an android app that converts your phone into a wireless keyboard and also a mouse with touchpad. It uses your own wireless network to do this. By studying this code, the main things you will learn are how to connect to a network and control user finger movement.

Get more code here .

http://code.google.com/p/apps-for-android/

learn android programming Posted in Android Development | Tagged android open source apps, free android code, open source android | Leave a comment Android Tutorial Video A first hand look at building an Android Application Posted on November 9, 2010 by admin

Heres a great video for anyone starting out in Android Development. IN this Android Training video the famous Dan Morrill (on Youtube) builds a simple application on the Android platform. He takes you through step-by-step. It was very creative to see the Interactive Transcript for the video running along with the presentation. His presentation skills for Tutoring in Android platform are exceptional.

learn android programming Posted in Android Development | Tagged android app tutorial, hello world android, make an android app | 2 Comments Older posts

* Search for: * Recent Posts o Learn How to Create android application on your own o 10 Best Open Source Android Applications which every Android developer must look into o Android SDK Tutorial Learn how to install Android SDK o Android App Development Some Basic Tips For Android Application Development. o A Bit Of Theory On The Android Development Platform * *

Recent Comments o Anil on Android SDK Installation and Usage PART 2 o Alexander7 on Android Tutorial Video A first hand look at building an Android Application o Alexander7 on Android SDK Installation and Usage PART 1 o Alexander7 on 10 Best Open Source Android Applications which every Android developer must look into o Alexander6 on 10 Best Open Source Android Applications which every Android developer must look into * Archives o December 2011 o March 2011 o January 2011 o December 2010 o November 2010 * Categories o Android app development o Android App tutorial o Android Development o Android SDK Tutorial o Uncategorized * Meta o Log in o Entries RSS o Comments RSS o WordPress.org

Android Tutorial Proudly powered by WordPress.

Potrebbero piacerti anche