Showing posts with label android. Show all posts
Showing posts with label android. Show all posts
Monday, June 3, 2013

What is AJAX, All About AJAX, Introduction of Ajax


AJAX- What is AJAX, All About AJAX


The Asynchronous JavaScript and XML (AJAX) is not a new technology, It is based on existing technologies like HTML, JavaScript, CSS, XML to code. It is used to create better and faster web applications.
The AJAX use the Browser Object for Request and Response and Document Object Model for displaying the dynamic contents.
The XMLHttpRequest is used to make the request for AJAX.

All About Ajax

What is Android, Introduction of Android, Android Tutorials for Beginners, Device Development



What is Android, Introduction of Android, Android Tutorials for Beginners

Android is an open source java framework which is used to developed the application for touch pad devices, the Android provide the large scale of predefined classes or API to develop any kind of application for Handheld devices like standalone apps, web apps, games, GPS apps etc.

Introduction of Android

Setting Up ADT plugins for Ecilpse
Monday, April 1, 2013

Android Tutorials - How to Change the Font Color and Background color of a Textview in Android


How to Change The Font Color and Background Color of a TextView in android:-

The Android Framework permit to change the font color, background color, border color of any control by specifying some properties into layout XML files.

I am giving a code snippet which is surely helpful for you for changing the color.



<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    android:background="@drawable/bg"
     >

<EditText 
        android:layout_width="fill_parent" android:layout_height="wrap_content"
        android:hint="Enter Password" android:password="true"
        android:id="@+id/userPass" 
        android:textColor="#FFFFFF" android:background="#FFFFAA"/>       
        />
</LinearLayout>

Note-The Color name should be in Hexadecimal form 

Android Tutorials - Creating a Layout in XML, How to create a layout with XML


Android Tutorials - Creating a Layout in XML, How to create a layout with XML

When we are create a new Android Application Project the project contains the number of sub folders and files including java classes, XML files, configuration files, some folders etc.

The project hierarchy look like as...




You see the several folders like src, gen, asset, bin, lib, res etc.
and if we expend these folders there are some other folders too inside these folders.

Now i am discuss about the resource folder if we will expand this folder there are number of methods like drawable, layout, menu, values etc and we can make our own folder in it.


  • The drawable folder is used to store the images in it.
  • The Layout folder defines the default layout for each activity.
  • The Menu folder is used to create the layout for menu items.
  • The values folder is used to assign the common styles and common values for the controls.
If we want to create a layout in XML then we need to create an Android XML file inside the layout folder.

The Example of a blank XML file look like as

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:paddingBottom="@dimen/activity_vertical_margin"
    android:paddingLeft="@dimen/activity_horizontal_margin"
    android:paddingRight="@dimen/activity_horizontal_margin"
    android:paddingTop="@dimen/activity_vertical_margin"
    tools:context=".MainActivity" >
</RelativeLayout>

If we want to create a button in this layout then we need to add the code as below...


<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:paddingBottom="@dimen/activity_vertical_margin"
    android:paddingLeft="@dimen/activity_horizontal_margin"
    android:paddingRight="@dimen/activity_horizontal_margin"
    android:paddingTop="@dimen/activity_vertical_margin"
    tools:context=".MainActivity" >
    <Button android:layout_width="fill_parent" 
        android:layout_height="wrap_content"
        android:text="Load" android:id="@+id/btnLoad"/>

</RelativeLayout>



Android Tutorials - Setting Up ADT on Eclipse


Installing ADT for Android plugins for Eclpise:-

If you want to work with Android and want to make an App with Android framework then you need an IDE  like Eclipse, but Eclipse is basically for Java and do not provide support for Android framework Classes, So if you want to work with Eclipse IDE then you have to configure the Eclipse IDE by installing new software in it called Android ADT.
The Android ADT is a Complete package of Android Framework Classes .

There are two ways to configure Eclipse for Android development--

  1. Download the ADT from Here and then install it on Eclipse. How to install? we will discuss about it later on this tutorial.
  2. The second way is to copy the below code and install the ADT.
http://dl-ssl.google.com/android/eclipse/

But The second method work only when your computer connected to the internet.

So now the topic is How to install the ADT by the above 2 methods.


Step 1- Open your Eclipse IDE, I imagine that you have knowledge that how to run the Eclipse IDE.
Step 2- Now Go to Help menu and click on "install new software".

A window will appear like below.


If you want to install the ADT by first method then click on Add button then another window will appear like this...


Now give a name like android-adt in Name Field of The Add Repository window and choose a the ADT achieve which you have downloaded in 1 method, by cliking on Achieve button and then click on ok button.

Now the window look like as..


Now click on Developers Tools and the click on next, Now the window look like as


Now click on next, Now the window look like as..


Now accept the term and licence agreement and click on finish.

The ADT is being installing and it needs some time for installing.


If you want to install the ADT with second method then click on the intall new software inside the Help menu and the a window will open and copy http://dl-ssl.google.com/android/eclipse/ this code and paste it to Work With field and the window will show you the Name of the available toos like this...


Now repeat the all step same as above and intall the ADT, but you have to connect to the internet for installing the ADT by this method.