Skip to main content

Posts

Showing posts from September, 2012

Text To Speech Application in Android

This Application Convert Text into Speech.... Enjoy it..... Download Code (Click Here....) Download .apk File For Android(2.2 upto) Mobile (Click Here...) Show in Bellow Code For TextToSpeech.java here use TextToSpeech Class for Access the functionality of conversion of text to speech... setLanguage(Locale.ENGLISH); method is use for set language like us , uk etc. Also Call shutdown()  method in onDestroy() for release All TextToSpeech Objects. Show in Bellow .java code 1) First Create One XML file in which one TextView ,one EditText and one Button Show in Bellow Code <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" >     <TextView         android:id="@+id/textView1"         android:layout_width="wrap_content"         android:layout

Animation Demo in Android(Tween Animation)

This Animation Demo..... Download This Code Click Here...... The view animation framework supports both tween and frame by frame animations, which can both be declared in XML. The following sections describe how to use both methods. Tween animation An animation defined in XML that performs transitions such as rotating, fading, moving, and stretching on a graphic. file location: res/anim/ filename .xml The filename will be used as the resource ID. compiled resource datatype: Resource pointer to an  Animation . resource reference: In Java:  R.anim. filename In XML:  @[ package :]anim/ filename syntax: <? xml version = "1.0" encoding = "utf-8" ?> < set xmlns:android = "http://schemas.android.com/apk/res/android" android:interpolator = "@[package:]anim/ interpolator_resource " android:shareInterpolator = ["true" | "false" ] > < alpha android:fromAlpha = " float "

Android Tab Layout Application

Hello This Android Tab Layout Application.............. Enjoy it.............. Download This Code Click here 1)   In this post we need   three separate activities for three tab screens . So let’s get started by creating a simple project by opening eclipse IDE.  Create a new project  File -> New -> Android Project  and give activity name as  MainActivity . 2)  Now open your  activity_main.xml  under  res -> layout  folder and type the following code.   <?xml version="1.0" encoding="utf-8"?> <TabHost         xmlns:android="http://schemas.android.com/apk/res/android"         android:id="@android:id/tabhost"         android:layout_width="match_parent"         android:layout_height="match_parent"         android:layout_alignParentLeft="true"         android:layout_alignParentTop="true" >         <LinearLayout             android:layout_width="match_parent"