Wednesday, October 17, 2012

Creating Simple Android Application

Today I am going to start with How to make a Simple Application in Android. Before Starting It we must be clear about some aspects related to Android Development. As We already know now from previous post about Setting up of Android SDK with Eclipse. So We will uncover the basic file hierarchy of Android App.

Starting of Android Application. 

  • Open Up your Eclipse. Then go to File - > New Project - > Android Project. A dialog box will be opened up as shown.
New Android Project
  • Now you have to fill some details. Like Project Name, Project Location. After Clicking Next you will be asked to Select for API version. Select According to your requirement.
  • After then Enter Package name like if your application name is sample. Then Package can be com.simple. Check for Activity automatic creation as it is needed. After finishing Project is now created and you will have a hierarchical view just like below (if we have created application named test).
Hierarchical View of Application

Various Files In Android

  • src :- This folder contains the main core Activity file for the application being created. And the major work of coding goes into this folder.
  • gen:- These are automatic generated configuration file that will be used by the system.
  • res:- The Main designing part goes here in this folder. Here in various folders like drawable-hdpi and similar named folders hold the various images to be used by the application. Next it contains the folder layout where you will be defining the layout for different views of your application.
  • values:- This sub folder of res holds the different string.xml and other files for handling the data that will be referred in time to time in the application that is being developed.
  • AndroidManifest.xml will hold the values like the permission granting for internet access and some other system related requirements that will be additional.

Project Development

TestActivity is the file in case of application test where we will be spending most of our time in performing coding. The pre generated code for this particular file is as below. (Remember Android Programming is nothing but JAVA programming with API's and Android Additional services.)
So, If one knows java it is not going to be difficult to learn AP (Android Programming).


So in the next post we will come to the actual coding of this test application. Till then Good Byee!!





Saturday, October 13, 2012

Setting up Android with Eclipse


Eclipse is most widely used when it comes to use for Android Development. Following are the various phases that has to be done in order to install it and make necessary changes to setup with Android SDK .

Download and Install JDK
Download and install the latest JDK (JDK 1.6 Update 18) from JDK download page
Download and Install Eclipse IDE
Download and install Eclipse Classic 3.5 (Galileo) from Eclipse download page. You can also use the  Java or RCP version of Eclipse.
Download and Install Android SDK Starter Package
The Android SDK starter package includes only a single component, the latest version of the SDK Tools. Included in that component is a tool called Android SDK and AVD Manager that you can use to download other components from the SDK repository site.
  • Download the latest Android SDK  starter package  from the SDK download page.
  • Unpack the archive to a suitable location on your machine. By default, the SDK files are unpacked into a directory named  android-sdk- . For example, on Windows platform the directory will be android-sdk-windows.

Android SDK
Add Android Platforms to Your SDK
To add one or more Android platforms (for example, Android 1.6 or Android 2.1) to your SDK, use the Android SDK and AVD Manager, included in the SDK starter package. It is recommended  to download multiple platforms, so that you can build your application on the lowest version you want to support, but test against higher versions that you intend the application to run on.
  • Launch the Android SDK and AVD Manager on Windows by executing SDK Setup.exe at the root of the SDK directory. On Mac OS X or Linux, execute the android tool in the /tools/ folder.
  • On Available Packages menu, select the platforms to download (1.1 to 2.1).

If you find error on HTTP SSL while fetching the repository url , try to use http instead of https by checking the Force https://… sources to be fetched using http://… option on Settings menu.

Download and Installing Eclipse. Download it From here http://www.eclipse.org/downloads/

Download and Install ADT Plugin
To install  the ADT Plugin, you can take advantage of the Eclipse remote update feature. By setting up a remote update site, you can easily download, install, and check for ADT updates. Alternatively, you can download the latest ADT to your development computer as a local site archive.
  • Launch Eclipse, then select Help –> Install New Software.
  • In Available Software dialog, click Add
  • Enter a name for the remote site (ex: Android Plugin) in the Name field and in the Locationfield, enter this URL:
    https://dl-ssl.google.com/android/eclipse/
    and then click OK. If you have trouble acquiring the plugin, you can try using ‘http’  instead of  ’https’  in the URL.

Select the checkbox next to Developer Tools, which will automatically select the nested toolsAndroid DDMS and Android Development Tools and then click Next.
  • On the next dialog, click Next to read and accept the license agreement and install any dependencies, then click Finish.
  • Restart Eclipse
  • To check whether the ADT has been installed correctly, try to create a new project by selectFile > New > Project., you shoud find Android Project listed on project wizard.


Friday, August 17, 2012

Android Sample Application

Those who are compatible with even core Java need not be worry about the coding as android platform is supporting to use the basic skills that you earned so far in colleges qnd universities.

First of all we will start with android sdk installation. Currently  I am giving the tutorial about installtion in Linux and the other is same around for windows. Eclipse is basically prefered as it comes along with the basic settings to install sdk.

Sunday, July 29, 2012

HTML Presentation


Normally in Every Day Life one encounters with the problem of making presentation. Problem is not with making presentation but its after effects become a headache. If you were told to put the same content on  some sort of blog this thing make your mind go out of nuts by doing a large copy paste work. So For that We are having an alternative which we never thought about but yes somebody did.

Making Presentation in HTML

DZ Slides is the name that let you help in making the Slides in HTML and CSS and that too with the help of basic and simple syntax that you are already familiar with.


And That's It. A One Single html file with few javascript transition and you are done. And If you are wondering how to include text, images, videos and but about their usability then don't worry about it HTML 5 will make you at ease.

For Downloading the needed files and the script please refer to. https://github.com/paulrouget/dzslides

Introduction to Android


Android is the name in OS for mobile computing which is well known to the techno geeks and the smartphone and tablet users. So Many Version till now developed for this OS and the 4.0 IceCream Sandwich being the latest one.

Now a days I am trying hands on this fantastic platform to build some applications. The basic necessity and the way that one need to opt for will be guided in the next posts. I will explain every aspect and will try to make the most of them clear to the readers.

Android Logo


Android Development is the reliable way to get into the S/W Development industry, a now a days when the mobile computing is on its full swings. Job opportunities are lot in this field. One can get master in Android Development by using a little bit of logical thinking.