Saturday, September 8, 2012

JSon Development in Android

This example explains how to handle JSon parser. It shows how to read and write data to and from a JSon file.
Algorithm:
1.) Create a new project by File-> New -> Android Project name it JSonExample.
2.) Write following into main.xml file:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"  
   android:orientation="vertical" android:layout_width="fill_parent"  
   android:layout_height="fill_parent">

Gradient Drawing in Android

This example shows how you can draw different gradient shapes in android.
Algorithm:
1.) Create a new project by File-> New -> Android Project name it GradientDrawingExample.
2.) Create and write following into src/GraphicsActivity.java:
package com.example.GradientDrawingExample;
import android.app.Activity;
import android.os.Bundle;

Reverse Animation in Android

This example shows how to animate an object and play the animation in reverse in android.
Algorithm:
1.) Create a new project by File-> New -> Android Project name it AnimationReverseExample.
2.) Create and write following into src/ShapeHolder.java:
package com.example.animationreverseexample;
import android.graphics.Paint;
import android.graphics.RadialGradient;

SMS Sender in Android


SMS Sender Example in AndroidThis example shows how you can send/receive SMS through your application.
Algorithm:
1.) Create a new project by File-> New -> Android Project name it SMSSenderExample.
2.) Write following into main.xml:

<ScrollView
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"

Clip Board Development in Android Development

This example shows how to use clipboard manager to copy text/intent/url in android.
Algorithm:
1.) Create a new project by File-> New -> Android Project name it ClipBoardExample.
2.) Write following into main.xml:
<?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">

Options Menu Development in Android

The project describes How to implement option menu into your application. Option menu is the primary collection of menu items for an activity, which appears when the user touches the MENU button.
Underlying Algorithm:
Basic description of algorithm in step by step form:
  1. Create a Project MyCheckBoxMenu
  2. Create and Open the res/menu/menu.xml file and insert the following:
  3. <menu xmlns:android="http://schemas.android.com/apk/res/android">
      <item android:id="@+id/settings_title"

Options Menu Development in Android

The project describes How to implement option menu into your application. Option menu is the primary collection of menu items for an activity, which appears when the user touches the MENU button.
Underlying Algorithm:
Basic description of algorithm in step by step form:
  1. Create a Project MyCheckBoxMenu
  2. Create and Open the res/menu/menu.xml file and insert the following:
  3. <menu xmlns:android="http://schemas.android.com/apk/res/android">
      <item android:id="@+id/settings_title"